diff --git a/pyscard.spec b/pyscard.spec index 862d1ec..c28cb9f 100644 --- a/pyscard.spec +++ b/pyscard.spec @@ -1,6 +1,6 @@ Name: pyscard Version: 1.9.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A framework for building smart card aware applications in Python Group: Development/Libraries @@ -13,36 +13,63 @@ License: LGPLv2+ and Python and CC-BY-SA URL: https://sourceforge.net/projects/pyscard/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: pcsc-lite-devel BuildRequires: swig >= 1.3.31 Requires: pcsc-lite %description -The pyscard smartcard library is a framework for building smart card aware -applications in Python. The smartcard module is built on top of the PCSC API +The pyscard smartcard library is a framework for building smart card aware +applications in Python. The smartcard module is built on top of the PCSC API Python wrapper module. +This is the python2 package. + +%package -n python3-%{name} +Summary: A framework for building smart card aware applications in Python +Requires: pcsc-lite + +%description -n python3-%{name} +The pyscard smartcard library is a framework for building smart card aware +applications in Python. The smartcard module is built on top of the PCSC API +Python wrapper module. + +This is the python3 package. + %prep %setup -q # license file is CRLF terminated -- prevent a rpmlint warning sed -i 's/\r//' LICENSE %build -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build +%{__python2} setup.py build +%{__python3} setup.py build %install -%{__python3} setup.py install -O1 --skip-build --root %{buildroot} -chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/_scard.*.so +%{__python2} setup.py install --root %{buildroot} +chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so +%{__python3} setup.py install --root %{buildroot} +chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so %files %license LICENSE %doc README %doc smartcard/doc/* +%{python2_sitearch}/smartcard/ +%{python2_sitearch}/%{name}-%{version}-py*.egg-info + +%files -n python3-%{name} +%license LICENSE +%doc README +%doc smartcard/doc/* %{python3_sitearch}/smartcard/ -%{python3_sitearch}/%{name}-%{version}-py*.egg-info +%{python3_sitearch}/%{name}-%{version}-py*.egg-info %changelog +* Mon Aug 31 2015 Seth Jennings 1.9.0-2 +- New subpackage for python3 build + * Fri Aug 14 2015 Nikos Mavrogiannopoulos 1.9.0-1 - New upstream release - Built with python3