[python-gearbox] Fix the pre-release version to adhere to the guidelines
Luke Macken
lmacken at fedoraproject.org
Thu Apr 4 21:50:51 UTC 2013
commit 03a5f616b84b49b008e3d567d4a9c26452b43903
Author: Luke Macken <lmacken at redhat.com>
Date: Thu Apr 4 17:50:32 2013 -0400
Fix the pre-release version to adhere to the guidelines
python-gearbox.spec | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/python-gearbox.spec b/python-gearbox.spec
index fdf9af9..831a282 100644
--- a/python-gearbox.spec
+++ b/python-gearbox.spec
@@ -3,16 +3,17 @@
%endif
%global modname gearbox
+%global prerelease a
Name: python-gearbox
-Version: 0.0.1a
-Release: 1%{?dist}
+Version: 0.0.1
+Release: 0.1.%{prerelease}%{?dist}
Summary: Command line toolkit born as a PasteScript replacement for TurboGears2
Group: Development/Libraries
License: MIT
URL: http://pypi.python.org/pypi/gearbox
-Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz
+Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}%{prerelease}.tar.gz
BuildArch: noarch
@@ -56,7 +57,7 @@ TurboGears projects.
%prep
-%setup -q -n %{modname}-%{version}
+%setup -q -n %{modname}-%{version}%{prerelease}
# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info
@@ -88,15 +89,15 @@ popd
%doc README.rst
%{_bindir}/gearbox
%{python_sitelib}/%{modname}/
-%{python_sitelib}/%{modname}-%{version}*
+%{python_sitelib}/%{modname}-%{version}%{prerelease}-*
%if 0%{?with_python3}
%files -n python3-gearbox
%doc README.rst
%{python3_sitelib}/%{modname}/
-%{python3_sitelib}/%{modname}-%{version}-*
+%{python3_sitelib}/%{modname}-%{version}%{prerelease}-*
%endif
%changelog
-* Wed Apr 03 2013 Luke Macken <lmacken at redhat.com> 0.0.1a-1
+* Wed Apr 03 2013 Luke Macken <lmacken at redhat.com> 0.0.1-0.1.a
- Initial package for Fedora
More information about the scm-commits
mailing list