polkit-qt-1/polkit-qt-1.spec

176 lines
5.5 KiB
RPMSpec

Name: polkit-qt-1
Version: 0.175.0
Release: 2mamba
Summary: Qt bindings for polkit
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://invent.kde.org/libraries/polkit-qt-1
Source: https://invent.kde.org/libraries/polkit-qt-1.git/v%{version}/polkit-qt-1-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libglvnd-devel
BuildRequires: libpolkit-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
%description
polkit-qt-1 aims to make it easy for Qt developers to take advantage of polkit API. It is a convenience wrapper around QAction and QAbstractButton that lets you integrate those two components easily with polkit.
%package -n libpolkit-qt5-1
Group: System/Libraries
Summary: Qt5 bindings for polkit
%description -n libpolkit-qt5-1
Polkit-qt-1 aims to make it easy for Qt5 developers to take advantage of polkit API. It is a convenience wrapper around QAction and QAbstractButton that lets you integrate those two components easily with polkit.
%package -n libpolkit-qt5-1-devel
Group: Development/Libraries
Summary: Development files for libpolkit-qt5-1
Requires: libpolkit-qt5-1 = %{?epoch:%epoch:}%{version}-%{release}
%description -n libpolkit-qt5-1-devel
Polkit-qt-1 aims to make it easy for Qt5 developers to take advantage of polkit API. It is a convenience wrapper around QAction and QAbstractButton that lets you integrate those two components easily with polkit.
This package contains static libraries and header files needed for development.
%package -n libpolkit-qt6-1
Group: System/Libraries
Summary: Qt6 bindings for polkit
%description -n libpolkit-qt6-1
Polkit-qt-1 aims to make it easy for Qt6 developers to take advantage of polkit API. It is a convenience wrapper around QAction and QAbstractButton that lets you integrate those two components easily with polkit.
%package -n libpolkit-qt6-1-devel
Group: Development/Libraries
Summary: Development files for libpolkit-qt6-1
Requires: libpolkit-qt6-1 = %{?epoch:%epoch:}%{version}-%{release}
%description -n libpolkit-qt6-1-devel
Polkit-qt-1 aims to make it easy for Qt6 developers to take advantage of polkit API. It is a convenience wrapper around QAction and QAbstractButton that lets you integrate those two components easily with polkit.
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
cd ..
%cmake -d build-qt6\
-DQT_MAJOR_VERSION=6
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build-qt6
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libpolkit-qt5-1
/sbin/ldconfig
:
%postun -n libpolkit-qt5-1
/sbin/ldconfig
:
%post -n libpolkit-qt6-1
/sbin/ldconfig
:
%postun -n libpolkit-qt6-1
/sbin/ldconfig
:
%files -n libpolkit-qt5-1
%defattr(-,root,root)
%{_libdir}/libpolkit-qt5-agent-1.so.*
%{_libdir}/libpolkit-qt5-core-1.so.*
%{_libdir}/libpolkit-qt5-gui-1.so.*
%doc LICENSES
%files -n libpolkit-qt5-1-devel
%defattr(-,root,root)
%dir %{_includedir}/polkit-qt5-1
%{_includedir}/polkit-qt5-1/*
%dir %{_libdir}/cmake/PolkitQt5-1
%{_libdir}/libpolkit-qt5-agent-1.so
%{_libdir}/libpolkit-qt5-core-1.so
%{_libdir}/libpolkit-qt5-gui-1.so
%{_libdir}/pkgconfig/polkit-qt5-1.pc
%{_libdir}/pkgconfig/polkit-qt5-agent-1.pc
%{_libdir}/pkgconfig/polkit-qt5-core-1.pc
%{_libdir}/pkgconfig/polkit-qt5-gui-1.pc
%{_libdir}/cmake/PolkitQt5-1/PolkitQt5-1*.cmake
%doc README TODO
%files -n libpolkit-qt6-1
%defattr(-,root,root)
%{_libdir}/libpolkit-qt6-agent-1.so.*
%{_libdir}/libpolkit-qt6-core-1.so.*
%{_libdir}/libpolkit-qt6-gui-1.so.*
%doc LICENSES
%files -n libpolkit-qt6-1-devel
%defattr(-,root,root)
%dir %{_includedir}/polkit-qt6-1
%{_includedir}/polkit-qt6-1/*
%{_libdir}/libpolkit-qt6-agent-1.so
%{_libdir}/libpolkit-qt6-core-1.so
%{_libdir}/libpolkit-qt6-gui-1.so
%{_libdir}/pkgconfig/polkit-qt6-1.pc
%{_libdir}/pkgconfig/polkit-qt6-agent-1.pc
%{_libdir}/pkgconfig/polkit-qt6-core-1.pc
%{_libdir}/pkgconfig/polkit-qt6-gui-1.pc
%dir %{_libdir}/cmake/PolkitQt6-1
%{_libdir}/cmake/PolkitQt6-1/PolkitQt6-1*.cmake
%doc README TODO
%changelog
* Tue Jan 30 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.175.0-2mamba
- added qt6 subpackages
* Tue Dec 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.175.0-1mamba
- update to 0.175.0
* Sun Jun 27 2021 Automatic Build System <autodist@mambasoft.it> 0.114.0-1mamba
- automatic version update by autodist
* Thu Apr 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.113.0-1mamba
- update to 0.113.0
* Tue Feb 03 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.112.0-1mamba
- update to 0.112.0
* Tue Dec 20 2011 Automatic Build System <autodist@mambasoft.it> 0.103.0-1mamba
- automatic version update by autodist
* Thu Jan 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.99.0-1mamba
- update to 0.99.0
* Thu Oct 28 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.96.1-1mamba
- update to 0.96.1
* Thu Jun 10 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.95.1-3mamba
- obsolete polkit-qt
* Mon Apr 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.95.1-2mamba
- added install-cmake-find patch
* Sun Apr 04 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.95.1-1mamba
- package created by autospec