14
0
Sascha Peilicke
2013-03-20 09:00:10 +00:00
committed by Git OBS Bridge
parent 70e1041ef7
commit 27e75259a5

View File

@@ -15,28 +15,24 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%define prjname pylibacl Name: python-pylibacl
Name: python-%{prjname}
Version: 0.5.1 Version: 0.5.1
Release: 0 Release: 0
License: LGPL-2.1+ License: LGPL-2.1+
Summary: Python POSIX.1e ACL module Summary: Python POSIX.1e ACL module
Url: http://pylibacl.k1024.org/ Url: http://pylibacl.k1024.org/
Group: Development/Libraries/Python Group: Development/Libraries/Python
Source: %{prjname}-%{version}.tar.bz2 Source: pylibacl-%{version}.tar.bz2
BuildRequires: libacl-devel BuildRequires: libacl-devel
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-distribute BuildRequires: python-distribute
BuildRequires: python-Sphinx
BuildRequires: fdupes BuildRequires: fdupes
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%if 0%{?suse_version} %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%py_requires
%endif %endif
%{!?python_sitearch: %global python_sitearch %(python -c
"from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description %description
This Python 2.4+ extension module allows you to manipulate the POSIX.1e Access 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). top of the systems's acl C library - see acl(5).
%prep %prep
%setup -q -n %{prjname}-%{version} %setup -q -n pylibacl-%{version}
%build %build
CFLAGS="%{optflags}" python setup.py build CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
pushd doc python setup.py build_sphinx
mkdir -p ../html _build/doctrees
sphinx-build -b html -d _build/doctrees . ../html
rm ../html/.buildinfo
popd
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
@@ -78,7 +70,7 @@ python setup.py test
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%doc html %doc build/sphinx/html
%changelog %changelog