File gsmcard.spec of Package gsmcard
#
# spec file for package gsmcard
#
# 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/
#
Name: gsmcard
BuildRequires: ctags pcsc-lite-devel pkg-config
License: GPL v2 or later
Group: Productivity/Telephony/Utilities
%define _svn_version 15
Version: 0.9.1.0.svn%{_svn_version}
Release: 0
Summary: GSM Card Modification Utility
Url: https://sourceforge.net/projects/gsmcard.berlios/
# https://github.com/BackupTheBerlios/gsmcard-svn
Source: %{name}-svn%{_svn_version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl-pcsc
%description
gsmcard is a small perl script for accessing mobile phone SIM cards.
It works for the commandline, but can be easily used in other programs; the
output lines include status codes similar to the FTP protocol.
It supports basic manipulations with the mobile phone GSM card using
Smart Card reader. Smart card reader must either support SIM size Smart
Cards, or you have to use credit card size mould provided by most SIM
card providers.
%prep
%setup -q -n %{name}
%build
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install src/gsmcard.pl $RPM_BUILD_ROOT%{_bindir}/gsmcard
ln -s gsmcard $RPM_BUILD_ROOT%{_bindir}/gsmcard.pl
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc LICENSE README doc/USAGE
%{_bindir}/*