summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2019-09-25 17:29:55 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2019-09-25 17:30:09 +0000
commit388be9d6685403f729028d90f64000c8e3ecde4e (patch)
tree0a5c5060ae024de669b0a36e24c2c4fd1f4d4e4a
parentd18f46dbed20a3436f1477a876f507e8684f7f99 (diff)
Initial packagingHEADmaster
Change-Id: I6494b6b53f51b1f13fb1d18eb54670eb9a85768a
-rw-r--r--python-gerritlib.spec94
1 files changed, 94 insertions, 0 deletions
diff --git a/python-gerritlib.spec b/python-gerritlib.spec
new file mode 100644
index 0000000..27c2988
--- /dev/null
+++ b/python-gerritlib.spec
@@ -0,0 +1,94 @@
+%global pypi_name gerritlib
+%global desc A Python library for interacting with Gerrit
+
+Name: python3-%{pypi_name}
+Version: 0.6.0
+Release: 9%{?dist}
+Summary: Client library for accessing Gerrit
+License: ASL 2.0
+URL: https://pypi.python.org/pypi/%{pypi_name}
+Source0: https://files.pythonhosted.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pbr
+BuildRequires: python3-paramiko
+
+%description
+%{desc}
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+sed -i 's/\r//' LICENSE
+
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+# We handle requirements ourselves, remove requirements.txt
+rm -rf requirements.txt test-requirements.txt
+
+%build
+%{__python3} setup.py build
+
+%install
+%{__python3} setup.py install --skip-build --root %{buildroot}
+
+%files -n python3-%{pypi_name}
+%doc README.rst AUTHORS ChangeLog
+%license LICENSE
+%{python3_sitelib}/*.egg-info
+%{python3_sitelib}/%{pypi_name}
+
+%changelog
+* Thu Sep 26 2019 Tristan Cacqueray <tdecacqu@redhat.com> - 0.6.0-9
+- Switch to python3
+
+* Mon Dec 18 2017 Tristan Cacqueray <tdecacqu@redhat.com> - 0.6.0-8
+- Switch requirement to python-paramiko instead of python2-paramiko
+
+* Mon Feb 28 2017 Matthieu Huin <mhuin@redhat.com> - 0.6.0-7
+- Do not use EPEL macros
+
+* Mon Feb 27 2017 Matthieu Huin <mhuin@redhat.com> - 0.6.0-6
+- Add python rpm macros
+
+* Mon Feb 27 2017 Matthieu Huin <mhuin@redhat.com> - 0.6.0-5
+- Force rebuild
+
+* Fri Feb 24 2017 Matthieu Huin <mhuin@redhat.com> - 0.6.0-4
+- Lightweight packaging for Software Factory
+
+* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.6.0-2
+- Rebuild for Python 3.6
+
+* Fri Aug 26 2016 Lumir Balhar <lbalhar@redhat.com> - 0.6.0-1
+- New upstream release
+- Modernized specfile
+- New subpackages for each Python version
+
+* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-7
+- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+
+* Tue Feb 25 2014 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 0.3.0-3
+- Add Python2 macros for EPEL
+
+* Tue Feb 25 2014 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 0.3.0-2
+- Use %{__python2} macros instead of %{__python} (this is deprecated)
+
+* Mon Feb 24 2014 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 0.3.0-1
+- Initial package