]> git.pld-linux.org Git - packages/openct.git/blobdiff - openct.spec
- added new download URL
[packages/openct.git] / openct.spec
index 69b2adf07cfacb19ba92db35f5798db47337485c..eb0173726de4977d928de61c94320dbe3b967c65 100644 (file)
@@ -1,33 +1,34 @@
 Summary:       OpenCT library - library for accessing smart card terminals
 Summary(pl.UTF-8):     OpenCT - biblioteka dostępu do terminali kart procesorowych
 Name:          openct
-Version:       0.6.15
-Release:       3
+Version:       0.6.20
+Release:       4
 License:       LGPL v2.1+
 Group:         Applications/System
-Source0:       http://www.opensc-project.org/files/openct/%{name}-%{version}.tar.gz
-# Source0-md5: 70205beac03974e266fc259b6c9feaa8
+#Source0Download: https://github.com/OpenSC/openct/releases
+Source0:       http://downloads.sourceforge.net/opensc/%{name}-%{version}.tar.gz
+# Source0-md5: a1da3358ab798f1cb9232f1dbababc21
 Source1:       %{name}.init
-Source2:       %{name}-initramfs-hook
-URL:           http://www.opensc-project.org/openct/
+Source2:       %{name}.tmpfiles
+URL:           https://github.com/OpenSC/openct/wiki
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
 BuildRequires: libltdl-devel
 BuildRequires: libtool
-BuildRequires: libusb-devel
+BuildRequires: libusb-compat-devel
 BuildRequires: pcsc-lite-devel
 BuildRequires: pkgconfig >= 1:0.9.0
 Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/sbin/useradd
-Requires(postun):      /usr/sbin/userdel
 Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 OpenCT is a library for accessing smart card terminals. It provides a
 rich set of functions for driver writers, protocol drivers for T=0 and
-T=1, serial and USB functionality, including USB hotplugging. 
+T=1, serial and USB functionality, including USB hotplugging.
 
 %description -l pl.UTF-8
 OpenCT to biblioteka służąca do dostępu do terminali kart
@@ -36,25 +37,13 @@ piszących sterowniki, sterowniki protokołów dla T=0 i T=1,
 funkcjonalność dla portów szeregowych i USB, włącznie z podłączaniem
 urządzeń USB w locie (hotplug).
 
-%package -n hal-openct
-Summary:       hal integration for OpenCT
-Summary(pl.UTF-8):     Integracja OpenCT z hal
-Group:         Applications/System
-Requires:      %{name} = %{version}-%{release}
-Requires:      udev-core
-
-%description -n hal-openct
-hal integration for OpenCT.
-
-%description -n hal-openct -l pl.UTF-8
-Integracja OpenCT z hal.
-
 %package -n udev-openct
 Summary:       udev integration for OpenCT
 Summary(pl.UTF-8):     Integracja OpenCT z udevem
 Group:         Applications/System
 Requires:      %{name} = %{version}-%{release}
 Requires:      udev-core
+Obsoletes:     hal-openct
 
 %description -n udev-openct
 udev integration for OpenCT.
@@ -78,7 +67,6 @@ Sterownik OpenCT dla PC/SC.
 %package libs
 Summary:       OpenCT library
 Summary(pl.UTF-8):     Biblioteka OpenCT
-License:       BSD (libopenct), LGPL v2.1+ (the rest)
 Group:         Libraries
 Conflicts:     openct < 0.6.2-3
 
@@ -91,7 +79,6 @@ Biblioteka OpenCT.
 %package devel
 Summary:       OpenCT development files
 Summary(pl.UTF-8):     Pliki dla programistów używających OpenCT
-License:       BSD
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
@@ -104,7 +91,6 @@ Pliki dla programistów używających OpenCT.
 %package static
 Summary:       Static OpenCT libraries
 Summary(pl.UTF-8):     Bibloteki statyczne OpenCT
-License:       BSD
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
@@ -114,19 +100,6 @@ Static OpenCT libraries.
 %description static -l pl.UTF-8
 Statyczne biblioteki OpenCT.
 
-%package initramfs
-Summary:       OpenCT support scripts for initramfs-tools
-Summary(pl.UTF-8):     Skrypty dla initramfs-tools ze wsparciem dla OpenCT
-Group:         Base
-Requires:      %{name} = %{version}-%{release}
-Requires:      initramfs-tools
-
-%description initramfs
-OpenCT support scripts for initramfs-tools.
-
-%description initramfs -l pl.UTF-8
-Skrypty dla initramfs-tools ze wsparciem dla OpenCT.
-
 %prep
 %setup -q
 
@@ -153,22 +126,19 @@ touch config.rpath
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/var/run/openct,/etc/{rc.d/init.d,udev/rules.d},/usr/share/hal/fdi/information/10freedesktop} \
-       $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks
+install -d $RPM_BUILD_ROOT{/var/run/openct,/etc/{rc.d/init.d,udev/rules.d}} \
+       $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install etc/openct.conf $RPM_BUILD_ROOT%{_sysconfdir}
-install etc/openct.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-openct.fdi
-install etc/openct.hald $RPM_BUILD_ROOT%{_bindir}/hald-addon-openct
-install etc/openct.udev $RPM_BUILD_ROOT/etc/udev/rules.d/50-openct.rules
-
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/openct
-
-install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/openct
+cp -a etc/openct.conf $RPM_BUILD_ROOT%{_sysconfdir}
+cp -a etc/openct.udev $RPM_BUILD_ROOT/etc/udev/rules.d/50-openct.rules
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/openct
+install -p %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/openct-*.{a,la}
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -178,17 +148,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add openct
-if [ -f /var/lock/subsys/openct ]; then
-       /etc/rc.d/init.d/openct restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/openct start\" to start openct."
-fi
+%service openct restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/openct ]; then
-               /etc/rc.d/init.d/openct stop >&2
-       fi
+       %service openct stop
        /sbin/chkconfig --del openct
 fi
 
@@ -208,6 +172,7 @@ fi
 %attr(755,root,root) %{_sbindir}/ifdproxy
 %attr(755,root,root) %{_sbindir}/openct-control
 %dir /var/run/openct
+/usr/lib/tmpfiles.d/%{name}.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openct.conf
 %attr(754,root,root) /etc/rc.d/init.d/openct
 %{_mandir}/man1/openct-tool.1*
@@ -219,17 +184,12 @@ fi
 %attr(755,root,root) /lib/udev/openct_usb
 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/50-openct.rules
 
-%files -n hal-openct
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/hald-addon-openct
-%{_datadir}/hal/fdi/information/10freedesktop/10-usb-openct.fdi
-
 %files -n pcsc-driver-openct
 %defattr(644,root,root,755)
 %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle
 %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents
 %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Linux
-%attr(755,root,root) %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Linux/openct-ifd.so
+%attr(755,root,root) %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Linux/openct-ifd.so
 %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Info.plist
 %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/PkgInfo
 
@@ -253,7 +213,3 @@ fi
 %defattr(644,root,root,755)
 %{_libdir}/libopenct.a
 %{_libdir}/libopenctapi.a
-
-%files initramfs
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_datadir}/initramfs-tools/hooks/openct
This page took 0.099333 seconds and 4 git commands to generate.