2024-01-05 16:48:23 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-05 16:48:23 +01:00
|
|
|
Name: python-twitter
|
2024-01-05 16:48:23 +01:00
|
|
|
Version: 1.19.6
|
2024-01-05 16:48:24 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 16:48:23 +01:00
|
|
|
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>
|
2024-01-05 16:48:23 +01:00
|
|
|
URL: https://pypi.org/project/twitter/
|
|
|
|
Source: https://pypi.debian.net/twitter/twitter-%{version}.tar.gz
|
2024-01-05 16:48:23 +01:00
|
|
|
#Patch0: %{name}-<pck-version>-<patch-description>.patch
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:48:24 +01:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(certifi)
|
|
|
|
BuildRequires: python3.11dist(setuptools)
|
2024-01-05 16:48:23 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:48:24 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-05 16:48:23 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
An API and command-line toolset for Twitter (twitter.com).
|
|
|
|
|
2024-01-05 16:48:23 +01:00
|
|
|
%if 0%{?with_pyver}
|
2024-01-05 16:48:24 +01:00
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-twitter < 1.19.6-2mamba
|
2024-01-05 16:48:23 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:48:23 +01:00
|
|
|
%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
|
|
|
|
|
2024-01-05 16:48:24 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-05 16:48:23 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 16:48:23 +01:00
|
|
|
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
|
|
|
|
%doc LICENSE
|
2024-01-05 16:48:23 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:48:24 +01:00
|
|
|
* Sun Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19.6-2mamba
|
|
|
|
- rebuilt with python3 == 3.11
|
|
|
|
|
2024-01-05 16:48:23 +01:00
|
|
|
* Sat Oct 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19.6-1mamba
|
|
|
|
- update to 1.19.6
|
|
|
|
|
2024-01-05 16:48:23 +01:00
|
|
|
* 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
|