[gerrymander/f21] Update the sources file correctly

kashyap chamarthy kashyapc at fedoraproject.org
Mon Oct 20 19:52:16 UTC 2014


commit 3427d45feef402990dd92c30988647ae759ac2e3
Author: Kashyap Chamarthy <kchamart at redhat.com>
Date:   Mon Oct 20 21:43:06 2014 +0200

    Update the sources file correctly

 .gitignore       |    1 +
 gerrymander.spec |   92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    3 +-
 3 files changed, 94 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 35de29e..06335a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /gerrymander-1.3.tar.gz
 /gerrymander.spec
+/v1.3.tar.gz
diff --git a/gerrymander.spec b/gerrymander.spec
new file mode 100644
index 0000000..e86eb75
--- /dev/null
+++ b/gerrymander.spec
@@ -0,0 +1,92 @@
+
+Summary:       The gerrit client tools
+Name:          gerrymander
+Version:       1.3
+Release:       4%{?dist}
+Source0:       https://github.com/berrange/%{name}/archive/v%{version}.tar.gz
+URL:           http://github.com/berrange/gerrymander
+License:       ASL 2.0
+Group:         Development/Libraries
+
+BuildArch:     noarch
+BuildRequires: python2-devel
+BuildRequires: python-nose
+
+BuildRequires: python3-nose
+BuildRequires: python3-devel
+Requires:      python3-gerrymander
+
+%package -n python-gerrymander
+Summary: The gerrit python2 client
+License: GPLv2+
+Group: Development/Libraries
+
+%package -n python3-gerrymander
+Summary: The gerrit python3 client
+License: GPLv2+
+Group: Development/Libraries
+
+%description
+The gerrymander package provides a set of command line tools
+for interacting with Gerrit
+
+%description -n python-gerrymander
+The python2-gerrymander package provides a set of python2
+modules for interacting with Gerrit.
+
+%description -n python3-gerrymander
+The python3-gerrymander package provides a set of python3
+modules for interacting with Gerrit.
+
+%prep
+%setup -q
+
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+
+# Remove any egg info (as of submitting this review, there's no bundled
+# egg info)
+rm -rf *.egg-info
+
+%build
+%{__python2} setup.py build
+
+%{__python3} setup.py build
+
+%install
+%{__python2} setup.py install --skip-build --root=%{buildroot}
+
+%{__python3} setup.py install --skip-build --root=%{buildroot}
+
+%check
+%{__python2} setup.py test
+
+%{__python3} setup.py test
+
+%files
+%doc conf/gerrymander.conf-example
+%{_bindir}/gerrymander
+
+%files -n python-gerrymander
+%doc README LICENSE
+%{python2_sitelib}/gerrymander/
+%{python2_sitelib}/%{name}-%{version}-py2.7.egg-info
+
+%files -n python3-gerrymander
+%doc README LICENSE
+%{python3_sitelib}/gerrymander/
+%{python3_sitelib}/%{name}-%{version}-py3.*.egg-info
+
+%changelog
+* Wed Aug 20 2014 Kashyap Chamarthy <kashyapc at fedoraproject.org> - 1.3.4
+- Remove with_python3 conditional, as current Fedora releases have it
+
+* Tue Aug 19 2014 Kashyap Chamarthy <kashyapc at fedoraproject.org> - 1.3.3
+- Update %%files section correctly
+
+* Mon Aug 18 2014 Kashyap Chamarthy <kashyapc at fedoraproject.org> - 1.3.2
+- Address review comments from rhbz# 1128253
+
+* Tue Aug 05 2014 Kashyap Chamarthy <kashyapc at fedoraproject.org> - 1.3-1
+- Initial package
diff --git a/sources b/sources
index 099f2be..7b4117d 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-4636d5c6d57b41513ed0485362e0a019  gerrymander-1.3.tar.gz
-5cce3b2c8ed30132c69d144172e84afd  gerrymander.spec
+4636d5c6d57b41513ed0485362e0a019  v1.3.tar.gz


More information about the scm-commits mailing list