gcr/gcr.spec
Vincent Untz 041499702c Accepting request 110046 from home:Zaitor:branches:GNOME:Factory
Update to version 3.3.92 - Huge lintreport, so pasting it here. (even if it does not seem that serious)

RPMLINT report:
===============
libgck-1-0.x86_64: W: package-with-huge-docs  68%
More than half the size of your package is documentation. Consider splitting
it into a -doc subpackage.

gcr-viewer.x86_64: W: no-manual-page-for-binary gcr-viewer
Each executable in standard binary directories should have a man page.

libgck-devel.x86_64: W: incorrect-fsf-address /usr/include/gck-1/gck/gck-deprecated.h
libgck-devel.x86_64: W: incorrect-fsf-address /usr/include/gck-1/gck/gck.h
gcr-viewer.x86_64: W: incorrect-fsf-address /usr/share/doc/packages/gcr-viewer/COPYING
libgcr-3-1.x86_64: W: incorrect-fsf-address /usr/share/doc/packages/libgcr-3-1/COPYING
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-key-widget.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-secure-entry-buffer.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-prompt.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-mock-prompter.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-importer.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-unlock-options-widget.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-pkcs11-certificate.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-certificate-chain.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-certificate-request.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-key-renderer.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-certificate-widget.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-union-collection.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-viewer-widget.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-failure-renderer.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-certificate-details-widget.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-secure-memory.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-base.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-simple-collection.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-list-selector.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-import-button.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-system-prompter.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-unlock-options.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-icons.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-renderer.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-comparable.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-viewer.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-certificate-basics-widget.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-library.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-import-interaction.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-secret-exchange.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-collection.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-filter-collection.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-trust.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-prompt-dialog.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-certificate-renderer.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-simple-certificate.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-certificate.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-system-prompt.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-parser.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-combo-selector.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-deprecated.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-deprecated-base.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-column.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-tree-selector.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-fingerprint.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-types.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr.h
libgcr-devel.x86_64: W: incorrect-fsf-address /usr/include/gcr-3/gcr/gcr-collection-model.h
libgck-1-0.x86_64: W: incorrect-fsf-address /usr/share/doc/packages/libgck-1-0/COPYING
The Free Software Foundation address in this file seems to be outdated or
misspelled.  Ask upstream to update the address, or if this is a license file,
possibly the entire file with a new copy available from the FSF.

gcr-prompter.x86_64: W: files-duplicate /usr/share/dbus-1/services/org.gnome.keyring.SystemPrompter.service /usr/share/dbus-1/services/org.gnome.keyring.PrivatePrompter.service
11 packages and 0 specfiles checked; 0 errors, 56 warnings.

OBS-URL: https://build.opensuse.org/request/show/110046
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gcr?expand=0&rev=14
2012-03-21 08:46:32 +00:00

256 lines
7.4 KiB
RPMSpec

#
# spec file for package gcr
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gcr
Version: 3.3.92
Release: 0
# FIXME: Verify if parallel build works again. Last checked in version 3.3.2
Summary: Library for Crypto UI related task
License: LGPL-2.1+
Group: System/Libraries
Url: http://www.gnome.org
Source0: http://download.gnome.org/sources/gcr/3.3/%{name}-%{version}.tar.xz
# For directory ownership
BuildRequires: dbus-1
BuildRequires: gobject-introspection-devel
# configure is looking for the gpg2 path
BuildRequires: gpg2
BuildRequires: intltool
BuildRequires: libgcrypt-devel >= 1.2.2
# We need the %%mime_database_* macros
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.30.0
BuildRequires: pkgconfig(gmodule-no-export-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0
BuildRequires: pkgconfig(libtasn1)
BuildRequires: pkgconfig(p11-kit-1) >= 0.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GCR is a library for displaying certificates, and crypto UI, accessing
key stores. It also provides the viewer for crypto files on the GNOME
desktop.
GCK is a library for accessing PKCS#11 modules like smart cards, in a
(G)object oriented way.
%package viewer
Summary: Viewer for Crypto Files
Group: Productivity/Security
Recommends: %{name}-lang
%description viewer
This packages provides the viewer for crypto files on the GNOME desktop.
%package data
Summary: Data and icon set for gcr
Group: System/Libraries
%glib2_gsettings_schema_requires
%description data
This package provides the GSettings schemas and a collection of icons
needed by libgcr.
%package prompter
Summary: Prompt dialog for Crypto UI related task
Group: System/Libraries
%description prompter
This package provides the prompt dialog needed by libgcr.
%package -n libgcr-3-1
Summary: Library for Crypto UI related task
Group: System/Libraries
Requires: %{name}-data >= %{version}
Requires: %{name}-prompter >= %{version}
Recommends: %{name}-viewer = %{version}
Recommends: %{name}-lang
# To make lang package installable
Provides: %{name} = %{version}
%description -n libgcr-3-1
GCR is a library for displaying certificates, and crypto UI, accessing
key stores.
%package -n typelib-1_0-Gcr-3
Summary: Library for Crypto UI related task -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Gcr-3
GCR is a library for displaying certificates, and crypto UI, accessing
key stores.
This package provides the GObject Introspection bindings for GCR.
%package -n libgcr-devel
Summary: Library for Crypto UI related task - Development Files
Group: Development/Libraries/GNOME
Requires: libgcr-3-1 = %{version}
Requires: typelib-1_0-Gcr-3 = %{version}
%description -n libgcr-devel
GCR is a library for displaying certificates, and crypto UI, accessing
key stores.
%package -n libgck-1-0
Summary: GObject library to access for PKCS#11 modules
Group: System/Libraries
Recommends: %{name}-lang
# Small hack, to help gnome-keyring subpackage containing gck
# modules have a proper dependency, without having to care about
# the soname.
Provides: gck = %{version}
%description -n libgck-1-0
GCK is a library for accessing PKCS#11 modules like smart cards, in a
(G)object oriented way.
%package -n typelib-1_0-Gck-1
Summary: GObject library to access for PKCS#11 modules -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Gck-1
GCK is a library for accessing PKCS#11 modules like smart cards, in a
(G)object oriented way.
This package provides the GObject Introspection bindings for GCK.
%package -n libgck-devel
Summary: GObject library to access for PKCS#11 modules - Development Files
Group: Development/Libraries/GNOME
Requires: libgck-1-0 = %{version}
Requires: typelib-1_0-Gck-1 = %{version}
%description -n libgck-devel
GCK is a library for accessing PKCS#11 modules like smart cards, in a
(G)object oriented way.
%lang_package
%prep
%setup -q
%build
%configure
# Parallel build seems broken.
#make %{?_smp_mflags}
make
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# Cleanup installed test modules
rm %{buildroot}%{_libdir}/libmock-test-module.so
%suse_update_desktop_file gcr-prompter
%suse_update_desktop_file gcr-viewer
%find_lang %{name}
%post viewer
%desktop_database_post
%mime_database_post
%postun viewer
%desktop_database_postun
%mime_database_postun
%post data
%glib2_gsettings_schema_post
%icon_theme_cache_post
%postun data
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%post -n libgcr-3-1 -p /sbin/ldconfig
%postun -n libgcr-3-1 -p /sbin/ldconfig
%post -n libgck-1-0 -p /sbin/ldconfig
%postun -n libgck-1-0 -p /sbin/ldconfig
%files viewer
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING HACKING NEWS README
%{_bindir}/gcr-viewer
%{_datadir}/applications/gcr-viewer.desktop
%{_datadir}/mime/packages/gcr-crypto-types.xml
%files data
%defattr(-, root, root)
%{_datadir}/icons/hicolor/*/apps/*
# Own the directory since we can't depend on gconf providing them
%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
%files prompter
%defattr(-, root, root)
%{_libexecdir}/gcr-prompter
%{_datadir}/applications/gcr-prompter.desktop
%{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service
%{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service
%files -n libgcr-3-1
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING HACKING NEWS README
%{_libdir}/libgcr-3.so.*
%{_libdir}/libgcr-base-3.so.*
%{_datadir}/gcr-3/
%files -n typelib-1_0-Gcr-3
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Gcr-3.typelib
%files -n libgcr-devel
%defattr (-, root, root)
%{_libdir}/libgcr-3.so
%{_libdir}/libgcr-base-3.so
%{_libdir}/pkgconfig/gcr-3.pc
%{_libdir}/pkgconfig/gcr-base-3.pc
%{_includedir}/gcr-3/
%{_datadir}/gtk-doc/html/gcr-3/
%files -n libgck-1-0
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING HACKING NEWS README
%{_libdir}/libgck-1.so.*
%files -n typelib-1_0-Gck-1
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Gck-1.typelib
%files -n libgck-devel
%defattr (-, root, root)
%{_libdir}/libgck-1.so
%{_libdir}/pkgconfig/gck-1.pc
%{_includedir}/gck-1/
%{_datadir}/gtk-doc/html/gck/
%{_datadir}/gir-1.0/Gck-1.gir
%{_datadir}/gir-1.0/Gcr-3.gir
%files lang -f %{name}.lang
%changelog