Blame SPECS/gcr.spec

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