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