summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorChris E Ferron <chris.e.ferron@linux.intel.com>2012-11-06 10:09:15 -0800
committerPhilippe Coval <philippe.coval@eurogiciel.fr>2013-05-24 13:16:24 +0200
commite5dcdf604c78079b03e85fc7c42d69cbaee51bb0 (patch)
tree75d53415b47f1f5d2b5334c5e9c7737ca0fa695f /packaging
parent2c6ac3f78378a736a308ff64817a0ae4c39719b5 (diff)
downloadgcr-e5dcdf604c78079b03e85fc7c42d69cbaee51bb0.tar.gz
gcr-e5dcdf604c78079b03e85fc7c42d69cbaee51bb0.tar.bz2
gcr-e5dcdf604c78079b03e85fc7c42d69cbaee51bb0.zip
inital packaging commit
Diffstat (limited to 'packaging')
-rw-r--r--packaging/gcr.spec219
1 files changed, 219 insertions, 0 deletions
diff --git a/packaging/gcr.spec b/packaging/gcr.spec
new file mode 100644
index 0000000..5a60507
--- /dev/null
+++ b/packaging/gcr.spec
@@ -0,0 +1,219 @@
+Name: gcr
+Version: 3.4.1
+Release: 0
+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.4/%{name}-%{version}.tar.xz
+BuildRequires: gobject-introspection-devel
+BuildRequires: gpg2
+BuildRequires: intltool
+BuildRequires: libtasn1-devel
+BuildRequires: libgcrypt-devel >= 1.2.2
+BuildRequires: shared-mime-info
+BuildRequires: update-desktop-files
+BuildRequires: pkgconfig(dbus-1)
+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
+
+%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
+Summary: Library for Crypto UI related task
+Group: System/Libraries
+Requires: %{name}-data >= %{version}
+Requires: %{name}-prompter >= %{version}
+
+%description -n libgcr
+GCR is a library for displaying certificates, and crypto UI, accessing
+key stores.
+
+%package -n typelib-Gcr
+Summary: Library for Crypto UI related task -- Introspection bindings
+Group: System/Libraries
+
+%description -n typelib-Gcr
+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 = %{version}
+Requires: typelib-Gcr = %{version}
+
+%description -n libgcr-devel
+GCR is a library for displaying certificates, and crypto UI, accessing
+key stores.
+
+%package -n libgck
+Summary: GObject library to access for PKCS#11 modules
+Group: System/Libraries
+Provides: gck = %{version}
+
+%description -n libgck
+GCK is a library for accessing PKCS#11 modules like smart cards, in a
+(G)object oriented way.
+
+%package -n typelib-Gck
+Summary: GObject library to access for PKCS#11 modules -- Introspection bindings
+Group: System/Libraries
+
+%description -n typelib-Gck
+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 = %{version}
+Requires: typelib-Gck = %{version}
+
+%description -n libgck-devel
+GCK is a library for accessing PKCS#11 modules like smart cards, in a
+(G)object oriented way.
+
+%prep
+%setup -q
+
+%build
+%configure
+make
+
+%install
+%make_install
+find %{buildroot} -type f -name "*.la" -delete -print
+# Cleanup installed test modules
+rm %{buildroot}%{_libdir}/libmock-test-module.so
+%tizen_update_desktop_file gcr-prompter
+%tizen_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 -p /sbin/ldconfig
+
+%postun -n libgcr -p /sbin/ldconfig
+
+%post -n libgck -p /sbin/ldconfig
+
+%postun -n libgck -p /sbin/ldconfig
+
+%files viewer
+%defattr(-,root,root)
+%doc COPYING
+%{_bindir}/gcr-viewer
+%{_datadir}/applications/gcr-viewer.desktop
+%{_datadir}/mime/packages/gcr-crypto-types.xml
+
+%files data
+%defattr(-, root, root)
+%{_datadir}/icons/hicolor/*/apps/*
+%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
+%defattr (-, root, root)
+%doc COPYING
+%{_libdir}/libgcr-3.so.*
+%{_libdir}/libgcr-base-3.so.*
+%{_datadir}/gcr-3/
+
+%files -n typelib-Gcr
+%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
+%defattr (-, root, root)
+%doc COPYING
+%{_libdir}/libgck-1.so.*
+
+%files -n typelib-Gck
+%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
+
+%lang_package