File gpa.spec of Package gpa

#
# spec file for package gpa (Version 0.9.0)
#
# Copyright (c) 2009 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
BuildRequires:  gnupg
BuildRequires:  gpgme-devel >= 1.2.0
BuildRequires:  gtk2-devel >= 2.10.0
BuildRequires:  libassuan-devel >= 1.0.4
BuildRequires:  update-desktop-files
Version:        0.9.0
Release:        1
License:        GPL v3 only
Group:          Productivity/Security
AutoReqProv:    on
Summary:        GNU Privacy Assistant
Source:         gpa-%{version}.tar.bz2
Source1:        gpa.desktop
Url:            http://www.gnupg.org/related_software/gpa/index.html
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.



Authors:
--------
    Markus Gerwinski <markus.gerwinski@sercon.de>
    Peter Gerwinski <markus.gerwinski@sercon.de>
    Werner Koch <werner.koch@guug.de>

%prep
%setup -q

%build
%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

%check
make check

%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}

%files -f %{name}.lang
%defattr(-,root,root)
%doc NEWS COPYING TODO THANKS AUTHORS
%{_bindir}/gpa
%{_datadir}/gpa
%{_datadir}/applications/%name.desktop
%{_datadir}/pixmaps/gpa.png

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
openSUSE Build Service is sponsored by