47478b
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64
47478b
%global has_valgrind 1
47478b
%endif
47478b
47478b
Name:           gcr
47478b
Version:        3.28.0
47478b
Release:        1%{?dist}
47478b
Summary:        A library for bits of crypto UI and parsing
47478b
47478b
License:        LGPLv2+
47478b
URL:            https://wiki.gnome.org/Projects/CryptoGlue
47478b
Source0:        https://download.gnome.org/sources/%{name}/3.28/%{name}-%{version}.tar.xz
47478b
47478b
BuildRequires:  pkgconfig(gio-unix-2.0)
47478b
BuildRequires:  pkgconfig(gobject-introspection-1.0)
47478b
BuildRequires:  pkgconfig(gtk+-3.0)
47478b
BuildRequires:  pkgconfig(p11-kit-1)
47478b
BuildRequires:  chrpath
47478b
BuildRequires:  docbook-style-xsl
47478b
BuildRequires:  libgcrypt-devel
47478b
BuildRequires:  desktop-file-utils
47478b
BuildRequires:  intltool
47478b
BuildRequires:  vala
47478b
%if 0%{?has_valgrind}
47478b
BuildRequires:  valgrind-devel
47478b
%endif
47478b
BuildRequires:  /usr/bin/gpg2
47478b
BuildRequires:  /usr/bin/valac
47478b
BuildRequires:  /usr/bin/xsltproc
47478b
47478b
%description
47478b
gcr is a library for displaying certificates, and crypto UI, accessing
47478b
key stores. It also provides a viewer for crypto files on the GNOME
47478b
desktop.
47478b
47478b
gck is a library for accessing PKCS#11 modules like smart cards.
47478b
47478b
%package devel
47478b
Summary: Development files for gcr
47478b
Requires: %{name}%{?_isa} = %{version}-%{release}
47478b
47478b
%description devel
47478b
The gcr-devel package includes the header files for the gcr library.
47478b
47478b
47478b
%prep
47478b
%setup -q
47478b
47478b
# Use system valgrind headers instead
47478b
%if 0%{?has_valgrind}
47478b
rm -rf build/valgrind/
47478b
%endif
47478b
47478b
%build
47478b
%configure --enable-introspection
47478b
make %{?_smp_mflags}
47478b
47478b
47478b
%install
47478b
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
47478b
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
47478b
rm -f $RPM_BUILD_ROOT%{_libdir}/libmock-test-module.*
47478b
%find_lang %{name}
47478b
47478b
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
47478b
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gcr-viewer
47478b
chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/gcr-prompter
47478b
47478b
47478b
%check
47478b
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gcr-viewer.desktop
47478b
47478b
47478b
%post
47478b
/sbin/ldconfig
47478b
/usr/bin/update-desktop-database &> /dev/null || :
47478b
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
47478b
/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || :
47478b
47478b
47478b
%postun
47478b
/sbin/ldconfig
47478b
/usr/bin/update-desktop-database &> /dev/null || :
47478b
if [ $1 -eq 0 ] ; then
47478b
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
47478b
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
47478b
    /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
47478b
fi
47478b
47478b
47478b
%posttrans
47478b
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
47478b
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
47478b
/usr/bin/update-mime-database -n %{_datadir}/mime &> /dev/null || :
47478b
47478b
47478b
%files -f %{name}.lang
47478b
%doc README NEWS
47478b
%license COPYING
47478b
%{_bindir}/gcr-viewer
47478b
%{_datadir}/applications/gcr-viewer.desktop
47478b
%dir %{_datadir}/GConf
47478b
%dir %{_datadir}/GConf/gsettings
47478b
%{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert
47478b
%{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert
47478b
%{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml
47478b
%{_libdir}/girepository-1.0
47478b
%{_libdir}/libgck-1.so.*
47478b
%{_libdir}/libgcr-3.so.*
47478b
%{_libdir}/libgcr-base-3.so.*
47478b
%{_libdir}/libgcr-ui-3.so.*
47478b
%{_datadir}/icons/hicolor/*/apps/*
47478b
%{_datadir}/mime/packages/gcr-crypto-types.xml
47478b
%{_libexecdir}/gcr-prompter
47478b
%{_libexecdir}/gcr-ssh-askpass
47478b
%{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service
47478b
%{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service
47478b
%{_datadir}/applications/gcr-prompter.desktop
47478b
47478b
%files devel
47478b
%{_includedir}/gck-1
47478b
%{_includedir}/gcr-3
47478b
%{_libdir}/libgck-1.so
47478b
%{_libdir}/libgcr-3.so
47478b
%{_libdir}/libgcr-base-3.so
47478b
%{_libdir}/libgcr-ui-3.so
47478b
%{_libdir}/pkgconfig/gck-1.pc
47478b
%{_libdir}/pkgconfig/gcr-3.pc
47478b
%{_libdir}/pkgconfig/gcr-base-3.pc
47478b
%{_libdir}/pkgconfig/gcr-ui-3.pc
47478b
%{_datadir}/gir-1.0
47478b
%dir %{_datadir}/gtk-doc
47478b
%dir %{_datadir}/gtk-doc/html
47478b
%{_datadir}/gtk-doc/html/gck
47478b
%{_datadir}/gtk-doc/html/gcr-3
47478b
%{_datadir}/vala/
47478b
47478b
47478b
%changelog
47478b
* Mon Mar 12 2018 Kalev Lember <klember@redhat.com> - 3.28.0-1
47478b
- Update to 3.28.0
47478b
- Resolves: #1567199
47478b
47478b
* Fri Mar 25 2016 Kalev Lember <klember@redhat.com> - 3.20.0-1
47478b
- Update to 3.20.0
47478b
- Resolves: #1386859
47478b
47478b
* Tue May 19 2015 David King <dking@redhat.com> - 3.14.0-1
47478b
- Update to 3.14.0 (#1222974)
47478b
47478b
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.8.2-4
47478b
- Mass rebuild 2014-01-24
47478b
47478b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.8.2-3
47478b
- Mass rebuild 2013-12-27
47478b
47478b
* Fri May 10 2013 Adam Williamson <awilliam@redhat.com> - 3.8.2-2
47478b
- update scriptlets to match current guidelines
47478b
47478b
* Sun May 05 2013 Stef Walter <stefw@redhat.com> - 3.8.2-1
47478b
- Update to 3.8.2
47478b
47478b
* Tue Apr 16 2013 Richard Hughes <rhughes@redhat.com> - 3.8.1-1
47478b
- Update to 3.8.1
47478b
47478b
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
47478b
- Update to 3.8.0
47478b
47478b
* Mon Mar 18 2013 Richard Hughes <rhughes@redhat.com> - 3.7.92-1
47478b
- Update to 3.7.92
47478b
47478b
* Thu Mar  7 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.91-1
47478b
- Update to 3.7.91
47478b
47478b
* Wed Feb 06 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.5-1
47478b
- Update to 3.7.5
47478b
47478b
* Mon Jan 14 2013 Tomas Bzatek <tbzatek@redhat.com> - 3.7.2-2
47478b
- Fix crash on parsing some certificates (#894157)
47478b
47478b
* Wed Jan 09 2013 Richard Hughes <hughsient@gmail.com> - 3.7.2-1
47478b
- Update to 3.7.2
47478b
47478b
* Fri Nov 09 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.1-1
47478b
- Update to 3.7.1
47478b
47478b
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
47478b
- Update to 3.6.1
47478b
47478b
* Tue Sep 25 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.0-1
47478b
- Update to 3.6.0
47478b
47478b
* Wed Sep 19 2012 Richard Hughes <hughsient@gmail.com> - 3.5.92-1
47478b
- Update to 3.5.92
47478b
47478b
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 3.5.90-1
47478b
- Update to 3.5.90
47478b
47478b
* Tue Aug 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.5-1
47478b
- Update to 3.5.5
47478b
47478b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.4-2
47478b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
47478b
47478b
* Tue Jul 17 2012 Richard Hughes <hughsient@gmail.com> - 3.5.4-1
47478b
- Update to 3.5.4
47478b
47478b
* Mon Jun 25 2012 Richard Hughes <hughsient@gmail.com> - 3.5.3-1
47478b
- Update to 3.5.3
47478b
47478b
* Tue Apr 24 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1-2
47478b
- Silence glib-compile-schemas output
47478b
47478b
* Mon Apr 16 2012 Richard Hughes <hughsient@gmail.com> - 3.4.1-1
47478b
- Update to 3.4.1
47478b
47478b
* Mon Mar 26 2012 Debarshi Ray <rishi@fedoraproject.org> - 3.4.0-1
47478b
- Update to 3.4.0
47478b
47478b
* Wed Mar 21 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.92-2
47478b
- Enable introspection, needed for gnome-shell now
47478b
47478b
* Wed Mar 21 2012 Kalev Lember <kalevlember@gmail.com> - 3.3.92-1
47478b
- Update to 3.3.92
47478b
47478b
* Fri Mar 09 2012 Rex Dieter <rdieter@fedoraproject.org> 3.3.90-2
47478b
- suppress scriptlet output
47478b
47478b
* Mon Mar  5 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.90-1
47478b
- Update to 3.3.90
47478b
47478b
* Mon Feb 13 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.5-1
47478b
- Update to 3.3.5
47478b
47478b
* Tue Jan 17 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.4-1
47478b
- Update to 3.3.4
47478b
47478b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.3.1-5
47478b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
47478b
47478b
* Tue Jan  3 2012 Tomas Bzatek <tbzatek@redhat.com> 3.3.3.1-4
47478b
- Add a Conflicts directive for older gnome-keyring packages (#771299)
47478b
47478b
* Wed Dec 21 2011 Matthias Clasen <mclasen@redhat.com> 3.3.3.1-3
47478b
- Own some directories
47478b
47478b
* Wed Dec 21 2011 Matthias Clasen <mclasen@redhat.com> 3.3.3.1-2
47478b
- Delete rpaths
47478b
47478b
* Wed Dec 21 2011 Matthias Clasen <mclasen@redhat.com> 3.3.3.1-1
47478b
- Update to 3.3.3.1
47478b
47478b
* Fri Dec 15 2011 Matthias Clasen <mclasen@redhat.com> 3.3.2.1-1
47478b
- Update to 3.3.2.1
47478b
47478b
* Thu Nov 10 2011 Matthias Clasen <mclasen@redhat.com> 3.3.1-1
47478b
- Initial packaging
47478b