[packman] Cyberjack-Pakete

Toni toni at links2linux.de
Mon Mar 1 20:04:48 CET 2010


Am Montag, 1. März 2010 schrieb Martin Preuss:
> Moin Toni,
>
> nur eine Frage: Warum machst Du eigentlich Pakete fuer den cyberJack? Wir
> bieten doch selbst auch Pakete an, fuer alle gaengigen Distributionen?
Es gab eine Anfrage welche anzubieten.

Das Problem liegt wol daran, das für eure Pakete keine repository Daten 
verfügbar sind und sie deshalb manuell installiert werden müssen und nicht 
via YaST/zypper.

> Gibt es etwas, was in unseren Paketen noch fehlt? Was sind die Unterschiede
> zwischen Deinen und unseren Paketen?
siehe spec-file

shared-library-policy, BuildRequires, chroot-build, directory-ownership

> Gruss
> Martin

-- 
have fun
Toni
-------------- next part --------------
# Copyright (c) 2009-2010 oc2pus
# 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 to toni at links2linux.de

# norootforbuild

%define _SONr	2

Name:			ctapi-cyberjack
Summary:		CT-API 1.1 driver for REINER SCT cyberjack USB chipcard reader
Version:		3.3.5
Release:		0.pm.1
License: 		LGPL
URL:			http://www.reiner-sct.de/
Group:			System/Libraries
Source: 		%{name}-%{version}.tar.gz
Source1:		fxcyberjack.png
Source90:		%{name}-rpmlintrc
#Patch:			%{name}-returns-random-data.patch
BuildRoot:		%{_tmppath}/%{name}-%{version}-root
BuildRequires:	fox16-devel
BuildRequires:	gcc-c++
BuildRequires:	hal-devel
%if %suse_version >= 1110
BuildRequires:	libusb-1_0-devel
%else
BuildRequires:	libusb-devel
%endif
BuildRequires:	pkgconfig
BuildRequires:	pcsc-lite-devel
BuildRequires:	update-desktop-files
Requires:		udev

%package ifd
Summary:	Cyberjack PC/SC IFD handler for pcsc-lite
Group:		System/Libraries
Requires:	%{name} = %{version}
Conflicts:	pcsc-cyberjack

%description ifd
REINER SCT cyberJack pinpad/e-com USB user space driver

This package includes the PC/SC IFD handler driver for the CyberJack
ecom_a USB chipcard reader.

%package gui
Summary:	Graphical Diagnostic Tool
Group:		System/Libraries
Requires:	%{name} = %{version}

%description gui
Graphical diagnostic tool for Reiner SCT cyberJack card readers.

This package contains a graphical tool which lists all connected 
Reiner SCT readers and allows flashing E-Com A and newer readers.

It can also be used to diagnose most frequent problems in the
reader-/driver setup.

%description
REINER SCT cyberJack pinpad/e-com USB user space driver

This package includes the CT-API driver for the CyberJack USB chipcard
reader.

This package changes the permissions of the device to grant access to
users of the group "cyberjack".

Therefore you should add all users which are to access the reader to the
group "cyberjack".

If you run into problems you should start the tool "cyberjack" in a
console and watch its output.

For more information regarding installation under Linux see the
README.txt in the documentation directory, esp. regarding compatibility
with host controllers.

For more information about the reader, software updates and a shop see
http://www.reiner-sct.com/

%package -n libctapi-cyberjack%{_SONr}
Summary:	Shared library for ctapi-cyberjack
Group:		System/Libraries

%description -n libctapi-cyberjack%{_SONr}
Shared library for package ctapi-cyberjack.

%package -n libcyberjack%{_SONr}
Summary:	Shared library for ctapi-cyberjack
Group:		System/Libraries

%description -n libcyberjack%{_SONr}
Shared library for package ctapi-cyberjack.

%if 0
%package devel
Summary:	Include files and libraries for development
Group:		Development/Libraries/C and C++
Requires:	libcyberjack%{_SONr} = %{version}
Requires:	libctapi-cyberjack%{_SONr} = %{version}
%if %suse_version >= 1110
Requires:	libusb-1_0-devel
%else
Requires:	libusb-devel
%endif
Requires:	pkgconfig
Requires:	pcsc-lite-devel

%description devel
Include files and libraries for development for package ctapi-cyberjack.
%endif

%debug_package

%prep
%setup -q
#%patch -p1

%build
%configure \
	--disable-static \
	--sysconfdir="%{_sysconfdir}" \
	--with-usbdropdir="%{_libdir}/readers"
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

#%__install -dm 755 %{buildroot}%{_includedir}
#%__install -m 644 ctapi.h \
#	%{buildroot}%{_includedir}

%__rm %{buildroot}%{_libdir}/libctapi-cyberjack.la
%__rm %{buildroot}%{_libdir}/libcyberjack.la
%__rm %{buildroot}%{_libdir}/readers/ifd-cyberjack.bundle/Contents/Linux/ifd-cyberjack.la

%__install -dm 755 %{buildroot}%{_libdir}/readers

# menu-entry
%__install -dm 755 %{buildroot}/%{_datadir}/pixmaps
%__install -m 644 %{SOURCE1} \
	%{buildroot}/%{_datadir}/pixmaps

%__install -dm 755 %{buildroot}/%{_datadir}/applications
%__cat > %{name}-gui.desktop << EOF
[Desktop Entry]
Type=Application
Comment=Graphical diagnostic tool for Reiner SCT cyberJack card readers
Terminal=false
Exec=fxcyberjack
Icon=fxcyberjack
Name=Diagnostic tool for Reiner SCT cyberJack
GenericName=Diagnostic tool for Reiner SCT cyberJack
EOF
%__install -m 644 %{name}-gui.desktop \
	%{buildroot}/%{_datadir}/applications/%{name}-gui.desktop
%suse_update_desktop_file -i %{name}-gui Utility Security

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%post -n libcyberjack%{_SONr} -p /sbin/ldconfig
%postun -n libcyberjack%{_SONr} -p /sbin/ldconfig

%post -n libctapi-cyberjack%{_SONr} -p /sbin/ldconfig
%postun -n libctapi-cyberjack%{_SONr} -p /sbin/ldconfig

%pre
groupadd -r cyberjack 2>/dev/null || :

%post
pushd %{_libdir}/readers > /dev/null
	ln -sf %{_libdir}/lib%{name}.so* .
popd > /dev/null

%postun
pushd %{_libdir}/readers > /dev/null
	%__rm -f %{_libdir}/lib%{name}.so*
popd > /dev/null

%files
%defattr(-,root,root)
%doc COPYRIGHT.GPL COPYRIGHT.LGPL
%doc doc/README.txt doc/LIESMICH.txt
%config %{_sysconfdir}/cyberjack.conf.default
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
%config %{_sysconfdir}/udev/rules.d/99-cyberjack.rules
/sbin/udev.cyberjack.sh

# CT-API
%{_bindir}/cjflash
%{_bindir}/cjgeldkarte
%{_bindir}/cyberjack
%dir %{_libdir}/cyberjack
%{_libdir}/cyberjack/getdist.sh
%dir %{_libdir}/readers
#%{_libdir}/readers/libctapi-cyberjack.so
#%{_libdir}/readers/libctapi-cyberjack.so.*

# PC/SC
%files ifd
%defattr(-,root,root)
%dir %{_libdir}/readers
%dir %{_libdir}/readers/ifd-cyberjack.bundle
%{_libdir}/readers/ifd-cyberjack.bundle/*

%files gui
%defattr(-,root,root)
%{_bindir}/fxcyberjack
%{_datadir}/applications/%{name}-gui.desktop
%{_datadir}/pixmaps/fxcyberjack.png

%files -n libctapi-cyberjack%{_SONr}
%defattr(-,root,root)
%{_libdir}/libctapi-cyberjack.so*

%files -n libcyberjack%{_SONr}
%defattr(-,root,root)
%{_libdir}/libcyberjack.so*

%if 0
%files devel
%defattr(-,root,root)
#%{_includedir}/ctapi.h
%endif

%changelog
* Wed Feb 24 2010 Toni Graffy <toni at links2linux.de> - 3.3.5-0.pm.1
- update to 3.3.5
- Diese Version behebt Probleme von 0x300er und 0x401er cyberJacks/Ecoms
* Wed Dec 23 2009 Toni Graffy <toni at links2linux.de> - 3.3.4-0.pm.1
- update to 3.3.4
* Tue Dec 15 2009 Toni Graffy <toni at links2linux.de> - 3.3.3beta12-0.pm.1
- update to 3.3.3beta12
- removed devel-sub-package and move *.so to the lib*-package
* Sat Dec 05 2009 Toni Graffy <toni at links2linux.de> - 3.3.3beta11-0.pm.1
- update to 3.3.3beta11
* Fri Dec 04 2009 Toni Graffy <toni at links2linux.de> - 3.3.3beta10-0.pm.1
- initial build for packman
- spec based on the spec from the tar-ball
* Wed May 02 2007 - Martin Preuss <martin at libchipcard.de>
+ ctapi-cyberjack-3.0.0beta1-1
- modified specfile to create RPMs for any RPM-based system
- now uses autotools



More information about the Packman mailing list