2019-09-30 10:39:20 -04:00
|
|
|
%ifarch %{valgrind_arches}
|
|
|
|
|
%global has_valgrind 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: gcr
|
2020-07-25 17:42:28 +08:00
|
|
|
Version: 3.36.0
|
2020-01-12 15:43:15 +08:00
|
|
|
Release: 1
|
2019-09-30 10:39:20 -04:00
|
|
|
Summary: A library for bits of crypto UI and parsing
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://wiki.gnome.org/Projects/CryptoGlue
|
2020-07-25 17:42:28 +08:00
|
|
|
Source0: https://download.gnome.org/sources/%{name}/3.36/%{name}-%{version}.tar.xz
|
2019-09-30 10:39:20 -04:00
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0) pkgconfig(gobject-introspection-1.0) pkgconfig(gtk+-3.0) pkgconfig(p11-kit-1)
|
2020-07-25 17:42:28 +08:00
|
|
|
BuildRequires: chrpath docbook-style-xsl libgcrypt-devel desktop-file-utils intltool vala gnupg2 libxslt meson
|
|
|
|
|
BuildRequires: gtk-doc gettext
|
2019-09-30 10:39:20 -04:00
|
|
|
%if 0%{?has_valgrind}
|
|
|
|
|
BuildRequires: valgrind-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-01-12 15:43:15 +08:00
|
|
|
Provides: %{name}-base = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-base < %{version}-%{release}
|
|
|
|
|
|
2019-09-30 10:39:20 -04:00
|
|
|
%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} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The gcr-devel package includes the header files for the gcr library.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
# Use system valgrind headers instead
|
|
|
|
|
%if 0%{?has_valgrind}
|
|
|
|
|
rm -rf build/valgrind/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
2020-07-25 17:42:28 +08:00
|
|
|
%meson
|
|
|
|
|
%meson_build
|
2019-09-30 10:39:20 -04:00
|
|
|
|
|
|
|
|
%install
|
2020-07-25 17:42:28 +08:00
|
|
|
%meson_install
|
2019-09-30 10:39:20 -04:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libmock-test-module.*
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
|
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gcr-viewer
|
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/gcr-prompter
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gcr-viewer.desktop
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2020-01-12 15:43:15 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:39:20 -04:00
|
|
|
%doc README NEWS
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_bindir}/gcr-viewer
|
|
|
|
|
%{_datadir}/applications/gcr-viewer.desktop
|
|
|
|
|
%dir %{_datadir}/GConf
|
|
|
|
|
%dir %{_datadir}/GConf/gsettings
|
|
|
|
|
%{_libdir}/girepository-1.0
|
|
|
|
|
%{_libdir}/libg*.so.*
|
2020-01-12 15:43:15 +08:00
|
|
|
%{_libexecdir}/gcr-*
|
2019-09-30 10:39:20 -04:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
2020-01-12 15:43:15 +08:00
|
|
|
%{_datadir}/applications/gcr-prompter.desktop
|
2019-09-30 10:39:20 -04:00
|
|
|
%{_datadir}/mime/packages/gcr-crypto-types.xml
|
2020-01-12 15:43:15 +08:00
|
|
|
%{_datadir}/GConf/gsettings/org.gnome.crypto.*.convert
|
2019-09-30 10:39:20 -04:00
|
|
|
%{_datadir}/dbus-1/services/org.gnome.keyring.*.service
|
2020-01-12 15:43:15 +08:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml
|
2019-09-30 10:39:20 -04:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/gck-1
|
|
|
|
|
%{_includedir}/gcr-3
|
|
|
|
|
%{_libdir}/libg*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_datadir}/gir-1.0
|
|
|
|
|
%{_datadir}/gtk-doc/html/gc*
|
|
|
|
|
%{_datadir}/vala/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-07-25 17:42:28 +08:00
|
|
|
* Mon Jul 20 2020 wangye <wangye70@huawei.com> - 3.36.0-1
|
|
|
|
|
- update to 3.36.0
|
|
|
|
|
|
2020-01-12 15:43:15 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.34.0-1
|
|
|
|
|
- update to 3.34.0
|
|
|
|
|
|
2019-09-30 10:39:20 -04:00
|
|
|
* Wed Sep 11 2019 openEuler jimmy<dukaitian@huawei.com> - 3.28.0-3
|
|
|
|
|
- Package init jimmy
|