[packages/qgpgme] - qt libraries split from gpgme.spec since 2.0.0

qboosh qboosh at pld-linux.org
Thu Jul 10 19:05:08 CEST 2025


commit 396a2c080d2c8eb9e031c334344079ba75cc08c7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 10 19:06:35 2025 +0200

    - qt libraries split from gpgme.spec since 2.0.0

 qgpgme.spec | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 224 insertions(+)
---
diff --git a/qgpgme.spec b/qgpgme.spec
new file mode 100644
index 0000000..37961fb
--- /dev/null
+++ b/qgpgme.spec
@@ -0,0 +1,224 @@
+# TODO: actually package apidocs
+#
+# Conditional build:
+%bcond_without	qt5		# Qt 5 interface
+%bcond_without	qt6		# Qt 6 interface
+%bcond_without	tests		# perform tests
+%bcond_without	docs		# Qt binding docs
+
+%define		qt5_ver		5.15.0
+%define		qt6_ver		6.5.0
+Summary:	QGpgME - Qt interface for GPGME library
+Summary(pl.UTF-8):	QGpgME - interfejs Qt do biblioteki GPGME
+Name:		qgpgme
+Version:	2.0.0
+Release:	1
+License:	GPL v2+ with Qt linking exception
+Group:		Libraries
+Source0:	https://www.gnupg.org/ftp/gcrypt/qgpgme/%{name}-%{version}.tar.xz
+# Source0-md5:	66ca1d8758241d52f723d01414fbfc20
+URL:		https://www.gnupg.org/related_software/gpgme/
+BuildRequires:	cmake >= 3.16
+BuildRequires:	gpgme-devel >= 1:2.0.0
+BuildRequires:	gpgmepp-devel >= 2.0.0
+BuildRequires:	libgpg-error-devel >= 1.47
+BuildRequires:	libstdc++-devel >= 6:7
+BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+%if %{with qt5}
+BuildRequires:	Qt5Core-devel >= %{qt5_ver}
+%{?with_tests:BuildRequires:	Qt5Test-devel >= %{qt5_ver}}
+BuildRequires:	qt5-build >= %{qt5_ver}
+%endif
+%if %{with qt6}
+BuildRequires:	Qt6Core-devel >= %{qt6_ver}
+%{?with_tests:BuildRequires:	Qt6Test-devel >= %{qt6_ver}}
+BuildRequires:	qt6-build >= %{qt6_ver}
+%endif
+%if %{with docs}
+BuildRequires:	doxygen
+BuildRequires:	graphviz
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+QGpgME is Qt interface for GPGME library, based on library from
+KF5gpgmepp. QGpgME provides a very high level Qt API around GpgMEpp.
+
+%description -l pl.UTF-8
+QGpgME to interfejs Qt do biblioteki GPGME, oparty na bibliotece z
+KF5gpgmepp. QGpgME udostępnia API Qt do GpgMEpp bardzo wysokiego
+poziomu.
+
+%package qt5
+Summary:	QGpgME - Qt 5 interface for GPGME library
+Summary(pl.UTF-8):	QGpgME - interfejs Qt 5 do biblioteki GPGME
+License:	GPL v2+ with Qt linking exception
+Group:		Libraries
+Requires:	Qt5Core >= %{qt5_ver}
+Requires:	gpgme >= 1:2.0.0
+Requires:	gpgmepp >= 2.0.0
+Requires:	libgpg-error >= 1.47
+Obsoletes:	gpgme-qt5 < 1:2
+
+%description qt5
+QGpgME is Qt 5 interface for GPGME library, based on library from
+KF5gpgmepp. QGpgME provides a very high level Qt API around GpgMEpp.
+
+%description qt5 -l pl.UTF-8
+QGpgME to interfejs Qt 5 do biblioteki GPGME, oparty na bibliotece z
+KF5gpgmepp. QGpgME udostępnia API Qt do GpgMEpp bardzo wysokiego
+poziomu.
+
+%package qt5-devel
+Summary:	Header files for QGpgME library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki QGpgME
+License:	GPL v2+ with Qt linking exception
+Group:		Development/Libraries
+Requires:	%{name}-qt5 = %{version}-%{release}
+Requires:	Qt5Core-devel >= %{qt5_ver}
+Requires:	gpgme-devel >= 1:2.0.0
+Requires:	gpgmepp-devel >= 2.0.0
+Requires:	libgpg-error-devel >= 1.47
+Obsoletes:	gpgme-qt5-devel < 1:2
+Conflicts:	kde4-kdepimlibs-devel
+
+%description qt5-devel
+Header files for QGpgME library.
+
+%description qt5-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki QGpgME.
+
+%package qt5-static
+Summary:	Static QGpgME library
+Summary(pl.UTF-8):	Statyczna biblioteka QGpgME
+License:	GPL v2+ with Qt linking exception
+Group:		Development/Libraries
+Requires:	%{name}-qt5-devel = %{version}-%{release}
+Obsoletes:	gpgme-qt5-static < 1:2
+
+%description qt5-static
+Static QGpgME library.
+
+%description qt5-static -l pl.UTF-8
+Statyczna biblioteka QGpgME.
+
+%package qt6
+Summary:	QGpgME - Qt 6 interface for GPGME library
+Summary(pl.UTF-8):	QGpgME - interfejs Qt 6 do biblioteki GPGME
+License:	GPL v2+ with Qt linking exception
+Group:		Libraries
+Requires:	Qt6Core >= %{qt6_ver}
+Requires:	gpgme >= 1:2.0.0
+Requires:	gpgmepp >= 2.0.0
+Requires:	libgpg-error >= 1.47
+Obsoletes:	gpgme-qt6 < 1:2
+
+%description qt6
+QGpgME is Qt 6 interface for GPGME library, based on library from
+KF5gpgmepp. QGpgME provides a very high level Qt API around GpgMEpp.
+
+%description qt6 -l pl.UTF-8
+QGpgME to interfejs Qt 6 do biblioteki GPGME, oparty na bibliotece z
+KF5gpgmepp. QGpgME udostępnia API Qt do GpgMEpp bardzo wysokiego
+poziomu.
+
+%package qt6-devel
+Summary:	Header files for QGpgME library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki QGpgME
+License:	GPL v2+ with Qt linking exception
+Group:		Development/Libraries
+Requires:	%{name}-qt6 = %{version}-%{release}
+Requires:	Qt6Core-devel >= %{qt6_ver}
+Requires:	gpgme-devel >= 1:2.0.0
+Requires:	gpgmepp-devel >= 2.0.0
+Requires:	libgpg-error-devel >= 1.47
+Obsoletes:	gpgme-qt6-devel < 1:2
+Conflicts:	kde4-kdepimlibs-devel
+
+%description qt6-devel
+Header files for QGpgME library.
+
+%description qt6-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki QGpgME.
+
+%package qt6-static
+Summary:	Static QGpgME library
+Summary(pl.UTF-8):	Statyczna biblioteka QGpgME
+License:	GPL v2+ with Qt linking exception
+Group:		Development/Libraries
+Requires:	%{name}-qt6-devel = %{version}-%{release}
+Obsoletes:	gpgme-qt6-static < 1:2
+
+%description qt6-static
+Static QGpgME library.
+
+%description qt6-static -l pl.UTF-8
+Statyczna biblioteka QGpgME.
+
+%prep
+%setup -q
+
+%build
+%cmake -B build \
+	%{!?with_qt5:-DBUILD_WITH_QT5=OFF} \
+	%{!?with_qt6:-DBUILD_WITH_QT6=OFF} \
+
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	qt5 -p /sbin/ldconfig
+%postun	qt5 -p /sbin/ldconfig
+
+%post	qt6 -p /sbin/ldconfig
+%postun	qt6 -p /sbin/ldconfig
+
+%if %{with qt5}
+%files qt5
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libqgpgme.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libqgpgme.so.15
+
+%files qt5-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libqgpgme.so
+%{_includedir}/qgpgme-qt5
+%{_libdir}/cmake/QGpgme
+
+%if %{with static_libs}
+%files qt5-static
+%defattr(644,root,root,755)
+%{_libdir}/libqgpgme.a
+%endif
+%endif
+
+%if %{with qt6}
+%files qt6
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libqgpgmeqt6.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libqgpgmeqt6.so.15
+
+%files qt6-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libqgpgmeqt6.so
+%{_includedir}/qgpgme-qt6
+%{_libdir}/cmake/QGpgmeQt6
+
+%if %{with static_libs}
+%files qt6-static
+%defattr(644,root,root,755)
+%{_libdir}/libqgpgmeqt6.a
+%endif
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qgpgme.git/commitdiff/396a2c080d2c8eb9e031c334344079ba75cc08c7



More information about the pld-cvs-commit mailing list