python-pycparser/python-pycparser.spec

62 lines
1.8 KiB
RPMSpec

Name: python-pycparser
Version: 2.17
Release: 1mamba
Summary: A parser for the C language, written in pure Python
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.python.org/pypi/pycparser
Source: https://pypi.debian.net/pycparser/pycparser-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
## note: run 'autospec -u -a6 python-pycparser' to get the list of build requirements.
## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
%if "%{?with_pyver}"
%pyver_package
%endif
%prep
%setup -q -n pycparser-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
# Fix permmissions of egg-info files
chmod +r %{buildroot}%{python_sitearch}/pycparser-%{version}-*/*
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%doc LICENSE
%changelog
* Sun Oct 30 2016 Automatic Build System <autodist@mambasoft.it> 2.17-1mamba
- automatic version update by autodist
* Fri Oct 28 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.16-2mamba
- fixed permissions of egg-info files
* Tue Oct 25 2016 Automatic Build System <autodist@mambasoft.it> 2.16-1mamba
- automatic version update by autodist
* Tue Jun 23 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.14-1mamba
- package created using the webbuild interface