]>
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 | |
a619a4ab ER |
7 | Source0: http://get.qt.nokia.com/qt/solutions/lgpl/qtiocompressor-%{version}_1-opensource.tar.gz |
8 | # Source0-md5: 73bbde56cf705602b4f180b379756a40 | |
9 | Source1: qtiocompressor.prf | |
10 | Patch0: libs.patch | |
105a26c0 | 11 | URL: http://doc.qt.digia.com/solutions/4/qtiocompressor/qtiocompressor.html |
a619a4ab ER |
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 | ||
105a26c0 | 19 | %define qt4dir %{_datadir}/qt4 |
a619a4ab ER |
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 | |
a619a4ab ER |
52 | qmake-qt4 |
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
105a26c0 | 58 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/qt4/QtSolutions,%{qt4dir}/mkspecs/features} |
a619a4ab ER |
59 | cp -a lib/* $RPM_BUILD_ROOT%{_libdir} |
60 | rm $RPM_BUILD_ROOT%{_libdir}/lib*.so.1.0 | |
105a26c0 ER |
61 | cp -p src/qtiocompressor.h src/QtIOCompressor $RPM_BUILD_ROOT%{_includedir}/qt4/QtSolutions |
62 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{qt4dir}/mkspecs/features | |
a619a4ab ER |
63 | |
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post -p /sbin/ldconfig | |
68 | %postun -p /sbin/ldconfig | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc LGPL_EXCEPTION.txt LICENSE.* README.TXT | |
73 | %attr(755,root,root) %{_libdir}/libQtSolutions_IOCompressor-%{version}.so.*.*.* | |
74 | %attr(755,root,root) %ghost %{_libdir}/libQtSolutions_IOCompressor-%{version}.so.1 | |
75 | ||
76 | %files devel | |
77 | %defattr(644,root,root,755) | |
78 | %doc doc examples | |
79 | %{_libdir}/libQtSolutions_IOCompressor-%{version}.so | |
105a26c0 ER |
80 | %{qt4dir}/mkspecs/features/qtiocompressor.prf |
81 | %{_includedir}/qt4/QtSolutions/QtIOCompressor | |
82 | %{_includedir}/qt4/QtSolutions/qtiocompressor.h |