]>
Commit | Line | Data |
---|---|---|
a619a4ab ER |
1 | Summary: QtIOCompressor is a QIODevice that compresses data streams |
2 | Name: QtIOCompressor | |
3 | Version: 2.3 | |
4 | Release: 1 | |
5 | License: GPL v3 or LGPL v2 with exceptions | |
6 | Group: Libraries | |
7 | URL: http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtiocompressor | |
8 | Source0: http://get.qt.nokia.com/qt/solutions/lgpl/qtiocompressor-%{version}_1-opensource.tar.gz | |
9 | # Source0-md5: 73bbde56cf705602b4f180b379756a40 | |
10 | Source1: qtiocompressor.prf | |
11 | Patch0: libs.patch | |
12 | BuildRequires: QtCore-devel | |
13 | BuildRequires: QtGui-devel | |
14 | BuildRequires: qt4-build | |
15 | BuildRequires: qt4-qmake | |
16 | BuildRequires: sed >= 4.0 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _qt4_datadir %{_datadir}/qt4 | |
20 | ||
21 | %description | |
22 | The class works on top of a QIODevice subclass, compressing data | |
23 | before it is written and decompressing it when it is read. | |
24 | ||
25 | Since QtIOCompressor works on streams, it does not have to see the | |
26 | entire data set before compressing or decompressing it. This can | |
27 | reduce the memory requirements when working on large data sets. | |
28 | ||
29 | %package devel | |
30 | Summary: Development files for QtIOCompressor | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | Requires: qt4-build | |
34 | Requires: qt4-qmake | |
35 | ||
36 | %description devel | |
37 | This package contains libraries and header files for developing | |
38 | applications that use QtIOCompressor. | |
39 | ||
40 | %prep | |
41 | %setup -q -n qtiocompressor-%{version}_1-opensource | |
42 | %patch0 -p1 | |
43 | ||
44 | # skip building examples | |
45 | %{__sed} -i -e '/^SUBDIRS+=examples$/d' *.pro | |
46 | ||
47 | %build | |
48 | touch .licenseAccepted | |
49 | # Does not use GNU configure | |
50 | ./configure \ | |
51 | -library | |
52 | ||
53 | qmake-qt4 | |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | # libraries | |
60 | install -d $RPM_BUILD_ROOT%{_libdir} | |
61 | cp -a lib/* $RPM_BUILD_ROOT%{_libdir} | |
62 | rm $RPM_BUILD_ROOT%{_libdir}/lib*.so.1.0 | |
63 | ||
64 | # headers | |
65 | install -d $RPM_BUILD_ROOT%{_includedir}/QtSolutions | |
66 | cp -a \ | |
67 | src/qtiocompressor.h \ | |
68 | src/QtIOCompressor \ | |
69 | $RPM_BUILD_ROOT%{_includedir}/QtSolutions | |
70 | ||
71 | # specs | |
72 | install -d $RPM_BUILD_ROOT%{_qt4_datadir}/mkspecs/features | |
73 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_qt4_datadir}/mkspecs/features | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc LGPL_EXCEPTION.txt LICENSE.* README.TXT | |
84 | %attr(755,root,root) %{_libdir}/libQtSolutions_IOCompressor-%{version}.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/libQtSolutions_IOCompressor-%{version}.so.1 | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %doc doc examples | |
90 | %{_libdir}/libQtSolutions_IOCompressor-%{version}.so | |
91 | %{_qt4_datadir}/mkspecs/features/qtiocompressor.prf | |
92 | # XXX dir shared dir with QtLockedFile.spec, add to qt4.spec | |
93 | %dir %{_includedir}/QtSolutions | |
94 | %{_includedir}/QtSolutions/QtIOCompressor | |
95 | %{_includedir}/QtSolutions/qtiocompressor.h |