1 | %define kde_major_version 4 |
---|
2 | %define qt_ver 4.5.2 |
---|
3 | |
---|
4 | Name: qimageblitz |
---|
5 | Version: 0.0.4 |
---|
6 | Release: 4%{?_dist_release} |
---|
7 | Summary: Blitz KDE/Qt image filter library |
---|
8 | Source: %{name}-%{version}.tar.bz2 |
---|
9 | URL: http://sourceforge.net/projects/qimageblitz |
---|
10 | Group: System Environment/Libraries |
---|
11 | License: LGPL |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: qt4-devel >= %{qt_ver} |
---|
15 | BuildRequires: cmake >= 2.4.5 |
---|
16 | BuildRequires: pkgconfig |
---|
17 | Requires: qt4 >= %{qt_ver} |
---|
18 | |
---|
19 | %description |
---|
20 | Blitz is a graphical effect and filter library for KDE4.0 that contains |
---|
21 | many improvements over KDE 3.x's kdefx library including bugfixes, memory |
---|
22 | and speed improvements, and MMX/SSE support. |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Development files for blitz |
---|
26 | Group: Development/Libraries |
---|
27 | Requires: %{name} = %{version}-%{release} |
---|
28 | Requires: qt4-devel |
---|
29 | |
---|
30 | %description devel |
---|
31 | Header files for developing applications using blitz |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q |
---|
35 | |
---|
36 | %build |
---|
37 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
38 | |
---|
39 | mkdir %{name}-build |
---|
40 | pushd %{name}-build |
---|
41 | %cmake -DCMAKE_BUILD_TYPE=release .. |
---|
42 | popd |
---|
43 | make %{?_smp_mflags} -C %{name}-build |
---|
44 | |
---|
45 | %install |
---|
46 | rm -rf $RPM_BUILD_ROOT |
---|
47 | make install DESTDIR=$RPM_BUILD_ROOT -C %{name}-build |
---|
48 | |
---|
49 | %clean |
---|
50 | rm -rf $RPM_BUILD_ROOT |
---|
51 | |
---|
52 | %post -p /sbin/ldconfig |
---|
53 | |
---|
54 | %postun -p /sbin/ldconfig |
---|
55 | |
---|
56 | %files |
---|
57 | %defattr(-,root,root) |
---|
58 | %{_bindir}* |
---|
59 | %{_libdir}/*.so.* |
---|
60 | |
---|
61 | %files devel |
---|
62 | %defattr(-,root,root) |
---|
63 | %{_includedir}/qimageblitz |
---|
64 | %{_libdir}/*.so |
---|
65 | %{_libdir}/pkgconfig/*.pc |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Tue Sep 01 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.0.4-4 |
---|
69 | - use %%cmake macro |
---|
70 | - drop redundant cmake options |
---|
71 | |
---|
72 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.0.4-3 |
---|
73 | - rebuilt with qt-4.5.2 |
---|
74 | |
---|
75 | * Thu Oct 23 2008 Shu KONNO <owa@bg.wakwak.com> 0.0.4-2 |
---|
76 | - added -DLIB_INSTALL_DIR=%%{_libdir} at cmake |
---|
77 | |
---|
78 | * Sun Oct 12 2008 AKIYAMA KAzuhito <akiyama@yb3.so-net.ne.jp> 0.0.4-1 |
---|
79 | - initial release |
---|