%define major 3 %define libname %mklibname 3ds %{major} %define develname %mklibname 3ds -d Summary: The 3D Studio file format library Name: lib3ds Version: 1.3.0 Release: %mkrel 4 #Patch0: lib3ds-1.2.0-fix-underquoted-calls.patch License: GPLv2+ Group: System/Libraries URL: http://lib3ds.sourceforge.net/ Source0: http://downloads.sourceforge.net/lib3ds/%{name}-%{version}.zip BuildRequires: MesaGLU-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for handling 3DS files It's main goal is to simplify the creation of 3DS import and export filters. This project is not related in any form to Autodesk. The library is based on unofficial information about the 3DS format found on the web. %package -n %{libname} Summary: The 3D Studio file format library Group: System/Libraries Obsoletes: lib3ds < 1.3.0-2 Provides: lib3ds %description -n %{libname} Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for handling 3DS files It's main goal is to simplify the creation of 3DS import and export filters. This project is not related in any form to Autodesk. The library is based on unofficial information about the 3DS format found on the web. %package -n %{develname} Summary: Development files and headers for %{name} Group: Development/C Provides: %{name}-devel = %{version}-%{release} Obsoletes: lib3ds-devel < 1.3.0-2 %description -n %{develname} Development files and headers for %{name}. %prep %setup -q #%patch0 -p1 -b .underquoted %build export CFLAGS="%{optflags} -fPIC" %configure2_5x \ --disable-static %make %install rm -rf %{buildroot} %makeinstall_std #multiarch %multiarch_binaries %{buildroot}%{_bindir}/lib3ds-config %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc AUTHORS ChangeLog README %{_libdir}/*.so.%{major}* %files -n %{develname} %defattr(-,root,root) %{_libdir}/%{name}.la %{_libdir}/%{name}.so %{_includedir}/%{name} %{_datadir}/aclocal/%{name}.m4 %{_mandir}/man1/* %defattr(755,root,root,755) %{_bindir}/3ds* %{_bindir}/lib3ds-config %multiarch %{multiarch_bindir}/lib3ds-config %changelog * Fri Sep 04 2009 Thierry Vignaud <tvignaud@mandriva.com> 1.3.0-4mdv2010.0 + Revision: 429715 - rebuild * Fri Aug 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.3.0-3mdv2009.0 + Revision: 267802 - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Fri Apr 18 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.3.0-2mdv2009.0 + Revision: 195676 - libify the package - new license policy - new development library policy - spec file clean * Tue Dec 25 2007 Emmanuel Andry <eandry@mandriva.org> 1.3.0-1mdv2008.1 + Revision: 137803 - New version - drop patch (applied upstream) - create lib3ds binary package + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Thu Jan 18 2007 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.2.0-6mdv2007.0 + Revision: 110447 - compile with -fPIC - Import lib3ds * Wed Jan 25 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.2.0-5mdk - fix underquoted calls (P0) * Fri May 06 2005 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.2.0-4mdk - multiarch * Sat Aug 21 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.2.0-3mdk - rebuild