forked from pool/python-pylibacl
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylibacl?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
70e1041ef7
commit
27e75259a5
@@ -15,28 +15,24 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define prjname pylibacl
|
||||
|
||||
Name: python-%{prjname}
|
||||
Name: python-pylibacl
|
||||
Version: 0.5.1
|
||||
Release: 0
|
||||
License: LGPL-2.1+
|
||||
Summary: Python POSIX.1e ACL module
|
||||
Url: http://pylibacl.k1024.org/
|
||||
Group: Development/Libraries/Python
|
||||
Source: %{prjname}-%{version}.tar.bz2
|
||||
Source: pylibacl-%{version}.tar.bz2
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: fdupes
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c
|
||||
"from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%description
|
||||
This Python 2.4+ extension module allows you to manipulate the POSIX.1e Access
|
||||
@@ -54,15 +50,11 @@ Control Lists present in some OS/file-systems combinations. It is a wrapper on
|
||||
top of the systems's acl C library - see acl(5).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{prjname}-%{version}
|
||||
%setup -q -n pylibacl-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
pushd doc
|
||||
mkdir -p ../html _build/doctrees
|
||||
sphinx-build -b html -d _build/doctrees . ../html
|
||||
rm ../html/.buildinfo
|
||||
popd
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||
python setup.py build_sphinx
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
@@ -78,7 +70,7 @@ python setup.py test
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc html
|
||||
%doc build/sphinx/html
|
||||
|
||||
%changelog
|
||||
|
||||
|
Reference in New Issue
Block a user