| |
@@ -1,14 +1,14 @@
|
| |
%undefine __cmake_in_source_build
|
| |
|
| |
Name: quazip
|
| |
- Version: 0.7.6
|
| |
- Release: 11%{?dist}
|
| |
+ Version: 1.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Qt/C++ wrapper for the minizip library
|
| |
License: GPLv2+ or LGPLv2+
|
| |
URL: https://github.com/stachenov/quazip
|
| |
- Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
| |
- Patch0: quazip-0.7.6-fix_static.patch
|
| |
- Patch1: quazip-0.7.6-install-right-prefix.patch
|
| |
+ Source0: %{url}/archive/v%{version}/%{name}-v%{version}.tar.gz
|
| |
+ # pre-1.0 compat CMake module
|
| |
+ Source1: FindQuaZip.cmake
|
| |
BuildRequires: cmake
|
| |
BuildRequires: gcc-c++
|
| |
BuildRequires: qt4-devel
|
| |
@@ -66,11 +66,11 @@
|
| |
|
| |
%build
|
| |
%global _vpath_builddir build-qt4
|
| |
- %cmake -DBUILD_WITH_QT4:BOOL=ON
|
| |
+ %cmake -DQUAZIP_QT_MAJOR_VERSION=4
|
| |
%cmake_build
|
| |
|
| |
%global _vpath_builddir build-qt5
|
| |
- %cmake -DBUILD_WITH_QT4:BOOL=OFF
|
| |
+ %cmake -DQUAZIP_QT_MAJOR_VERSION=5
|
| |
%cmake_build
|
| |
|
| |
doxygen Doxyfile
|
| |
@@ -84,32 +84,63 @@
|
| |
%global _vpath_builddir build-qt5
|
| |
%cmake_install
|
| |
|
| |
+ # Create compat symlinks/files so that packages that use the old (pre-1.0)
|
| |
+ # library location, include paths, or CMake module still build against the
|
| |
+ # devel package. Note that the resulting binaries will refer to the new
|
| |
+ # library name, though.
|
| |
+ #
|
| |
+ # These symlinks should probably be removed once all dependent packages are
|
| |
+ # switched to use the new pkgconfig or CMake modules.
|
| |
+ ln -s libquazip1-qt4.so %{buildroot}%{_libdir}/libquazip.so
|
| |
+ ln -s libquazip1-qt5.so %{buildroot}%{_libdir}/libquazip5.so
|
| |
+
|
| |
+ ln -s QuaZip-Qt4-1.1/quazip %{buildroot}%{_includedir}/quazip
|
| |
+ ln -s QuaZip-Qt5-1.1/quazip %{buildroot}%{_includedir}/quazip5
|
| |
+
|
| |
+ install -d %{buildroot}%{_datadir}/cmake/Modules
|
| |
+ install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindQuaZip.cmake
|
| |
+ install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindQuaZip5.cmake
|
| |
+
|
| |
%ldconfig_scriptlets
|
| |
|
| |
%files
|
| |
%doc NEWS.txt README.md
|
| |
%license COPYING
|
| |
- %{_libdir}/libquazip.so.1*
|
| |
+ %{_libdir}/libquazip1-qt4.so.1*
|
| |
|
| |
%files devel
|
| |
%doc doc/html
|
| |
- %{_includedir}/quazip/
|
| |
+ %{_includedir}/QuaZip-Qt4-1.1/
|
| |
+ %{_libdir}/libquazip1-qt4.so
|
| |
+ %{_libdir}/cmake/QuaZip-Qt4-1.1/
|
| |
+ %{_libdir}/pkgconfig/quazip1-qt4.pc
|
| |
+ # pre-1.0 compat files
|
| |
+ %{_includedir}/quazip
|
| |
%{_libdir}/libquazip.so
|
| |
%{_datadir}/cmake/Modules/FindQuaZip.cmake
|
| |
|
| |
%files qt5
|
| |
%doc NEWS.txt README.md
|
| |
%license COPYING
|
| |
- %{_libdir}/libquazip5.so.1*
|
| |
+ %{_libdir}/libquazip1-qt5.so.1*
|
| |
|
| |
%files qt5-devel
|
| |
%doc doc/html
|
| |
- %{_includedir}/quazip5/
|
| |
+ %{_includedir}/QuaZip-Qt5-1.1/
|
| |
+ %{_libdir}/libquazip1-qt5.so
|
| |
+ %{_libdir}/cmake/QuaZip-Qt5-1.1/
|
| |
+ %{_libdir}/pkgconfig/quazip1-qt5.pc
|
| |
+ # pre-1.0 compat files
|
| |
+ %{_includedir}/quazip5
|
| |
%{_libdir}/libquazip5.so
|
| |
%{_datadir}/cmake/Modules/FindQuaZip5.cmake
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Sat Jul 31 2021 Ondrej Mosnacek <omosnace@rehdat.com> - 1.1-1
|
| |
+ - Update to 1.1
|
| |
+ - Resolves: rhbz#1895170
|
| |
+
|
| |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.6-11
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
|
| |
Current upstream version has changed the name of the library, include
paths, and CMake module names. To allow other packages to still build
using the old paths, add compat symlinks and the old CMake modules to
the -devel subpackages. These compat hacks can be removed once all
dependent packages have switched to use the new pkgconfig or CMake
files.
(Please no one merge this yet - will need coordinated rebuilds in a side-tag due to soname changes)