File gtkcard.spec of Package gtkcard
#
# spec file for package gtkcard (Version 0.1.9.106)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gtkcard
Version: 0.1.9.106
Release: 59
%define _version 0.2-svn-r106
URL: http://www.opensc-project.org/gtkcard/
Group: Productivity/Security
License: GNU General Public License (GPL)
Summary: PKCS#11 Smard Card Utility
Source: %{name}-%{_version}.tar.bz2
Source1: opensc-key.png
# wget -N http://www.core.com.pl/svn2log/svn2log.py ; svn log -v --xml http://www.opensc-project.org/svn/gtkcard/trunk | python svn2log.py -D 0 -s -H -p '/(branches/[^/]+|trunk)/' -o gtkcard-ChangeLog ; sed -i 's/\+0000 \[r[0-9-]*\] \(.*\):$/\1/' gtkcard-ChangeLog
Source2: gtkcard-ChangeLog
Autoreqprov: on
BuildRequires: gtk2-devel opensc openssl-devel update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Utility for manipulation with the PKCS#11 Smart Card.
Authors:
--------
Ludovic Rousseau <ludovic.rousseau@free.fr>
%prep
%setup -n %{name}-%{_version}
cp -a %{S:1} .
if ! test -f ChangeLog ; then
cp %{S:2} ChangeLog
else
echo "WARNING: ChangeLog is now obsolete."
sleep 20
fi
%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure\
--prefix=/usr\
--enable-pkcs11=/usr/%{_lib}/opensc-pkcs11.so
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
cp opensc-key.png $RPM_BUILD_ROOT/usr/share/pixmaps
%suse_update_desktop_file -N "GTKCard" -C "Manipulate with the PKCS#11 Smart Card" -c GTKCard GTKCard "PKCS#11 Smard Card Utility" GTKCard opensc-key GTK Utility Security
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%doc ChangeLog LICENSE README
/usr/bin/*
/usr/share/applications/*.desktop
/usr/share/pixmaps/*.png
%changelog
* Thu Jun 07 2007 - sbrabec@suse.cz
- Removed invalid desktop Category "Application" (#254654).
* Tue Oct 03 2006 - sbrabec@suse.cz
- Updated to version 0.2-svn-r106:
* Compiles without broken GTK+ 1.2 compatibility layer.
* Mon May 15 2006 - sbrabec@suse.cz
- New SuSE package, version 0.1.