1 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
2 |
|
3 |
Name: seahorse |
4 |
Summary: GNOME frontend to GnuPG |
5 |
Version: 3.3.1.1 |
6 |
Release: %mkrel 1 |
7 |
# seahorse is GPLv2+ |
8 |
# libcryptui is LGPLv2+ |
9 |
License: GPLv2+ and LGPLv2+ |
10 |
Group: Graphical desktop/GNOME |
11 |
URL: http://seahorse.sourceforge.net/ |
12 |
Source: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
13 |
Requires: gnupg |
14 |
BuildRequires: pkgconfig(avahi-client) |
15 |
BuildRequires: pkgconfig(avahi-glib) >= 0.6 |
16 |
BuildRequires: pkgconfig(gck-1) >= 3.1.2 |
17 |
BuildRequires: pkgconfig(gcr-3) >= 3.1.5 |
18 |
BuildRequires: pkgconfig(gio-2.0) |
19 |
BuildRequires: pkgconfig(gmodule-2.0) |
20 |
BuildRequires: pkgconfig(gnome-keyring-1) >= 2.25.5 |
21 |
BuildRequires: pkgconfig(gthread-2.0) |
22 |
BuildRequires: pkgconfig(gtk+-3.0) >= 2.90.0 |
23 |
BuildRequires: pkgconfig(libsoup-2.4) |
24 |
BuildRequires: gnupg |
25 |
BuildRequires: gpgme-devel >= 1.0.0 |
26 |
BuildRequires: libldap-devel |
27 |
BuildRequires: gnome-doc-utils |
28 |
BuildRequires: intltool |
29 |
BuildRequires: automake |
30 |
BuildRequires: imagemagick |
31 |
BuildRequires: libxslt-proc |
32 |
BuildRequires: desktop-file-utils |
33 |
Obsoletes: gnome-keyring-manager |
34 |
Provides: gnome-keyring-manager |
35 |
|
36 |
%description |
37 |
Seahorse is a GNOME frontend for the GNU Privacy Guard ecryption tool. It can |
38 |
be used for file encryption and decryption and for digitally signing files and |
39 |
for verifying those signatures. Key management options are also included. |
40 |
|
41 |
%prep |
42 |
%setup -q |
43 |
|
44 |
%build |
45 |
%configure2_5x \ |
46 |
--disable-static |
47 |
%make |
48 |
|
49 |
%install |
50 |
rm -rf %{buildroot} |
51 |
|
52 |
%makeinstall_std |
53 |
|
54 |
# Menu |
55 |
desktop-file-install --vendor="" \ |
56 |
--remove-category="Advanced" \ |
57 |
--remove-category="Application" \ |
58 |
--add-category="X-MandrivaLinux-System-FileTools" \ |
59 |
--dir %{buildroot}%{_datadir}/applications \ |
60 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
61 |
|
62 |
%{find_lang} %{name} --all-name --with-gnome |
63 |
for omf in %{buildroot}%{_datadir}/omf/*/*-??*.omf;do |
64 |
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed -e s!%{buildroot}!!)" >> %{name}.lang |
65 |
done |
66 |
|
67 |
#we don't want these |
68 |
rm -rf %{buildroot}%{_libdir}/libseahorse.{la,so} |
69 |
rm -rf %{buildroot}%{_libdir}/*.la |
70 |
|
71 |
%clean |
72 |
rm -rf %{buildroot} |
73 |
|
74 |
%files -f %{name}.lang |
75 |
%defattr(-,root,root) |
76 |
%doc AUTHORS ChangeLog NEWS README |
77 |
%{_bindir}/seahorse |
78 |
%{_mandir}/man1/* |
79 |
%{_libdir}/%{name}/ |
80 |
%{_datadir}/applications/seahorse.desktop |
81 |
%{_datadir}/pixmaps/* |
82 |
%dir %{_datadir}/omf/seahorse/ |
83 |
%dir %{_datadir}/seahorse/ |
84 |
%{_datadir}/seahorse/ui |
85 |
%{_datadir}/omf/seahorse/seahorse-C.omf |
86 |
%{_datadir}/icons/hicolor/*/apps/* |
87 |
%{_datadir}/GConf/gsettings/*.convert |
88 |
%{_datadir}/glib-2.0/schemas/*.xml |