Name: GLC_lib Version: 0.9.8 Release: 2%{?dist} Summary: C++ class library for OpenGL application based on Qt 4 Group: System Environment/Libraries License: GPLv2+ URL: http://www.glc-lib.net/ Source0: http://downloads.sourceforge.net/glc-lib/GLC_lib_src_0_9_8.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if "%fedora" < "9" BuildRequires: qt4-devel %else BuildRequires: qt-devel %endif %description GLC_lib is a C++ class library that enables the quick creation of OpenGL application based on Qt 4. Some GLC_lib features : Camera orbiting, Obj textured file support, 3D Primitive... And more. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %if "%fedora" < "9" Requires: qt4-devel %else Requires: qt-devel %endif %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -c sed -i -e 's|LIB_DIR = /usr/lib|LIB_DIR = %{_libdir}|' src/GLC_lib.pro %build cd src qmake-qt4 GLC_lib.pro make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT cd src make install INSTALL_ROOT=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT%{_libdir}/libGLC_lib.prl %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc src/COPYING %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %{_includedir}/GLC_lib/ %{_libdir}/*.so %changelog * Wed May 14 2008 kwizart < kwizart at gmail.com > - 0.9.8-2 - Rebuild for F-9 * Mon Feb 11 2008 kwizart < kwizart at gmail.com > - 0.9.8-1 - Initial spec file