98 lines
2.4 KiB
RPMSpec
98 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package gpa
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: gpa
|
|
Version: 0.9.0
|
|
Release: 10
|
|
License: GPL-3.0
|
|
Group: Productivity/Security
|
|
AutoReqProv: on
|
|
Summary: GNU Privacy Assistant
|
|
Url: http://www.gnupg.org/related_software/gpa/index.html
|
|
Source: gpa-%{version}.tar.bz2
|
|
Source1: gpa.desktop
|
|
# PATCH-FIX-UPSTREAM gpa-assuan2.patch -- Taken from upstream
|
|
Patch0: gpa-assuan2.patch
|
|
BuildRequires: gnupg
|
|
BuildRequires: gpgme-devel >= 1.2.0
|
|
BuildRequires: gtk2-devel >= 2.10.0
|
|
BuildRequires: libassuan-devel >= 1.0.4
|
|
BuildRequires: update-desktop-files
|
|
Recommends: %{name}-lang
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Gnu Privacy Assistant (GPA) is a graphical user interface for Gnu
|
|
Privacy Guard (GPG) for displaying keyrings, manipulating keys,
|
|
checking signatures, and signing, decrypting, and encrypting files.
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
%if 0%{?suse_version} > 1120
|
|
%patch0 -p0
|
|
%endif
|
|
|
|
%build
|
|
autoreconf -fi
|
|
%configure \
|
|
--enable-shared \
|
|
--with-gnu-ld \
|
|
--enable-static-rnd=linux \
|
|
make gpadefs.h #without this hack, 0.9.0 doesn't build in chroot
|
|
make
|
|
|
|
%install
|
|
%makeinstall
|
|
mv $RPM_BUILD_ROOT/usr/share/locale/zh_TW.Big5 \
|
|
$RPM_BUILD_ROOT/usr/share/locale/zh_TW
|
|
%suse_update_desktop_file -i %name Security
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%check
|
|
make check
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%post
|
|
%desktop_database_post
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc NEWS COPYING TODO THANKS AUTHORS
|
|
%{_bindir}/gpa
|
|
%{_datadir}/gpa
|
|
%{_datadir}/applications/%name.desktop
|
|
%{_datadir}/pixmaps/gpa.png
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|