%global with_python3 1 Name: pylibacl Summary: POSIX.1e ACLs library wrapper for python Version: 0.5.2 Release: 13%{?dist} License: LGPLv2+ URL: https://pylibacl.k1024.org Source: %{url}/downloads/%{name}-%{version}.tar.gz Obsoletes: python-libacl <= %{version}-%{release} # Already autodetected #Requires: libacl #Requires: python2 >= 2.4 BuildRequires: gcc BuildRequires: libacl-devel BuildRequires: python2-devel BuildRequires: python2-setuptools %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools %endif %description Python extension module for POSIX ACLs. It allows to query, list, add and remove ACLs from files and directories. %if 0%{?with_python3} %package -n py3libacl Summary: POSIX.1e ACLs library wrapper for python 3 %description -n py3libacl Python 3 extension module for POSIX ACLs. It allows to query, list, add and remove ACLs from files and directories. %endif %prep %autosetup %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} %endif %build CFLAGS="%{optflags}" %{__python2} setup.py build %if 0%{?with_python3} pushd %{py3dir} %py3_build popd %endif %install %{__python2} setup.py install --root="%{buildroot}" %if 0%{?with_python3} pushd %{py3dir} %py3_install popd %endif %check %{__python2} setup.py check %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py check popd %endif %files %doc COPYING README NEWS %{python2_sitearch}/* %if 0%{?with_python3} %files -n py3libacl %doc COPYING README NEWS %{python3_sitearch}/* %endif %changelog * Mon Jan 13 2020 Frank Crawford - 0.5.2-13 - Rebuilt for python3 on EPEL 7 and 8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.5.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.5.2-9 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.5.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Feb 07 2018 Iryna Shcherbina - 0.5.2-7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Aug 03 2017 Fedora Release Engineering - 0.5.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.5.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.5.2-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.5.2-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon May 02 2016 Yclept Nemo - 0.5.2-1 - updated to 0.5.2 - phase out python-libacl (it's been a while...) - run checks - python3 subpackage - remove outdated macros - (original change date Mon Jan 12 2015) * Thu Feb 04 2016 Fedora Release Engineering - 0.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.5.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.5.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 26 2012 Marcin Zajaczkowski - 0.5.1-2 - fix wrong licence tag - starting from 0.4 it should be LGPLv2+ instead of GPLv2+ * Tue Jun 26 2012 Marcin Zajaczkowski - 0.5.1-1 - updated to 0.5.1 - fix bugs found with cpycheck (bug 800126) - adjust minimal required Python version to 2.4 * Sat Jan 14 2012 Fedora Release Engineering - 0.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 21 2010 David Malcolm - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Jul 06 2010 Kevin Fenzi - 0.5.0-1 - Update to 0.5.0 - Fix egg-info * Sun Jul 26 2009 Fedora Release Engineering - 0.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.2.2-5 - Rebuild for Python 2.6 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.2.2-4 - Rebuild for Python 2.6 * Tue Feb 19 2008 Fedora Release Engineering - 0.2.2-3 - Autorebuild for GCC 4.3 * Tue Jan 15 2008 Marcin Zajaczkowski - 0.2.2-2 - added compatibility with Python Eggs forced in F9 * Mon Aug 27 2007 Marcin Zajaczkowski - 0.2.2-1 - upgraded to 0.2.2 * Sun Aug 26 2007 Kevin Fenzi - 0.2.1-7 - Updated License tag * Wed Apr 25 2007 Marcin Zajaczkowski - 0.2.1-6 - added Provides/Obsoletes tags * Sat Apr 21 2007 Marcin Zajaczkowski - 0.2.1-5 - removed redundant after name change "exclude" tag - comments cleanup * Wed Apr 18 2007 Marcin Zajaczkowski - 0.2.1-4 - applied suggestions from Kevin Fenzi - name changed from python-libacl to pylibacl - corrected path to the source file * Fri Apr 6 2007 Marcin Zajaczkowski - 0.2.1-3 - fixed path to a source package * Thu Apr 5 2007 Marcin Zajaczkowski - 0.2.1-2 - added python-devel in BuildRequires - added Provides section - modified to Fedora Extras requirements * Sun Sep 11 2005 Dag Wieers - 0.2.1-1 - Initial package. (using DAR)