gcr/gcr.spec
Fabiano Fidêncio 3c7a6e7df6 Split gcr-base in a separate package
gcr-base has been split out of gcr package so other programs can depend
on it without having to pull a whole bunch of dependency.

With the split we go from depending on 44 packages (64 M) to depending
on 7 packages (10 M).

Before the split:
$ sudo dnf install gvfs gvfs-client
Last metadata expiration check: 0:10:28 ago on Thu 11 Apr 2019 04:28:43 PM CEST.
Dependencies resolved.
========================================================================================================================================
 Package                                 Architecture             Version                               Repository                 Size
========================================================================================================================================
Installing:
 gvfs                                    x86_64                   1.40.0-1.fc30                         rawhide                   319 k
Installing dependencies:
 adwaita-cursor-theme                    noarch                   3.32.0-1.fc30                         rawhide                   644 k
 adwaita-icon-theme                      noarch                   3.32.0-1.fc30                         rawhide                    11 M
 at-spi2-atk                             x86_64                   2.32.0-1.fc30                         rawhide                    78 k
 at-spi2-core                            x86_64                   2.32.0-1.fc30                         rawhide                   155 k
 atk                                     x86_64                   2.32.0-1.fc30                         rawhide                   258 k
 avahi-glib                              x86_64                   0.7-18.fc30                           rawhide                    13 k
 colord-libs                             x86_64                   1.4.4-1.fc31                          rawhide                   209 k
 fribidi                                 x86_64                   1.0.5-2.fc30                          rawhide                    82 k
 gcr                                     x86_64                   3.28.1-2.fc30                         rawhide                   668 k
 gdk-pixbuf2-modules                     x86_64                   2.38.1-1.fc31                         rawhide                    86 k
 graphite2                               x86_64                   1.3.10-7.fc30                         rawhide                   109 k
 gtk-update-icon-cache                   x86_64                   3.24.7-2.fc30                         rawhide                    31 k
 gtk3                                    x86_64                   3.24.7-2.fc30                         rawhide                   4.5 M
 gvfs-client                             x86_64                   1.40.0-1.fc30                         rawhide                   746 k
 harfbuzz                                x86_64                   2.3.1-1.fc30                          rawhide                   534 k
 hicolor-icon-theme                      noarch                   0.17-6.fc31                           rawhide                    44 k
 jasper-libs                             x86_64                   2.0.14-8.fc30                         rawhide                   152 k
 jbigkit-libs                            x86_64                   2.1-16.fc30                           rawhide                    49 k
 lcms2                                   x86_64                   2.9-5.fc30                            rawhide                   150 k
 libXcomposite                           x86_64                   0.4.4-16.fc30                         rawhide                    22 k
 libXcursor                              x86_64                   1.1.15-5.fc30                         rawhide                    28 k
 libXdamage                              x86_64                   1.1.4-16.fc30                         rawhide                    20 k
 libXfixes                               x86_64                   5.0.3-9.fc30                          rawhide                    17 k
 libXft                                  x86_64                   2.3.3-1.fc31                          rawhide                    58 k
 libXi                                   x86_64                   1.7.9-9.fc30                          rawhide                    36 k
 libXinerama                             x86_64                   1.1.4-3.fc30                          rawhide                    13 k
 libXrandr                               x86_64                   1.5.2-1.fc31                          rawhide                    25 k
 libXtst                                 x86_64                   1.2.3-9.fc30                          rawhide                    19 k
 libbluray                               x86_64                   1.1.1-1.fc31                          rawhide                   154 k
 libcdio                                 x86_64                   2.0.0-4.fc30                          rawhide                   234 k
 libcdio-paranoia                        x86_64                   10.2+2.0.0-2.fc30                     rawhide                    84 k
 libdatrie                               x86_64                   0.2.9-9.fc30                          rawhide                    29 k
 libepoxy                                x86_64                   1.5.3-2.fc30                          rawhide                   196 k
 libgusb                                 x86_64                   0.3.0-4.fc30                          rawhide                    44 k
 libjpeg-turbo                           x86_64                   2.0.2-1.fc31                          rawhide                   158 k
 libthai                                 x86_64                   0.1.28-2.fc30                         rawhide                   199 k
 libtiff                                 x86_64                   4.0.10-4.fc30                         rawhide                   166 k
 libwayland-client                       x86_64                   1.17.0-1.fc30                         rawhide                    31 k
 libwayland-cursor                       x86_64                   1.17.0-1.fc30                         rawhide                    19 k
 libwayland-egl                          x86_64                   1.17.0-1.fc30                         rawhide                    13 k
 pango                                   x86_64                   1.43.0-3.fc30                         rawhide                   261 k
 rest                                    x86_64                   0.8.1-5.fc30                          rawhide                    63 k
Installing weak dependencies:
 dconf                                   x86_64                   0.32.0-1.fc30                         rawhide                    94 k

Transaction Summary
========================================================================================================================================
Install  44 Packages

Total download size: 21 M
Installed size: 64 M

After the split:
$ sudo dnf install gcr-base-3.28.1-3.fc31.x86_64.rpm  gvfs-1.40.1-1.fc31.x86_64.rpm  gvfs-client-1.40.1-1.fc31.x86_64.rpm
Last metadata expiration check: 0:11:20 ago on Thu 11 Apr 2019 04:28:43 PM CEST.
Dependencies resolved.
========================================================================================================================================
 Package                            Architecture             Version                               Repository                      Size
========================================================================================================================================
Installing:
 gcr-base                           x86_64                   3.28.1-3.fc31                         @commandline                   272 k
 gvfs                               x86_64                   1.40.1-1.fc31                         @commandline                   321 k
 gvfs-client                        x86_64                   1.40.1-1.fc31                         @commandline                   749 k
Installing dependencies:
 avahi-glib                         x86_64                   0.7-18.fc30                           rawhide                         13 k
 libbluray                          x86_64                   1.1.1-1.fc31                          rawhide                        154 k
 libcdio                            x86_64                   2.0.0-4.fc30                          rawhide                        234 k
 libcdio-paranoia                   x86_64                   10.2+2.0.0-2.fc30                     rawhide                         84 k

Transaction Summary
========================================================================================================================================
Install  7 Packages

Total size: 1.8 M
Total download size: 485 k
Installed size: 10 M

https://bugzilla.redhat.com/show_bug.cgi?id=1698842

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
2019-04-11 19:39:39 +02:00

359 lines
11 KiB
RPMSpec

%ifarch %{valgrind_arches}
%global has_valgrind 1
%endif
Name: gcr
Version: 3.28.1
Release: 3%{?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/%{name}/3.28/%{name}-%{version}.tar.xz
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(p11-kit-1)
BuildRequires: chrpath
BuildRequires: docbook-style-xsl
BuildRequires: libgcrypt-devel
BuildRequires: desktop-file-utils
BuildRequires: intltool
BuildRequires: vala
%if 0%{?has_valgrind}
BuildRequires: valgrind-devel
%endif
BuildRequires: /usr/bin/gpg2
BuildRequires: /usr/bin/valac
BuildRequires: /usr/bin/xsltproc
Requires: %{name}-base%{?_isa} = %{version}-%{release}
%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 gcr
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The gcr-devel package includes the header files for the gcr library.
%package base
Summary: Library files for gcr
Conflicts: %{name} < 3.28.1-3
%description base
The gcr-base package includes the gcr-base library.
%prep
%autosetup -p1
# Use system valgrind headers instead
%if 0%{?has_valgrind}
rm -rf build/valgrind/
%endif
%build
%configure --enable-introspection
%make_build
%install
%make_install
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
%doc README NEWS
%license COPYING
%{_bindir}/gcr-viewer
%{_datadir}/applications/gcr-viewer.desktop
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings
%{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert
%{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert
%{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml
%{_libdir}/girepository-1.0
%{_libdir}/libgcr-3.so.*
%{_libdir}/libgcr-ui-3.so.*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/mime/packages/gcr-crypto-types.xml
%{_libexecdir}/gcr-prompter
%{_libexecdir}/gcr-ssh-askpass
%{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service
%{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service
%{_datadir}/applications/gcr-prompter.desktop
%files devel
%{_includedir}/gck-1
%{_includedir}/gcr-3
%{_libdir}/libgck-1.so
%{_libdir}/libgcr-3.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
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/gck
%{_datadir}/gtk-doc/html/gcr-3
%{_datadir}/vala/
%files base
%{_libdir}/libgck-1.so.*
%{_libdir}/libgcr-base-3.so.*
%changelog
* Thu Apr 11 2019 Fabiano Fidêncio <fidencio@redhat.com> - 3.28.1-3
- Split gcr-base into a new package
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.28.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 21 2019 Kalev Lember <klember@redhat.com> - 3.28.1-1
- Update to 3.28.1
* Fri Jan 04 2019 Kalev Lember <klember@redhat.com> - 3.28.0-3
- Backport a patch to fix gnome-shell crashes with glib 2.59
- Use make_build and make_install macros
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.28.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Mar 12 2018 Kalev Lember <klember@redhat.com> - 3.28.0-1
- Update to 3.28.0
* Mon Mar 05 2018 Kalev Lember <klember@redhat.com> - 3.27.92-1
- Update to 3.27.92
- Use valgrind_arches macro instead of hardcoding valgrind arch list
- Drop group tags
- Drop ldconfig scriptlets
- Move desktop file validation to check section
- Drop ancient conflicts
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Jan 25 2017 Kalev Lember <klember@redhat.com> - 3.20.0-3
- Build with gpg2 support to match seahorse (#1005916)
* Thu Sep 22 2016 Kalev Lember <klember@redhat.com> - 3.20.0-2
- BR vala instead of obsolete vala-tools subpackage
* Fri Mar 25 2016 Kalev Lember <klember@redhat.com> - 3.20.0-1
- Update to 3.20.0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jan 20 2016 Kalev Lember <klember@redhat.com> - 3.19.4-1
- Update to 3.19.4
* Mon Sep 28 2015 Kalev Lember <klember@redhat.com> - 3.18.0-1
- Update to 3.18.0
* Tue Sep 15 2015 Kalev Lember <klember@redhat.com> - 3.17.4-1
- Update to 3.17.4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.16.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue May 12 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.0-1
- Update to 3.16.0
* Tue Mar 17 2015 Kalev Lember <kalevlember@gmail.com> - 3.15.92-1
- Update to 3.15.92
* Fri Feb 27 2015 David King <amigadave@amigadave.com> - 3.15.90-1
- Update to 3.15.90
- Update URL
- Add more documentation and use license macro for COPYING
- Use pkgconfig for BuildRequires
- Preserve timestamps during install
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 3.14.0-3
- Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
* Mon Sep 29 2014 Dan Horák <dan[at]danny.cz> - 3.14.0-2
- valgrind available only on selected arches
* Tue Sep 23 2014 Kalev Lember <kalevlember@gmail.com> - 3.14.0-1
- Update to 3.14.0
* Sat Sep 20 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.91-4
- Update mime scriptlets
* Sun Sep 14 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.91-2
- Use system valgrind headers (#1141470)
* Thu Sep 11 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.91-1
- Update to 3.13.91
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 3.12.2-3
- Rebuilt for gobject-introspection 1.41.4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu May 15 2014 Kalev Lember <kalevlember@gmail.com> - 3.12.2-1
- Update to 3.12.2
* Sat Apr 05 2014 Kalev Lember <kalevlember@gmail.com> - 3.12.0-2
- Tighten -devel deps
* Sun Mar 23 2014 Kalev Lember <kalevlember@gmail.com> - 3.12.0-1
- Update to 3.12.0
* Sat Mar 08 2014 Richard Hughes <rhughes@redhat.com> - 3.11.91-1
- Update to 3.11.91
* Mon Oct 28 2013 Richard Hughes <rhughes@redhat.com> - 3.10.1-1
- Update to 3.10.1
* Wed Sep 25 2013 Kalev Lember <kalevlember@gmail.com> - 3.10.0-1
- Update to 3.10.0
* Tue Sep 3 2013 Matthias Clasen <mclasen@redhat.com> - 3.9.91-1
- Update to 3.9.91
* Wed Aug 28 2013 Kalev Lember <kalevlember@gmail.com> - 3.9.90-1
- Update to 3.9.90
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri May 10 2013 Adam Williamson <awilliam@redhat.com> - 3.9.1-2
- use current guidelines for mimeinfo, desktop-database, gsettings
schema and icon cache scriptlets
* Sat May 04 2013 Kalev Lember <kalevlember@gmail.com> - 3.9.1-1
- Update to 3.9.1
* Tue Apr 16 2013 Richard Hughes <rhughes@redhat.com> - 3.8.1-1
- Update to 3.8.1
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
- Update to 3.8.0
* Mon Mar 18 2013 Richard Hughes <rhughes@redhat.com> - 3.7.92-1
- Update to 3.7.92
* Thu Mar 7 2013 Matthias Clasen <mclasen@redhat.com> - 3.7.91-1
- Update to 3.7.91
* Wed Feb 06 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.5-1
- Update to 3.7.5
* Mon Jan 14 2013 Tomas Bzatek <tbzatek@redhat.com> - 3.7.2-2
- Fix crash on parsing some certificates (#894157)
* Wed Jan 09 2013 Richard Hughes <hughsient@gmail.com> - 3.7.2-1
- Update to 3.7.2
* Fri Nov 09 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.1-1
- Update to 3.7.1
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
- Update to 3.6.1
* Tue Sep 25 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.0-1
- Update to 3.6.0
* Wed Sep 19 2012 Richard Hughes <hughsient@gmail.com> - 3.5.92-1
- Update to 3.5.92
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 3.5.90-1
- Update to 3.5.90
* Tue Aug 07 2012 Richard Hughes <hughsient@gmail.com> - 3.5.5-1
- Update to 3.5.5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jul 17 2012 Richard Hughes <hughsient@gmail.com> - 3.5.4-1
- Update to 3.5.4
* Mon Jun 25 2012 Richard Hughes <hughsient@gmail.com> - 3.5.3-1
- Update to 3.5.3
* Tue Apr 24 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1-2
- Silence glib-compile-schemas output
* Mon Apr 16 2012 Richard Hughes <hughsient@gmail.com> - 3.4.1-1
- Update to 3.4.1
* Mon Mar 26 2012 Debarshi Ray <rishi@fedoraproject.org> - 3.4.0-1
- Update to 3.4.0
* Wed Mar 21 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.92-2
- Enable introspection, needed for gnome-shell now
* Wed Mar 21 2012 Kalev Lember <kalevlember@gmail.com> - 3.3.92-1
- Update to 3.3.92
* Fri Mar 09 2012 Rex Dieter <rdieter@fedoraproject.org> 3.3.90-2
- suppress scriptlet output
* Mon Mar 5 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.90-1
- Update to 3.3.90
* Mon Feb 13 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.5-1
- Update to 3.3.5
* Tue Jan 17 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.4-1
- Update to 3.3.4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Jan 3 2012 Tomas Bzatek <tbzatek@redhat.com> 3.3.3.1-4
- Add a Conflicts directive for older gnome-keyring packages (#771299)
* Wed Dec 21 2011 Matthias Clasen <mclasen@redhat.com> 3.3.3.1-3
- Own some directories
* Wed Dec 21 2011 Matthias Clasen <mclasen@redhat.com> 3.3.3.1-2
- Delete rpaths
* Wed Dec 21 2011 Matthias Clasen <mclasen@redhat.com> 3.3.3.1-1
- Update to 3.3.3.1
* Fri Dec 16 2011 Matthias Clasen <mclasen@redhat.com> 3.3.2.1-1
- Update to 3.3.2.1
* Thu Nov 10 2011 Matthias Clasen <mclasen@redhat.com> 3.3.1-1
- Initial packaging