File libcryptui.spec of Package libcryptui
#
# spec file for package libcryptui
#
# 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: libcryptui
Version: 3.4.1
Release: 0
# FIXME: find out why building introspection support for this package requires libtool
Summary: Library for prompting for PGP keys
License: LGPL-2.1+ ; GPL-2.0+
Group: Productivity/Security
Url: http://projects.gnome.org/seahorse/
Source: http://download.gnome.org/sources/libcryptui/3.4/%{name}-%{version}.tar.xz
BuildRequires: gobject-introspection-devel
BuildRequires: gpg2
BuildRequires: gpgme-devel
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(sm)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libcryptui is a library used for prompting for PGP keys.
%package -n libcryptui0
Summary: Library for prompting for PGP keys
License: LGPL-2.1+
Group: System/Libraries
# Need some schema from gnome-keyring
Requires: %{name}-data
Requires: gnome-keyring
Recommends: %{name}-lang
# The library talks to seahorse-daemon
Recommends: seahorse-daemon
# To make lang package installable
Provides: %{name} = %{version}
%description -n libcryptui0
Libcryptui is a library used for prompting for PGP keys.
%package -n typelib-1_0-CryptUI-0_0
Summary: Library for prompting for PGP keys -- Introspection bindings
License: LGPL-2.1+ ; GPL-2.0+
Group: System/Libraries
%description -n typelib-1_0-CryptUI-0_0
Libcryptui is a library used for prompting for PGP keys.
This package provides the GObject Introspection bindings for
libcryptui.
%package -n libcryptui-data
Summary: Library for prompting for PGP keys -- Data
License: GPL-2.0+
Group: System/GUI/GNOME
%glib2_gsettings_schema_requires
%description -n libcryptui-data
Libcryptui is a library used for prompting for PGP keys.
%package -n seahorse-daemon
Summary: Library for prompting for PGP keys -- Daemon
License: GPL-2.0+
Group: System/GUI/GNOME
Requires: %{name}-data
%description -n seahorse-daemon
Libcryptui is a library used for prompting for PGP keys.
%package devel
Summary: Library for prompting for PGP keys -- Development Files
License: LGPL-2.1+
Group: Development/Libraries/GNOME
Requires: libcryptui0 = %{version}
Requires: typelib-1_0-CryptUI-0_0 = %{version}
%description devel
Libcryptui is a library used for prompting for PGP keys.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static
make %{?_smp_mflags} V=1
%install
%make_install
rm %{buildroot}%{_libdir}/*.la
%find_lang cryptui %{?no_lang_C}
%post -n libcryptui0 -p /sbin/ldconfig
%postun -n libcryptui0 -p /sbin/ldconfig
%post -n libcryptui-data
%glib2_gsettings_schema_post
%postun -n libcryptui-data
%glib2_gsettings_schema_postun
%files -n libcryptui0
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING-LIBCRYPTUI NEWS README
%{_libdir}/libcryptui.so.*
%files -n typelib-1_0-CryptUI-0_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/CryptUI-0.0.typelib
%files -n libcryptui-data
%defattr(-,root,root)
# Own the directory since we can't depend on gconf providing them
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings
%{_datadir}/GConf/gsettings/org.gnome.seahorse.recipients.convert
%{_datadir}/glib-2.0/schemas/org.gnome.seahorse.recipients.gschema.xml
%files -n seahorse-daemon
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/seahorse-daemon
%{_datadir}/dbus-1/services/org.gnome.seahorse.service
%{_datadir}/cryptui/
%{_datadir}/pixmaps/cryptui/
%{_mandir}/man1/seahorse-daemon.1.*
%files lang -f cryptui.lang
%files devel
%defattr(-,root,root)
%{_includedir}/libcryptui/
%{_libdir}/pkgconfig/cryptui-0.0.pc
%{_libdir}/libcryptui.so
%{_datadir}/gir-1.0/CryptUI-0.0.gir
%doc %{_datadir}/gtk-doc/html/libcryptui/
%changelog