|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
Name: quazip
|
|
|
|
|
Version: 0.7.3
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 0.7.6
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Qt/C++ wrapper for the minizip library
|
|
|
|
|
License: GPLv2+ or LGPLv2+
|
|
|
|
|
URL: http://quazip.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch0: quazip-0.7.2-fix_static.patch
|
|
|
|
|
URL: https://github.com/stachenov/quazip
|
|
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch0: quazip-0.7.6-fix_static.patch
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: qt4-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
@ -25,7 +25,6 @@ from and writing to ZIP archives.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: qt4-devel%{?_isa}
|
|
|
|
|
|
|
|
|
@ -57,22 +56,21 @@ for developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .orig
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
mkdir build-qt4
|
|
|
|
|
pushd build-qt4
|
|
|
|
|
%cmake .. -DBUILD_WITH_QT4:BOOL=ON
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
mkdir build-qt5
|
|
|
|
|
pushd build-qt5
|
|
|
|
|
%cmake .. -DBUILD_WITH_QT4:BOOL=OFF
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
doxygen Doxyfile
|
|
|
|
@ -84,12 +82,11 @@ done
|
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C build-qt5
|
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C build-qt4
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING NEWS.txt README.txt
|
|
|
|
|
%doc NEWS.txt README.md
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libquazip.so.1*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
@ -99,7 +96,8 @@ make install/fast DESTDIR=%{buildroot} -C build-qt4
|
|
|
|
|
%{_datadir}/cmake/Modules/FindQuaZip.cmake
|
|
|
|
|
|
|
|
|
|
%files qt5
|
|
|
|
|
%doc COPYING NEWS.txt README.txt
|
|
|
|
|
%doc NEWS.txt README.md
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libquazip5.so.1*
|
|
|
|
|
|
|
|
|
|
%files qt5-devel
|
|
|
|
@ -110,6 +108,9 @@ make install/fast DESTDIR=%{buildroot} -C build-qt4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jul 17 2018 Nicolas Chauvet <kwizart@gmail.com> - 0.7.6-1
|
|
|
|
|
- Update to 0.7.6
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|