python-twitter/python-twitter.spec

84 lines
2.6 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-twitter
Version: 1.19.6
Release: 2mamba
Summary: An API and command-line toolset for Twitter (twitter.com)
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/twitter/
Source: https://pypi.debian.net/twitter/twitter-%{version}.tar.gz
#Patch0: %{name}-<pck-version>-<patch-description>.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(certifi)
BuildRequires: python3.11dist(setuptools)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
An API and command-line toolset for Twitter (twitter.com).
%if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-twitter < 1.19.6-2mamba
%pyver_package
%endif
%prep
%setup -q -n twitter-%{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
%changelog
* Sun Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19.6-2mamba
- rebuilt with python3 == 3.11
* Sat Oct 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19.6-1mamba
- update to 1.19.6
* Fri Nov 22 2013 Automatic Build System <autodist@mambasoft.it> 1.10.2-1mamba
- automatic update by autodist
* Fri Jun 28 2013 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic version update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.4-1mamba
- python 2.7 mass rebuild
* Mon Mar 25 2013 Automatic Build System <autodist@mambasoft.it> 1.9.2-1mamba
- automatic version update by autodist
* Wed Feb 20 2013 Automatic Build System <autodist@mambasoft.it> 1.9.1-1mamba
- automatic version update by autodist
* Fri Aug 10 2012 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
- automatic version update by autodist
* Mon Apr 16 2012 Automatic Build System <autodist@mambasoft.it> 1.7.2-1mamba
- automatic version update by autodist
* Tue Apr 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.1-1mamba
- package created by autospec