added -qt6 subpackages [release 1.3-2mamba;Thu Sep 01 2022]
This commit is contained in:
parent
ba4ff47846
commit
3ac4f1cd31
55
quazip.spec
55
quazip.spec
@ -1,6 +1,6 @@
|
|||||||
Name: quazip
|
Name: quazip
|
||||||
Version: 1.3
|
Version: 1.3
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Qt/C++ wrapper over minizip
|
Summary: Qt/C++ wrapper over minizip
|
||||||
Group: Applications/Archiving
|
Group: Applications/Archiving
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -15,6 +15,8 @@ BuildRequires: libgcc
|
|||||||
BuildRequires: libstdc++6-devel
|
BuildRequires: libstdc++6-devel
|
||||||
BuildRequires: libz-devel
|
BuildRequires: libz-devel
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: qt5-qtbase-devel
|
||||||
|
BuildRequires: qt6-qt5compat-devel
|
||||||
|
BuildRequires: qt6-qtbase-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
@ -38,20 +40,44 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
%description -n lib%{name}-devel
|
%description -n lib%{name}-devel
|
||||||
This package contains libraries and header files for developing applications that use %{name}.
|
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
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -d build \
|
%cmake -d build5 \
|
||||||
-DQUAZIP_QT_MAJOR_VERSION=5
|
-DQUAZIP_QT_MAJOR_VERSION=5
|
||||||
|
|
||||||
|
%make
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%cmake -d build6 \
|
||||||
|
-DQUAZIP_QT_MAJOR_VERSION=6
|
||||||
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall -C build
|
%makeinstall -C build5
|
||||||
|
|
||||||
|
%makeinstall -C build6
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{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
|
%post -n lib%{name} -p /sbin/ldconfig
|
||||||
%postun -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}
|
%files -n lib%{name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libquazip1-qt5.so.*
|
%{_libdir}/libquazip1-qt5.so.*
|
||||||
@ -74,7 +103,25 @@ This package contains libraries and header files for developing applications tha
|
|||||||
%{_libdir}/pkgconfig/quazip1-qt5.pc
|
%{_libdir}/pkgconfig/quazip1-qt5.pc
|
||||||
%doc README.md
|
%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
|
%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
|
* Sun Apr 17 2022 Automatic Build System <autodist@mambasoft.it> 1.3-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user