1# Note that this is NOT a relocatable package
2%define ver      @LIB3DS_VERSION@
3%define prefix   /usr
4BuildRoot: /tmp/lib3ds-%{PACKAGE_VERSION}-root
5
6Summary: The 3DS File Format Library
7Name: lib3ds
8Version: %ver
9Release: 1
10Copyright: LGPL
11Group: Development/Libraries
12Source: http://download.sourceforge.net/lib3ds/lib3ds-%{ver}.tar.gz
13URL: http://lib3ds.sourceforge.net
14Docdir: %{prefix}/share/doc
15
16%description
17
18Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for handling
193DS files It's main goal is to simplify the creation of 3DS import and
20export filters.
21
22This project is not related in any form to Autodesk. The library is
23based on unofficial information about the 3DS format found on the web.
24
25This  program  is  distributed in  the  hope that it will  be useful,  but
26WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
27or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
28License for more details.
29
30The official Lib3ds Homepage can be found under:
31  http://lib3ds.sourceforge.net
32
33%prep
34%setup
35
36%build
37./configure --prefix=%{prefix}
38make
39
40%install
41make DESTDIR=$RPM_BUILD_ROOT install
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%post -p /sbin/ldconfig
47
48%postun -p /sbin/ldconfig
49
50%files
51%defattr(-, root, root)
52%doc AUTHORS ChangeLog NEWS README COPYING TODO
53%{prefix}/lib/*
54%{prefix}/include/lib3ds/*
55%{prefix}/share/aclocal/*
56%{prefix}/man/man1/lib3ds-config.1
57
58