python-pycparser/python-pycparser.spec

89 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-pycparser
Version: 2.21
Release: 4mamba
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.org/project/pycparser/
Source: https://pypi.debian.net/pycparser/pycparser-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%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)
%dir %{python_sitearch}/pycparser-%{version}-*.egg-info
%{python_sitearch}/pycparser-%{version}-*.egg-info/*
%doc LICENSE
%changelog
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.21-4mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Tue Jul 18 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.21-3mamba
- rebuilt to remove requirement for python 3.9
* Fri Apr 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.21-2mamba
- rebuilt with python 3.10
* Sat Nov 06 2021 Automatic Build System <autodist@mambasoft.it> 2.21-1mamba
- automatic version update by autodist
* Mon Mar 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.20-2mamba
- rebuilt with new python requirements
* Tue Mar 10 2020 Automatic Build System <autodist@mambasoft.it> 2.20-1mamba
- automatic version update by autodist
* Fri Aug 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.19-2mamba
- rebuilt with python3 3.7.4
* Wed Sep 26 2018 Automatic Build System <autodist@mambasoft.it> 2.19-1mamba
- automatic version update by autodist
* Tue Aug 08 2017 Automatic Build System <autodist@mambasoft.it> 2.18-1mamba
- automatic version update by autodist
* 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