From b0bb41148430beeab0069d60059e9e544a7abb7d Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 19 Jul 2022 17:25:07 +0200 Subject: [PATCH] Initial build of parallel-installable gcr3 version, based on earlier gcr packaging --- .gitignore | 1 + gcr3.spec | 120 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 122 insertions(+) create mode 100644 .gitignore create mode 100644 gcr3.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c5ecfc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gcr-3.41.1.tar.xz diff --git a/gcr3.spec b/gcr3.spec new file mode 100644 index 0000000..bf2d07f --- /dev/null +++ b/gcr3.spec @@ -0,0 +1,120 @@ +%ifarch %{valgrind_arches} +%global has_valgrind 1 +%endif + +Name: gcr3 +Version: 3.41.1 +Release: 1%{?dist} +Summary: A library for bits of crypto UI and parsing + +License: LGPLv2+ +URL: https://wiki.gnome.org/Projects/CryptoGlue +Source0: https://download.gnome.org/sources/gcr/3.41/gcr-%{version}.tar.xz + +BuildRequires: gettext +BuildRequires: gi-docgen +BuildRequires: meson +BuildRequires: pkgconfig(gio-unix-2.0) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(libsecret-1) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(p11-kit-1) +BuildRequires: docbook-style-xsl +BuildRequires: libgcrypt-devel +BuildRequires: desktop-file-utils +BuildRequires: systemd-rpm-macros +BuildRequires: vala +%if 0%{?has_valgrind} +BuildRequires: valgrind-devel +%endif +BuildRequires: /usr/bin/gpg2 +BuildRequires: /usr/bin/ssh-add +BuildRequires: /usr/bin/ssh-agent +BuildRequires: /usr/bin/xsltproc + +Requires: %{name}-base%{?_isa} = %{version}-%{release} +# Explicitly conflict with older gcr package that ships the same libraries +Conflicts: gcr < 3.90.0 + +%description +gcr is a library for displaying certificates, and crypto UI, accessing +key stores. It also provides a viewer for crypto files on the GNOME +desktop. + +gck is a library for accessing PKCS#11 modules like smart cards. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +# Explicitly conflict with older gcr package that ships the same libraries +Conflicts: gcr-devel < 3.90.0 + +%description devel +The %{name}-devel package includes the header files for the gcr library. + +%package base +Summary: Library files for gcr +# Explicitly conflict with older gcr package that ships the same libraries +Conflicts: gcr-base < 3.90.0 + +%description base +The %{name}-base package includes the gcr-base library. + +%prep +%autosetup -p1 -n gcr-%{version} + +%build +%meson +%meson_build + +%install +%meson_install +%find_lang gcr + +# Remove the bits that we don't need in the compat package +rm -rf $RPM_BUILD_ROOT%{_bindir}/gcr-viewer +rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/gcr-viewer.desktop +rm -rf $RPM_BUILD_ROOT%{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert +rm -rf $RPM_BUILD_ROOT%{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert +rm -rf $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml +rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/*/apps/* +rm -rf $RPM_BUILD_ROOT%{_datadir}/mime/packages/gcr-crypto-types.xml +rm -rf $RPM_BUILD_ROOT%{_libexecdir}/gcr-prompter +rm -rf $RPM_BUILD_ROOT%{_libexecdir}/gcr-ssh-agent +rm -rf $RPM_BUILD_ROOT%{_libexecdir}/gcr-ssh-askpass +rm -rf $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service +rm -rf $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service +rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/gcr-prompter.desktop +rm -rf $RPM_BUILD_ROOT%{_userunitdir}/gcr-ssh-agent.service +rm -rf $RPM_BUILD_ROOT%{_userunitdir}/gcr-ssh-agent.socket +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gck-1/ +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gcr-3/ +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gcr-ui-3/ + +%files -f gcr.lang +%doc NEWS README.md +%license COPYING +%{_libdir}/girepository-1.0/ +%{_libdir}/libgcr-ui-3.so.1* + +%files devel +%{_includedir}/gck-1/ +%{_includedir}/gcr-3/ +%{_libdir}/libgck-1.so +%{_libdir}/libgcr-base-3.so +%{_libdir}/libgcr-ui-3.so +%{_libdir}/pkgconfig/gck-1.pc +%{_libdir}/pkgconfig/gcr-3.pc +%{_libdir}/pkgconfig/gcr-base-3.pc +%{_libdir}/pkgconfig/gcr-ui-3.pc +%{_datadir}/gir-1.0/ +%{_datadir}/vala/ + +%files base +%{_libdir}/libgck-1.so.0* +%{_libdir}/libgcr-base-3.so.1* + +%changelog +* Tue Jul 19 2022 Kalev Lember - 3.41.1-1 +- Initial build of parallel-installable gcr3 version, based on earlier gcr packaging diff --git a/sources b/sources new file mode 100644 index 0000000..51a0023 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gcr-3.41.1.tar.xz) = dd70d41636ede863d05824b26823a8f572902f7a9b6f09b0c70586ef0d4c046864e6956130b9231850a515a9fbfcd56faf20354c1cf8f697f005827c048a2325