]> git.pld-linux.org Git - packages/quazip.git/blame - quazip.spec
- updated to 1.4 (bzip2 support)
[packages/quazip.git] / quazip.spec
CommitLineData
a86b8374
ER
1#
2# Conditional build:
bf18a0ad 3%bcond_without qt4 # Qt 4 version
44bf8443 4%bcond_without qt5 # Qt 5 version
e60fda55 5%bcond_without qt6 # Qt 6 version
bf18a0ad 6%bcond_without static_libs # static libraries
a86b8374 7
4b244daf 8Summary: Qt/C++ wrapper for the minizip library
44bf8443 9Summary(pl.UTF-8): Obudowanie Qt/C++ do biblioteki minizip
4b244daf 10Name: quazip
c4de7c2b 11Version: 1.4
f391b2ef 12Release: 1
44bf8443 13License: GPL v2+ or LGPL v2+
4b244daf 14Group: X11/Libraries
2f072092 15#Source0Download: https://github.com/stachenov/quazip/releases
f391b2ef 16Source0: https://github.com/stachenov/quazip/archive/v%{version}/%{name}-%{version}.tar.gz
c4de7c2b 17# Source0-md5: f861638a19acaece2aaea11f7ec3b812
f391b2ef
BS
18Patch0: cmake.patch
19URL: https://stachenov.github.io/quazip/
c4de7c2b 20BuildRequires: bzip2-devel
f391b2ef 21BuildRequires: cmake >= 3.15
4b244daf
ER
22BuildRequires: doxygen
23BuildRequires: graphviz
c4de7c2b
JB
24%if %{with qt6}
25BuildRequires: libstdc++-devel >= 6:7
26%else
bf18a0ad 27BuildRequires: libstdc++-devel >= 6:5
c4de7c2b 28%endif
2f072092 29BuildRequires: rpm-build >= 4.6
44bf8443 30BuildRequires: zlib-devel
a86b8374 31%if %{with qt4}
44bf8443
JB
32BuildRequires: QtCore-devel >= 4.5.0
33BuildRequires: qt4-build >= 4.5.0
34BuildRequires: qt4-qmake >= 4.5.0
a86b8374
ER
35%endif
36%if %{with qt5}
44bf8443
JB
37BuildRequires: Qt5Core-devel >= 5
38BuildRequires: qt5-build >= 5
39BuildRequires: qt5-qmake >= 5
a86b8374 40%endif
e60fda55
JB
41%if %{with qt6}
42BuildRequires: Qt6Core-devel >= 6
43BuildRequires: Qt6Qt5Compat-devel >= 6
44BuildRequires: qt6-build >= 6
45BuildRequires: qt6-qmake >= 6
46%endif
4b244daf
ER
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package
51that can be used to access ZIP archives. It uses Trolltech's Qt
52toolkit.
53
54QuaZIP allows you to access files inside ZIP archives using QIODevice
55API, and - yes! - that means that you can also use QTextStream,
56QDataStream or whatever you would like to use on your zipped files.
57
58QuaZIP provides complete abstraction of the ZIP/UNZIP API, for both
59reading from and writing to ZIP archives.
60
44bf8443
JB
61%description -l pl.UTF-8
62QuaZIP to proste obudowanie C++ dla pakietu ZIP/UNZIP Gillesa
63Vollanta, który może być używany do dostępu do archiwów ZIP. QuaZIP
64wykorzystuje bibliotekę narzędziową Qt firmy Trolltech.
65
66QuaZIP pozwala na dostęp do plików wewnątrz archiwów ZIP przy użyciu
67API QIODevice, co oznacza, że można używać QTextStream, QDataStream,
68jak i innych na zzipowanych plikach.
69
70QuaZIP udostępnia pełną abstrakcję API ZIP/UNZIP, zarówno dla odczytu,
71jak i zapisu plikówZIP.
72
aec7796f
JB
73%package qt4
74Summary: Qt 4/C++ wrapper for the minizip library
75Summary(pl.UTF-8): Obudowanie Qt 4/C++ do biblioteki minizip
76Group: X11/Libraries
77Requires: QtCore >= 4.5.0
78Provides: quazip = %{version}-%{release}
79Obsoletes: quazip < 1.3
80
81%description qt4
82QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package
83that can be used to access ZIP archives. It uses Trolltech's Qt
84toolkit.
85
86QuaZIP allows you to access files inside ZIP archives using QIODevice
87API, and - yes! - that means that you can also use QTextStream,
88QDataStream or whatever you would like to use on your zipped files.
89
90QuaZIP provides complete abstraction of the ZIP/UNZIP API, for both
91reading from and writing to ZIP archives.
92
93%description qt4 -l pl.UTF-8
94QuaZIP to proste obudowanie C++ dla pakietu ZIP/UNZIP Gillesa
95Vollanta, który może być używany do dostępu do archiwów ZIP. QuaZIP
96wykorzystuje bibliotekę narzędziową Qt firmy Trolltech.
97
98QuaZIP pozwala na dostęp do plików wewnątrz archiwów ZIP przy użyciu
99API QIODevice, co oznacza, że można używać QTextStream, QDataStream,
100jak i innych na zzipowanych plikach.
101
102QuaZIP udostępnia pełną abstrakcję API ZIP/UNZIP, zarówno dla odczytu,
103jak i zapisu plikówZIP.
104
105%package qt4-devel
44bf8443
JB
106Summary: Development files for QuaZIP (Qt 4 version)
107Summary(pl.UTF-8): Pliki programistyczne biblioteki QuaZIP (wersja dla Qt 4)
4b244daf 108Group: Development/Libraries
aec7796f 109Requires: %{name}-qt4 = %{version}-%{release}
44bf8443 110Requires: QtCore-devel >= 4.5.0
bf18a0ad 111Requires: zlib-devel
aec7796f
JB
112Provides: quazip-devel = %{version}-%{release}
113Obsoletes: quazip-devel < 1.3
4b244daf 114
aec7796f 115%description qt4-devel
44bf8443
JB
116This package contains the header files and documentation for
117developing applications that use QuaZIP with Qt 4.
118
aec7796f 119%description qt4-devel -l pl.UTF-8
44bf8443
JB
120Ten pakiet zawiera pliki nagłówkowe oraz dokumentację do tworzenia
121aplikacji wykorzystujących QuaZIP wraz z Qt 4.
4b244daf 122
aec7796f 123%package qt4-static
b9362d02
JB
124Summary: Static QuaZIP library (Qt 4 version)
125Summary(pl.UTF-8): Statyczna biblioteka QuaZIP (wersja dla Qt 4)
126Group: Development/Libraries
aec7796f
JB
127Requires: %{name}-qt4-devel = %{version}-%{release}
128Provides: quazip-static = %{version}-%{release}
129Obsoletes: quazip-static < 1.3
b9362d02 130
aec7796f 131%description qt4-static
b9362d02
JB
132Static QuaZIP library (Qt 4 version).
133
aec7796f 134%description qt4-static -l pl.UTF-8
b9362d02
JB
135Statyczna biblioteka QuaZIP (wersja dla Qt 4).
136
4b244daf 137%package qt5
44bf8443
JB
138Summary: Qt 5/C++ wrapper for the minizip library
139Summary(pl.UTF-8): Obudowanie Qt 5/C++ do biblioteki minizip
4b244daf
ER
140Group: X11/Libraries
141
142%description qt5
143QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package
144that can be used to access ZIP archives. It uses Trolltech's Qt
145toolkit.
146
147QuaZIP allows you to access files inside ZIP archives using QIODevice
148API, and - yes! - that means that you can also use QTextStream,
149QDataStream or whatever you would like to use on your zipped files.
150
151QuaZIP provides complete abstraction of the ZIP/UNZIP API, for both
152reading from and writing to ZIP archives.
153
44bf8443
JB
154%description qt5 -l pl.UTF-8
155QuaZIP to proste obudowanie C++ dla pakietu ZIP/UNZIP Gillesa
156Vollanta, który może być używany do dostępu do archiwów ZIP. QuaZIP
157wykorzystuje bibliotekę narzędziową Qt firmy Trolltech.
158
159QuaZIP pozwala na dostęp do plików wewnątrz archiwów ZIP przy użyciu
160API QIODevice, co oznacza, że można używać QTextStream, QDataStream,
161jak i innych na zzipowanych plikach.
162
163QuaZIP udostępnia pełną abstrakcję API ZIP/UNZIP, zarówno dla odczytu,
164jak i zapisu plikówZIP.
165
4b244daf 166%package qt5-devel
44bf8443
JB
167Summary: Development files for QuaZIP (Qt 5 version)
168Summary(pl.UTF-8): Pliki programistyczne biblioteki QuaZIP (wersja dla Qt 5)
4b244daf
ER
169Group: Development/Libraries
170Requires: %{name}-qt5 = %{version}-%{release}
44bf8443 171Requires: Qt5Core-devel >= 5
bf18a0ad 172Requires: zlib-devel
4b244daf
ER
173
174%description qt5-devel
44bf8443
JB
175This package contains the header files and documentation for
176developing applications that use QuaZIP with Qt 5.
177
178%description qt5-devel -l pl.UTF-8
179Ten pakiet zawiera pliki nagłówkowe oraz dokumentację do tworzenia
180aplikacji wykorzystujących QuaZIP wraz z Qt 5.
4b244daf 181
b9362d02
JB
182%package qt5-static
183Summary: Static QuaZIP library (Qt 5 version)
184Summary(pl.UTF-8): Statyczna biblioteka QuaZIP (wersja dla Qt 5)
185Group: Development/Libraries
186Requires: %{name}-qt5-devel = %{version}-%{release}
187
188%description qt5-static
189Static QuaZIP library (Qt 5 version).
190
191%description qt5-static -l pl.UTF-8
192Statyczna biblioteka QuaZIP (wersja dla Qt 5).
193
e60fda55
JB
194%package qt6
195Summary: Qt 6/C++ wrapper for the minizip library
196Summary(pl.UTF-8): Obudowanie Qt 6/C++ do biblioteki minizip
197Group: X11/Libraries
198
199%description qt6
200QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package
201that can be used to access ZIP archives. It uses Trolltech's Qt
202toolkit.
203
204QuaZIP allows you to access files inside ZIP archives using QIODevice
205API, and - yes! - that means that you can also use QTextStream,
206QDataStream or whatever you would like to use on your zipped files.
207
208QuaZIP provides complete abstraction of the ZIP/UNZIP API, for both
209reading from and writing to ZIP archives.
210
211%description qt6 -l pl.UTF-8
212QuaZIP to proste obudowanie C++ dla pakietu ZIP/UNZIP Gillesa
213Vollanta, który może być używany do dostępu do archiwów ZIP. QuaZIP
214wykorzystuje bibliotekę narzędziową Qt firmy Trolltech.
215
216QuaZIP pozwala na dostęp do plików wewnątrz archiwów ZIP przy użyciu
217API QIODevice, co oznacza, że można używać QTextStream, QDataStream,
218jak i innych na zzipowanych plikach.
219
220QuaZIP udostępnia pełną abstrakcję API ZIP/UNZIP, zarówno dla odczytu,
221jak i zapisu plikówZIP.
222
223%package qt6-devel
224Summary: Development files for QuaZIP (Qt 6 version)
225Summary(pl.UTF-8): Pliki programistyczne biblioteki QuaZIP (wersja dla Qt 6)
226Group: Development/Libraries
227Requires: %{name}-qt6 = %{version}-%{release}
228Requires: Qt6Core-devel >= 6
229Requires: zlib-devel
230
231%description qt6-devel
232This package contains the header files and documentation for
233developing applications that use QuaZIP with Qt 6.
234
235%description qt6-devel -l pl.UTF-8
236Ten pakiet zawiera pliki nagłówkowe oraz dokumentację do tworzenia
237aplikacji wykorzystujących QuaZIP wraz z Qt 56
238
239%package qt6-static
240Summary: Static QuaZIP library (Qt 6 version)
241Summary(pl.UTF-8): Statyczna biblioteka QuaZIP (wersja dla Qt 6)
242Group: Development/Libraries
243Requires: %{name}-qt6-devel = %{version}-%{release}
244
245%description qt6-static
246Static QuaZIP library (Qt 6 version).
247
248%description qt6-static -l pl.UTF-8
249Statyczna biblioteka QuaZIP (wersja dla Qt 6).
250
2f072092
JB
251%package apidocs
252Summary: API documentation for QuaZIP libraries
253Summary(pl.UTF-8): Dokumentacja API bibliotek QuaZIP
254Group: Documentation
255BuildArch: noarch
256
257%description apidocs
258API documentation for QuaZIP libraries.
259
260%description apidocs -l pl.UTF-8
261Dokumentacja API bibliotek QuaZIP.
262
4b244daf
ER
263%prep
264%setup -q
f391b2ef 265%patch0 -p1
4b244daf
ER
266
267%build
fbdd6635 268export CXXFLAGS="%{rpmcxxflags} -fPIC"
bf18a0ad
JB
269%if %{with qt4}
270%cmake -B build-qt4 \
271 -DQUAZIP_QT_MAJOR_VERSION=4
272
273%{__make} -C build-qt4
274
275%if %{with static_libs}
276%cmake -B build-qt4-static \
277 -DBUILD_SHARED_LIBS=OFF \
278 -DQUAZIP_QT_MAJOR_VERSION=4
279
280%{__make} -C build-qt4-static
281%endif
a86b8374 282%endif
4b244daf 283
371fbe8a 284%if %{with qt5}
bf18a0ad
JB
285%cmake -B build-qt5 \
286 -DQUAZIP_QT_MAJOR_VERSION=5
287
288%{__make} -C build-qt5
289
290%if %{with static_libs}
291%cmake -B build-qt5-static \
292 -DBUILD_SHARED_LIBS=OFF \
293 -DQUAZIP_QT_MAJOR_VERSION=5
294
295%{__make} -C build-qt5-static
296%endif
a86b8374 297%endif
4b244daf 298
e60fda55
JB
299%if %{with qt6}
300%cmake -B build-qt6 \
301 -DQUAZIP_QT_MAJOR_VERSION=6
302
303%{__make} -C build-qt6
304
305%if %{with static_libs}
306%cmake -B build-qt6-static \
307 -DBUILD_SHARED_LIBS=OFF \
308 -DQUAZIP_QT_MAJOR_VERSION=6
309
310%{__make} -C build-qt6-static
311%endif
312%endif
313
4b244daf
ER
314doxygen Doxyfile
315for file in doc/html/*; do
316 touch -r Doxyfile $file
317done
318
319%install
320rm -rf $RPM_BUILD_ROOT
bf18a0ad 321
a86b8374 322%if %{with qt4}
371fbe8a 323%{__make} -C build-qt4 install/fast \
4b244daf 324 DESTDIR=$RPM_BUILD_ROOT
bf18a0ad
JB
325
326%if %{with static_libs}
327%{__make} -C build-qt4-static install/fast \
328 DESTDIR=$RPM_BUILD_ROOT
a86b8374 329%endif
bf18a0ad
JB
330%endif
331
a86b8374 332%if %{with qt5}
371fbe8a 333%{__make} -C build-qt5 install/fast \
4b244daf 334 DESTDIR=$RPM_BUILD_ROOT
bf18a0ad
JB
335
336%if %{with static_libs}
337%{__make} -C build-qt5-static install/fast \
338 DESTDIR=$RPM_BUILD_ROOT
339%endif
a86b8374 340%endif
4b244daf 341
e60fda55
JB
342%if %{with qt6}
343%{__make} -C build-qt6 install/fast \
344 DESTDIR=$RPM_BUILD_ROOT
345
346%if %{with static_libs}
347%{__make} -C build-qt6-static install/fast \
348 DESTDIR=$RPM_BUILD_ROOT
349%endif
350%endif
351
4b244daf
ER
352%clean
353rm -rf $RPM_BUILD_ROOT
354
aec7796f
JB
355%post qt4 -p /sbin/ldconfig
356%postun qt4 -p /sbin/ldconfig
4b244daf 357
a86b8374
ER
358%post qt5 -p /sbin/ldconfig
359%postun qt5 -p /sbin/ldconfig
360
e60fda55
JB
361%post qt6 -p /sbin/ldconfig
362%postun qt6 -p /sbin/ldconfig
363
a86b8374 364%if %{with qt4}
aec7796f 365%files qt4
4b244daf 366%defattr(644,root,root,755)
f391b2ef
BS
367%doc COPYING NEWS.txt README.md
368%attr(755,root,root) %{_libdir}/libquazip1-qt4.so.*.*.*
c4de7c2b 369%attr(755,root,root) %ghost %{_libdir}/libquazip1-qt4.so.1.4
4b244daf 370
aec7796f 371%files qt4-devel
4b244daf 372%defattr(644,root,root,755)
f391b2ef 373%attr(755,root,root) %{_libdir}/libquazip1-qt4.so
c4de7c2b
JB
374%{_includedir}/QuaZip-Qt4-1.4
375%{_libdir}/cmake/QuaZip-Qt4-1.4
f391b2ef 376%{_pkgconfigdir}/quazip1-qt4.pc
b9362d02 377
bf18a0ad 378%if %{with static_libs}
aec7796f 379%files qt4-static
b9362d02 380%defattr(644,root,root,755)
bf18a0ad
JB
381%{_libdir}/libquazip1-qt4.a
382%endif
a86b8374 383%endif
4b244daf 384
371fbe8a 385%if %{with qt5}
4b244daf
ER
386%files qt5
387%defattr(644,root,root,755)
f391b2ef
BS
388%doc COPYING NEWS.txt README.md
389%attr(755,root,root) %{_libdir}/libquazip1-qt5.so.*.*.*
c4de7c2b 390%attr(755,root,root) %ghost %{_libdir}/libquazip1-qt5.so.1.4
4b244daf
ER
391
392%files qt5-devel
393%defattr(644,root,root,755)
f391b2ef 394%attr(755,root,root) %{_libdir}/libquazip1-qt5.so
c4de7c2b
JB
395%{_includedir}/QuaZip-Qt5-1.4
396%{_libdir}/cmake/QuaZip-Qt5-1.4
f391b2ef 397%{_pkgconfigdir}/quazip1-qt5.pc
b9362d02 398
bf18a0ad 399%if %{with static_libs}
b9362d02
JB
400%files qt5-static
401%defattr(644,root,root,755)
bf18a0ad 402%{_libdir}/libquazip1-qt5.a
a86b8374 403%endif
f391b2ef 404%endif
2f072092 405
e60fda55
JB
406%if %{with qt6}
407%files qt6
408%defattr(644,root,root,755)
409%doc COPYING NEWS.txt README.md
410%attr(755,root,root) %{_libdir}/libquazip1-qt6.so.*.*.*
c4de7c2b 411%attr(755,root,root) %ghost %{_libdir}/libquazip1-qt6.so.1.4
e60fda55
JB
412
413%files qt6-devel
414%defattr(644,root,root,755)
415%attr(755,root,root) %{_libdir}/libquazip1-qt6.so
c4de7c2b
JB
416%{_includedir}/QuaZip-Qt6-1.4
417%{_libdir}/cmake/QuaZip-Qt6-1.4
e60fda55
JB
418%{_pkgconfigdir}/quazip1-qt6.pc
419
420%if %{with static_libs}
421%files qt6-static
422%defattr(644,root,root,755)
423%{_libdir}/libquazip1-qt6.a
424%endif
425%endif
426
2f072092
JB
427%files apidocs
428%defattr(644,root,root,755)
429%doc doc/html/*.{css,html,js,png}
This page took 0.74062 seconds and 4 git commands to generate.