]> git.pld-linux.org Git - packages/openct.git/blob - openct.spec
- refresh config.sub for amd64
[packages/openct.git] / openct.spec
1 # TODO:
2 # - write init script
3 Summary:        OpenCT library - library for accessing smart card terminals
4 Summary(pl):    OpenCT - biblioteka dostêpu do terminali kart procesorowych
5 Name:           openct
6 Version:        0.5.0
7 Release:        0.2
8 License:        BSD-like
9 Group:          Applications
10 Source0:        http://www.opensc.org/files/%{name}-%{version}.tar.gz
11 # Source0-md5:  5e6de721d22db8f5da060a1843bb3259
12 URL:            http://www.opensc.org/
13 BuildRequires:  automake
14 BuildRequires:  libusb-devel
15 BuildRequires:  pcsc-lite-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 OpenCT is a library for accessing smart card terminals. It provides a
20 rich set of functions for driver writers, protocol drivers for T=0 and
21 T=1, serial and USB functionality, including USB hotplugging. 
22
23 %description -l pl
24 OpenCT to biblioteka s³u¿±ca do dostêpu do terminali kart
25 procesorowych (smart card). Dostarcza bogaty zbiór funkcji dla
26 pisz±cych sterowniki, sterowniki protoko³ów dla T=0 i T=1,
27 funkcjonalno¶æ dla portów szeregowych i USB, w³±cznie z pod³±czaniem
28 urz±dzeñ USB w locie (hotplug).
29
30 %package devel
31 Summary:        OpenCT development files
32 Summary(pl):    Pliki dla programistów u¿ywaj±cych OpenCT
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 OpenSC development files.
38
39 %description devel -l pl
40 Pliki dla programistów u¿ywaj±cych OpenCT.
41
42 %package static
43 Summary:        Static OpenCT libraries
44 Summary(pl):    Bibloteki statyczne OpenCT
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static OpenCT libraries.
50
51 %description static -l pl
52 Statyczne biblioteki OpenCT.
53
54 %prep
55 %setup -q
56
57 %build
58 cp -f /usr/share/automake/config.* .
59 %configure 
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 install etc/openct.conf $RPM_BUILD_ROOT%{_sysconfdir}
70
71 rm -f $RPM_BUILD_ROOT%{_libdir}/openct-*.{a,la}
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %files
80 %defattr(644,root,root,755)
81 %doc AUTHORS ANNOUNCE ChangeLog NEWS TODO doc/openct.{html,css}
82 %attr(755,root,root) %{_bindir}/openct-tool
83 %attr(755,root,root) %{_sbindir}/ifdhandler
84 %attr(755,root,root) %{_sbindir}/openct-control
85 %attr(755,root,root) %{_libdir}/lib*.so.*.*
86 %attr(755,root,root) %{_libdir}/openct-*.so
87 %attr(755,root,root) %{_libdir}/libopenctapi.so
88 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/openct.conf
89 %attr(755,root,root) %{_sysconfdir}/hotplug/usb/openct
90 %{_sysconfdir}/hotplug/usb/openct.usermap
91
92 %files devel
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/libifd.so
95 %attr(755,root,root) %{_libdir}/libopenct.so
96 %{_libdir}/lib*.la
97 %{_includedir}/openct
98 %{_pkgconfigdir}/*.pc
99
100 %files static
101 %defattr(644,root,root,755)
102 %{_libdir}/lib*.a
This page took 0.088852 seconds and 4 git commands to generate.