public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-futurist] noevent: Initial import (#1243052)
@ 2026-06-07 15:59 Javier Pena
  0 siblings, 0 replies; only message in thread
From: Javier Pena @ 2026-06-07 15:59 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-futurist
Branch : noevent
Commit : 5637137db1629bbc387f0c081b45189d9e6019b1
Author : Javier Pena <jpena@redhat.com>
Date   : 2015-09-10T16:01:42+02:00
Stats  : +145/-0 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-futurist/c/5637137db1629bbc387f0c081b45189d9e6019b1?branch=noevent

Log:
Initial import (#1243052)

---
diff --git a/.gitignore b/.gitignore
index e69de29..59fe830 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/futurist-0.4.0.tar.gz

diff --git a/python-futurist.spec b/python-futurist.spec
new file mode 100644
index 0000000..99be232
--- /dev/null
+++ b/python-futurist.spec
@@ -0,0 +1,143 @@
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
+%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
+
+%global pypi_name futurist
+
+Name:           python-%{pypi_name}
+Version:        0.4.0
+Release:        3%{?dist}
+Summary:        Useful additions to futures, from the future
+
+License:        ASL 2.0
+URL:            http://docs.openstack.org/developer/futurist
+Source0:        https://pypi.python.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+%package -n python2-%{pypi_name}
+Summary:        Useful additions to futures, from the future
+%{?python_provide:%python_provide python2-%{pypi_name}}
+
+BuildRequires:  python2-devel
+BuildRequires:  python-pbr
+BuildRequires:  python-sphinx
+BuildRequires:  python-oslo-sphinx
+BuildRequires:  python-futures
+BuildRequires:  python-monotonic
+BuildRequires:  python-contextlib2
+BuildRequires:  python-setuptools
+BuildRequires:  python-six
+
+Requires:       python-six >= 1.9.0
+Requires:       python-monotonic
+Requires:       python-futures >= 3.0
+Requires:       python-contextlib2 >= 0.4.0
+
+%description -n python2-%{pypi_name}
+Code from the future, delivered to you in the now.
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary:        Useful additions to futures, from the future
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+BuildRequires:  python3-devel
+BuildRequires:  python3-pbr
+BuildRequires:  python3-sphinx
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-six
+
+Requires:       python3-six >= 1.9.0
+Requires:       python3-monotonic
+Requires:       python3-contextlib2 >= 0.4.0
+
+%description -n python3-%{pypi_name}
+Code from the future, delivered to you in the now.
+%endif
+
+%description
+========
+Futurist
+========
+
+Code from the future, delivered to you in the now.
+
+%prep
+%setup -qc
+
+mv %{pypi_name}-%{upstream_version} python2
+pushd python2
+# copy LICENSE etc. to top level dir
+cp -a LICENSE ..
+cp -a README.rst ..
+popd
+
+%if 0%{?with_python3}
+cp -a python2 python3
+%endif
+
+%build
+pushd python2
+%{__python2} setup.py build
+# generate html docs
+sphinx-build doc/source html
+# remove the sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo}
+# Copy doc to top level dir
+cp -a html ..
+popd
+
+%if 0%{?with_python3}
+pushd python3
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+pushd python2
+%{__python2} setup.py install --skip-build --root %{buildroot}
+popd
+
+%if 0%{?with_python3}
+pushd python3
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif
+
+%files -n python2-%{pypi_name}
+%doc html README.rst
+%license LICENSE
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc html README.rst
+%license LICENSE
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%endif
+
+%changelog
+* Mon Sep 7 2015  jpena <jpena@redhat.com> - 0.4.0-3
+- Drop fallback python_sitelib macro
+- Fix file listing
+* Tue Aug 27 2015 jpena <jpena@redhat.com> - 0.4.0-2
+- Fix requires and buildrequires for python2 subpackage
+- Fixed fedora macro
+- Improved file listing
+* Tue Aug 25 2015 jpena <jpena@redhat.com> - 0.4.0-1
+- Bump to upstream version 0.4.0
+* Thu Aug 13 2015 jpena <jpena@redhat.com> - 0.1.1-5
+- Comply with updated Python packaging guidelines (II)
+- Add python-six and python-setuptools to BuildRequirements
+* Thu Aug 13 2015 jpena <jpena@redhat.com> - 0.1.1-4
+- Comply with updated Python packaging guidelines
+* Mon Aug 10 2015 jpena <jpena@redhat.com> - 0.1.1-3
+- Moved sphinx-build to build step
+* Fri Jul 24 2015 jpena <jpena@redhat.com> - 0.1.1-2
+- Removed absolute python_sitelib paths
+* Tue Jul 14 2015 jpena <jpena@redhat.com> - 0.1.1-1
+- Initial package.

diff --git a/sources b/sources
index e69de29..0588aab 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+118ce92f6dcd68aea6709526c05cda11  futurist-0.4.0.tar.gz

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-07 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-07 15:59 [rpms/python-futurist] noevent: Initial import (#1243052) Javier Pena

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox