%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-vobject Version: 0.9.7 Release: 1mamba Summary: A Python iCalendar library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://vobject.skyhouseconsulting.com/ Source: https://pypi.debian.net/vobject/vobject-%{version}.tar.gz License: Apache License 2.0 ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel BuildRequires: python3.11dist(python-dateutil) BuildRequires: python3.11dist(setuptools) ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba BuildRequires: libpython-devel Requires: python >= %python_version %description vobject is intended to be a full featured Python package for parsing and generating vCard and vCalendar files. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n vobject-%{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} \ --single-version-externally-managed \ --record=%{name}.filelist sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %doc LICENSE-2.0.txt %changelog * Tue Mar 26 2024 Automatic Build System 0.9.7-1mamba - automatic version update by autodist * Wed Sep 27 2023 Automatic Build System 0.9.6.1-3mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba * Wed Aug 10 2022 Silvan Calarco 0.9.6.1-2mamba - rebuilt for python3 and with distdeps * Fri Sep 07 2018 Silvan Calarco 0.9.6.1-1mamba - update to 0.9.6.1 * Fri May 17 2013 Silvan Calarco 0.8.1c-2mamba - python 2.7 mass rebuild * Mon Jul 25 2011 Silvan Calarco 0.8.1c-1mamba - package created by autospec