1 Summary: The 3D Studio File Format Library
2 Summary(pl): Biblioteka obs³uguj±ca format plików 3D Studio
8 Source0: http://dl.sourceforge.net/lib3ds/%{name}-%{version}.tar.gz
9 # Source0-md5: 3a7f891d18af0151876b98bc05d3b373
10 Patch0: %{name}-shared.patch
11 URL: http://lib3ds.sourceforge.net/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: libtool
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
19 handling 3DS files. It's main goal is to simplify the creation of 3DS
20 import and export filters.
22 This project is not related in any form to Autodesk. The library is
23 based on unofficial information about the 3DS format found on the web.
26 lib3ds to wolnodostêpna alternatywa dla 3DS File Toolkit Autodeska do
27 obs³ugi plików 3DS. G³ównym celem biblioteki jest uproszczenie
28 tworzenia filtrów importuj±cych i eksportuj±cych 3DS.
30 Projekt nie jest w ¿aden sposób zwi±zany z Autodeskiem. Biblioteka
31 jest oparta na nieoficjalnych informacjach o formacie 3DS znalezionych
35 Summary: lib3ds header files
36 Summary(pl): Pliki nag³ówkowe lib3ds
37 Group: Development/Libraries
38 Requires: %{name} = %{version}
43 %description devel -l pl
44 Pliki nag³ówkowe lib3ds.
47 Summary: Static lib3ds library
48 Summary(pl): Statyczna biblioteka lib3ds
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}
53 Static lib3ds library.
55 %description static -l pl
56 Statyczna biblioteka lib3ds.
63 # extract CONFIGURE_GLUT macro
64 tail -116 aclocal.m4 | head -102 > acinclude.m4
70 #CPPFLAGS="-I/usr/X11R6/include" - but GL/glut is used only for noinst_PROGRAMS
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
82 install examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83 sed -e 's/@GLUT_HEADER_DIR@/GL/' examples/glstub.h.in \
84 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog README
95 %attr(755,root,root) %{_bindir}/3ds*
96 %attr(755,root,root) %{_libdir}/lib3ds.so.*.*
97 %{_mandir}/man1/3ds*.1*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_bindir}/lib3ds-config
102 %attr(755,root,root) %{_libdir}/lib3ds.so
104 %{_includedir}/lib3ds
106 %{_mandir}/man1/lib3ds-config.1*
107 %{_examplesdir}/%{name}-%{version}
110 %defattr(644,root,root,755)