%define kde_major_version 4 %define qt_ver 4.5.2 Name: qimageblitz Version: 0.0.4 Release: 4%{?_dist_release} Summary: Blitz KDE/Qt image filter library Source: %{name}-%{version}.tar.bz2 URL: http://sourceforge.net/projects/qimageblitz Group: System Environment/Libraries License: LGPL BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: qt4-devel >= %{qt_ver} BuildRequires: cmake >= 2.4.5 BuildRequires: pkgconfig Requires: qt4 >= %{qt_ver} %description Blitz is a graphical effect and filter library for KDE4.0 that contains many improvements over KDE 3.x's kdefx library including bugfixes, memory and speed improvements, and MMX/SSE support. %package devel Summary: Development files for blitz Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: qt4-devel %description devel Header files for developing applications using blitz %prep %setup -q %build unset QTDIR || : ; . /etc/profile.d/qt4.sh mkdir %{name}-build pushd %{name}-build %cmake -DCMAKE_BUILD_TYPE=release .. popd make %{?_smp_mflags} -C %{name}-build %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -C %{name}-build %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}* %{_libdir}/*.so.* %files devel %defattr(-,root,root) %{_includedir}/qimageblitz %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Tue Sep 01 2009 NAKAMURA Kenta 0.0.4-4 - use %%cmake macro - drop redundant cmake options * Sat Aug 29 2009 Ryoichi INAGAKI 0.0.4-3 - rebuilt with qt-4.5.2 * Thu Oct 23 2008 Shu KONNO 0.0.4-2 - added -DLIB_INSTALL_DIR=%%{_libdir} at cmake * Sun Oct 12 2008 AKIYAMA KAzuhito 0.0.4-1 - initial release