File gpa.spec of Package gpa

# 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

# norootforbuild

Name:           gpa
Version:        0.9.0
Release:        10
License:        GPLv3
Group:          Productivity/Security
AutoReqProv:    on
Summary:        GNU Privacy Assistant
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

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.

%setup -q
%if 0%{?suse_version} > 1120
%patch0 -p0

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

mv $RPM_BUILD_ROOT/usr/share/locale/zh_TW.Big5 \
%suse_update_desktop_file -i %name Security
%find_lang %{name} %{?no_lang_C}

make check


%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130



%files lang -f %{name}.lang

openSUSE Build Service is sponsored by