Package pcsc-lite: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | %define _unpackaged_files_terminate_build 1 #undefine XXX__libtoolize #define unstable 1 %def_disable static %def_enable polkit %def_enable systemd Name: pcsc-lite Version: 2.0.3 Release: alt1 Summary: PC/SC Lite smart card framework and applications License: %bsd Group: System/Servers URL: https://pcsclite.apdu.fr/ Source: %name-%version.tar Source1: pcscd.init Source2: pcsc-lite-pcscd.sysconfig Source3: pcsc-lite.tmpfiles Patch0: pcsc-lite-alt-use-sysconfig-dir.patch Requires: libpcsclite = %version-%release %{?_enable_polkit:Requires: polkit} BuildRequires(pre): rpm-build-python3 BuildRequires: rpm-build-licenses perl-podlators BuildRequires: flex BuildRequires: pkgconfig(libudev) BuildRequires: autoconf-archive %{?_enable_polkit:BuildRequires: pkgconfig(polkit-gobject-1) >= 0.111} %{?_enable_systemd:BuildRequires: pkgconfig(systemd)} %if_enabled static BuildRequires: glibc-devel-static %endif %description pcscd is the daemon program for PC/SC Lite. It is a resource manager that coorinates communications with Smart Card readers and Smart Cards that are connected to the system. The purpose of PCSC Lite is to provide a Windows(R) SCard interface in a very small form factor for communicating to smartcards and readers. PCSC Lite uses the same winscard api as used under Windows(R) This package contains the service for PC/SC Lite. %package -n libpcsclite Group: System/Libraries Summary: Libraries for pcscd # %description -n libpcsclite Libraries for pcscd. pcscd is the daemon program for PC/SC Lite. It is a resource manager that coorinates communications with Smart Card readers and Smart Cards that are connected to the system. The purpose of PCSC Lite is to provide a Windows(R) SCard interface in a very small form factor for communicating to smartcards and readers. PCSC Lite uses the same winscard api as used under Windows(R) %package -n libpcsclite-devel Group: Development/C Summary: Haeders and other development files for libpcsclite Requires: libpcsclite = %EVR # %description -n libpcsclite-devel Haeders and other development files for libpcsclite %package -n libpcsclite-devel-static Group: Development/C Summary: Static libraries for libpcsclite Requires: libpcsclite-devel = %EVR # %description -n libpcsclite-devel-static Static libraries for libpcsclite %prep %setup %patch0 -p1 subst 's|AC_PREREQ(\[2.69\])|AC_PREREQ(\[2.68\])|' configure.ac subst 's|/usr/bin/python$|%__python3|' src/spy/pcsc-spy %build %autoreconf %configure \ %{subst_enable static} \ %{subst_enable polkit} \ --enable-debugatr \ --enable-ipcdir=/var/run/pcscd \ --enable-usbdropdir=%_libdir/pcsc/drivers \ --with-systemdsystemunitdir=%_unitdir %make_build # pdf %make_build -C doc %install %makeinstall_std install -pDm755 %SOURCE1 %buildroot/%_initdir/pcscd install -pDm644 %SOURCE2 %buildroot/%_sysconfdir/sysconfig/pcscd mkdir -p %buildroot%_sysconfdir/reader.conf.d mkdir -p %buildroot/var/run/pcscd mkdir -p %buildroot%_libdir/pcsc/drivers # enable pcscd socket activation mkdir -p %buildroot%_unitdir/sockets.target.wants ln -s ../pcscd.socket %buildroot%_unitdir/sockets.target.wants mkdir -p %buildroot/lib/tmpfiles.d install -pDm644 %SOURCE3 %buildroot/lib/tmpfiles.d/pcsc-lite.conf # remove default installed docs rm -rf %buildroot/%_defaultdocdir/pcsc-lite %preun %preun_service pcscd %post %post_service pcscd %files %doc AUTHORS COPYING HELP NEWS README* SECURITY TODO doc/README.polkit %dir %_sysconfdir/reader.conf.d %config(noreplace) %_sysconfdir/sysconfig/pcscd %_initdir/pcscd %if_enabled systemd %_unitdir/pcscd.* %_unitdir/sockets.target.wants/* %endif /lib/tmpfiles.d/pcsc-lite.conf %_sbindir/pcscd #_bindir/make_hash_link.sh %_man5dir/* %_man8dir/* %dir %_libdir/pcsc %dir %_libdir/pcsc/drivers %{?_enable_polkit:%_datadir/polkit-1/actions/*.policy} %ghost %dir /var/run/pcscd # NB: .so belongs here, see ALT#25275 %files -n libpcsclite %_libdir/libpcsclite.so.* %_libdir/libpcsclite.so %files -n libpcsclite-devel %doc ChangeLog %_bindir/pcsc-spy %_libdir/libpcscspy.so* %_includedir/PCSC/ %_libdir/pkgconfig/libpcsclite.pc %_man1dir/pcsc-spy.* %if_enabled static %files -n libpcsclite-devel-static %_libdir/libpcsclite.a %endif %changelog * Tue Mar 05 2024 Andrey Cherepanov <cas@altlinux.org> 2.0.3-alt1 - New version. * Mon Nov 27 2023 Andrey Cherepanov <cas@altlinux.org> 2.0.1-alt1 - New version. - Fix service environment file and customized parameters. * Fri Jun 09 2023 Andrey Cherepanov <cas@altlinux.org> 2.0.0-alt1 - New version. * Wed Sep 14 2022 Andrey Cherepanov <cas@altlinux.org> 1.9.9-alt1 - New version. * Mon Jun 13 2022 Andrey Cherepanov <cas@altlinux.org> 1.9.8-alt1 - New version. * Tue May 31 2022 Andrey Cherepanov <cas@altlinux.org> 1.9.7-alt1 - New version. * Thu May 12 2022 Andrey Cherepanov <cas@altlinux.org> 1.9.6-alt1 - New version. * Wed Jan 26 2022 Andrey Cherepanov <cas@altlinux.org> 1.9.5-alt1 - New version. * Wed May 19 2021 Slava Aseev <ptrnine@altlinux.org> 1.9.1-alt1 - New version - Use python3 in pcsc-spy * Mon Jun 15 2020 Andrey Cherepanov <cas@altlinux.org> 1.9.0-alt1 - New version. * Fri Jan 03 2020 Andrey Cherepanov <cas@altlinux.org> 1.8.26-alt1 - New version. * Tue Aug 20 2019 Andrey Cherepanov <cas@altlinux.org> 1.8.25-alt1 - New version. * Thu Dec 21 2017 Andrey Cherepanov <cas@altlinux.org> 1.8.23-alt1 - New version. * Mon Jun 19 2017 Andrey Cherepanov <cas@altlinux.org> 1.8.22-alt1 - New version * Sun May 21 2017 Andrey Cherepanov <cas@altlinux.org> 1.8.21-alt1 - New version * Thu May 11 2017 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.8.20-alt3 - Fixed realloc usage. * Wed Feb 22 2017 Michael Shigorin <mike@altlinux.org> 1.8.20-alt2 - BOOTSTRAP: introduce polkit, systemd knobs (on by default) * Sat Jan 28 2017 Andrey Cherepanov <cas@altlinux.org> 1.8.20-alt1 - new version 1.8.20 * Fri Dec 30 2016 Lenar Shakirov <snejok@altlinux.ru> 1.8.18-alt2 - Requires: polkit added (closes: #32950) * Thu Sep 15 2016 Andrey Cherepanov <cas@altlinux.org> 1.8.18-alt1 - new version 1.8.18 * Wed Jun 15 2016 Alexey Shabalin <shaba@altlinux.ru> 1.8.17-alt1 - 1.8.17 * Thu Aug 13 2015 Alexey Shabalin <shaba@altlinux.ru> 1.8.14-alt1 - 1.8.14 * Wed Jul 22 2015 Alexey Shabalin <shaba@altlinux.ru> 1.8.13-alt2 - add patches from upstream master * Thu Nov 13 2014 Alexey Shabalin <shaba@altlinux.ru> 1.8.13-alt1 - 1.8.13 * Fri Oct 03 2014 Alexey Shabalin <shaba@altlinux.ru> 1.8.12-alt1 - 1.8.12 * Fri Apr 25 2014 Alexey Shabalin <shaba@altlinux.ru> 1.8.11-alt1 - 1.8.11 * Mon Jan 28 2013 Alexey Shabalin <shaba@altlinux.ru> 1.8.8-alt1 - 1.8.8 * Wed Aug 15 2012 Michael Shigorin <mike@altlinux.org> 1.8.5-alt2 - added systemd support (shaba@) - moved libpcsclite.so to libpcsclite subpackage, thx ab@ (#25275) * Wed Aug 08 2012 Alexey Shabalin <shaba@altlinux.ru> 1.8.5-alt1 - 1.8.5 - add preun/post service scripts * Thu Aug 02 2012 Michael Shigorin <mike@altlinux.org> 1.7.4-alt3 - disabled verbose logs by default (sysconfig) * Thu Aug 02 2012 Michael Shigorin <mike@altlinux.org> 1.7.4-alt2 - fixed initscript - minor spec cleanup * Tue Mar 20 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1.7.4-alt1 - [1.7.4] * Sun Jun 27 2010 Alexey I. Froloff <raorn@altlinux.org> 1.6.1-alt1 - [1.6.1] + Dropped update-reader.conf - Disabled libhal, enabled libusb * Thu Sep 10 2009 Alexey I. Froloff <raorn@altlinux.org> 1.5.5-alt1 - [1.5.5] (closes: #21489) - Dropped testpcsc (test tool) - IPC directory moved to /var/run/pcscd - Packaged driver directory * Tue Apr 28 2009 Andriy Stepanov <stanv@altlinux.ru> 1.5.2-alt1 - New version * Thu Jan 17 2008 Sergey V Turchin <zerg at altlinux dot org> 1.4.4-alt3 - fix initscript daemon startup options (#14023) * Mon Oct 01 2007 Sergey V Turchin <zerg at altlinux dot org> 1.4.4-alt2 - add description to initscript * Wed Sep 05 2007 Sergey V Turchin <zerg at altlinux dot org> 1.4.4-alt1 - new version * Mon Jul 03 2006 Sergey V Turchin <zerg at altlinux dot org> 1.3.1-alt1 - new version * Tue Feb 01 2005 Sergey V Turchin <zerg at altlinux dot org> 1.2.0-alt2 - fix default /etc/sysconfig/pcscd * Mon Oct 11 2004 Sergey V Turchin <zerg at altlinux dot org> 1.2.0-alt1 - new version * Tue Apr 06 2004 Sergey V Turchin <zerg at altlinux dot org> 1.1.1-alt5 - add patches from PLD * Mon Dec 01 2003 Sergey V Turchin <zerg at altlinux dot org> 1.1.1-alt4 - remove *.la * Mon Sep 29 2003 Sergey V Turchin <zerg at altlinux dot org> 1.1.1-alt3 - move config to %_sysconfdir - fix build requires - WITHOUT_RC_COMPAT=1 in initscript * Thu Oct 24 2002 Sergey V Turchin <zerg@altlinux.ru> 1.1.1-alt2 - fix requires * Tue Oct 22 2002 Sergey V Turchin <zerg@altlinux.ru> 1.1.1-alt1 - initial spec |