1 |
mikala |
19260 |
%define unstable 1 |
2 |
|
|
%{?_unstable: %{expand: %%global unstable 1}} |
3 |
|
|
|
4 |
|
|
%define branch 1 |
5 |
|
|
%{?_branch: %{expand: %%global branch 1}} |
6 |
|
|
|
7 |
|
|
%if %{unstable} |
8 |
|
|
%define dont_strip 1 |
9 |
|
|
%endif |
10 |
|
|
|
11 |
|
|
Name: qimageblitz |
12 |
|
|
Version: 0.0.6 |
13 |
|
|
Release: %mkrel 3 |
14 |
|
|
Epoch: 1 |
15 |
|
|
Summary: Graphics manipulation library |
16 |
|
|
License: GPL |
17 |
|
|
Group: Development/KDE and Qt |
18 |
|
|
Source: %name-%version.tar.bz2 |
19 |
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot |
20 |
|
|
BuildRequires: cmake >= 2.4.5 |
21 |
|
|
BuildRequires: qt4-devel >= 4.3.0 |
22 |
|
|
BuildRequires: pkgconfig |
23 |
|
|
Obsoletes: blitz |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
Blitz is a graphics manipulation library. |
27 |
|
|
|
28 |
|
|
%files |
29 |
|
|
%defattr(-,root,root) |
30 |
|
|
%_bindir/blitztest |
31 |
|
|
|
32 |
|
|
#-------------------------------------------------------------------- |
33 |
|
|
|
34 |
|
|
%define libblitz %mklibname qimageblitz 4 |
35 |
|
|
|
36 |
|
|
%package -n %libblitz |
37 |
|
|
Summary: Blitz library |
38 |
|
|
Group: System/Libraries |
39 |
|
|
Obsoletes: %{_lib}blitz4 |
40 |
|
|
|
41 |
|
|
%description -n %libblitz |
42 |
|
|
Blitz library. |
43 |
|
|
|
44 |
|
|
%if %mdkversion < 200900 |
45 |
|
|
%post -n %libblitz -p /sbin/ldconfig |
46 |
|
|
%endif |
47 |
|
|
%if %mdkversion < 200900 |
48 |
|
|
%postun -n %libblitz -p /sbin/ldconfig |
49 |
|
|
%endif |
50 |
|
|
|
51 |
|
|
%files -n %libblitz |
52 |
|
|
%defattr(-,root,root) |
53 |
|
|
%{_libdir}/*.so.4 |
54 |
|
|
%{_libdir}/*.so.4.* |
55 |
|
|
|
56 |
|
|
#-------------------------------------------------------------------- |
57 |
|
|
|
58 |
|
|
%define libblitzdev %mklibname -d qimageblitz |
59 |
|
|
|
60 |
|
|
%package -n %libblitzdev |
61 |
|
|
Requires: %libblitz |
62 |
|
|
Summary: Development files for %name |
63 |
|
|
Group: Development/KDE and Qt |
64 |
|
|
Requires: %libblitz = %epoch:%version-%release |
65 |
|
|
Provides: lib%name-devel = %epoch:%version-%release |
66 |
|
|
Provides: %name-devel = %epoch:%version-%release |
67 |
|
|
Obsoletes: %{_lib}blitz-devel |
68 |
|
|
|
69 |
|
|
%description -n %libblitzdev |
70 |
|
|
Development files for %name. |
71 |
|
|
|
72 |
|
|
%files -n %libblitzdev |
73 |
|
|
%defattr(-,root,root) |
74 |
|
|
%_libdir/*.so |
75 |
|
|
%_includedir/qimageblitz |
76 |
|
|
%_libdir/pkgconfig/* |
77 |
|
|
|
78 |
|
|
#-------------------------------------------------------------------- |
79 |
|
|
|
80 |
|
|
%prep |
81 |
|
|
%setup -q |
82 |
|
|
|
83 |
|
|
%build |
84 |
|
|
%cmake_qt4 \ |
85 |
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON \ |
86 |
|
|
-DLIB_INSTALL_DIR=%_libdir \ |
87 |
|
|
-DINCLUDE_INSTALL_DIR=%_includedir |
88 |
|
|
%make |
89 |
|
|
|
90 |
|
|
%install |
91 |
|
|
rm -fr %buildroot |
92 |
|
|
%makeinstall_std -C build |
93 |
|
|
|
94 |
|
|
%clean |
95 |
|
|
rm -fr %buildroot |
96 |
|
|
|
97 |
|
|
|