added -qt6 subpackages [release 1.3-2mamba;Thu Sep 01 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 17:19:59 +01:00
parent ba4ff47846
commit 3ac4f1cd31

View File

@ -1,6 +1,6 @@
Name: quazip
Version: 1.3
Release: 1mamba
Release: 2mamba
Summary: Qt/C++ wrapper over minizip
Group: Applications/Archiving
Vendor: openmamba
@ -15,6 +15,8 @@ BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt6-qt5compat-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
@ -38,20 +40,44 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n lib%{name}-qt6
Group: System/Libraries
Summary: Qt/C++ wrapper over minizip for Qt6
%description -n lib%{name}-qt6
Qt/C++ wrapper over minizip.
This package contains shared libraries for %{name}.
%package -n lib%{name}-qt6-devel
Group: Development/Libraries
Summary: Development files for %{name}-qt6
Requires: lib%{name}-qt6 = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-qt6-devel
This package contains libraries and header files for developing applications that use %{name}-qt6.
%debug_package
%prep
%setup -q
%build
%cmake -d build \
%cmake -d build5 \
-DQUAZIP_QT_MAJOR_VERSION=5
%make
cd ..
%cmake -d build6 \
-DQUAZIP_QT_MAJOR_VERSION=6
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%makeinstall -C build5
%makeinstall -C build6
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -59,6 +85,9 @@ This package contains libraries and header files for developing applications tha
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%post -n lib%{name}-qt6 -p /sbin/ldconfig
%postun -n lib%{name}-qt6 -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libquazip1-qt5.so.*
@ -74,7 +103,25 @@ This package contains libraries and header files for developing applications tha
%{_libdir}/pkgconfig/quazip1-qt5.pc
%doc README.md
%files -n lib%{name}-qt6
%defattr(-,root,root)
%{_libdir}/libquazip1-qt6.so.*
%doc COPYING
%files -n lib%{name}-qt6-devel
%defattr(-,root,root)
%dir %{_includedir}/QuaZip-Qt6-%{version}
%dir %{_includedir}/QuaZip-Qt6-%{version}/quazip/
%{_includedir}/QuaZip-Qt6-%{version}/quazip/*
%dir %{_libdir}/cmake/QuaZip-Qt6-%{version}
%{_libdir}/cmake/QuaZip-Qt6-%{version}/QuaZip-Qt6*.cmake
%{_libdir}/libquazip1-qt6.so
%{_libdir}/pkgconfig/quazip1-qt6.pc
%changelog
* Thu Sep 01 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-2mamba
- added -qt6 subpackages
* Sun Apr 17 2022 Automatic Build System <autodist@mambasoft.it> 1.3-1mamba
- automatic version update by autodist