File gpii-linux-rfid-listener.spec of Package gpii-linux-rfid-listener

#
# spec file for package gpii-linux-rfid-listener
#
# Copyright (c) 2013 Emergya
# Author: Javier Hernández <jhernandez@emergya.com>
#

Name:           gpii-linux-rfid-listener
Version:        0.1_git20130302
Release:        1%{?dist}
Summary:        GPII Linux RFID User Listener
License:        GPL
URL:            http://github.org/GPII/linux-rfid-user-listener
Source0:        %{name}-%{version}.tar.gz
Source1:        gpii-rfid-autostart.desktop

BuildRequires:	pcsc-lite-devel
Requires:	pcsc-lite

%description
This project is a branch of the PC/SC utilities by Ludovic Rousseau
with additions and modifcations that are specific to the GPII. The
original README and license information are included in the package.

We've currently testing the following tags, and indicate which ones
work. Notably we do not yet support the Ultralight tags, but could
with a small bit of extra work, the blocks we read from are just at
a different location on those tags.

- Mifare Ultralight and Ultralight C: Not Working
- Mifare Classic 1k: Working
- Mifare Mini: Working

%prep
%setup -q -n gpii-linux-rfid-listener-%{version}
make

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p %{buildroot}%{_bindir}
install -pm0755 pcsc_scan ATR_analysis gscriptor scriptor %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_datadir}/pcsc
install -pm0644 smartcard_list.txt %{buildroot}%{_datadir}/pcsc

mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
cp -rf %SOURCE1 %{buildroot}%{_sysconfdir}/xdg/autostart/

mkdir -p %{buildroot}%{_mandir}/man1/
install -pm0644 pcsc_scan.1.gz %{buildroot}%{_mandir}/man1/

mkdir -p %{buildroot}%{_mandir}/man1p/
install -pm0644 *.1p.gz %{buildroot}%{_mandir}/man1p/

%files
%{_bindir}/*
%{_datadir}/pcsc
%{_sysconfdir}/xdg/autostart/gpii-rfid-autostart.desktop
%{_mandir}/man1/*
%{_mandir}/man1p/*
%doc LICENCE README

%changelog
openSUSE Build Service is sponsored by