diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-09-01 13:10:54 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-09-01 14:06:29 +0200 |
commit | 3a756b212f6be1e03c1af0982925a4e310e94c42 (patch) | |
tree | 2d806c506cba2c7136446fff79ec40a1d7f0013d | |
parent | 915ac8ef74f9117260ae35ae1c3bfa0062e0cfe4 (diff) | |
download | hyperkitty-3a756b212f6be1e03c1af0982925a4e310e94c42.tar.gz hyperkitty-3a756b212f6be1e03c1af0982925a4e310e94c42.tar.xz hyperkitty-3a756b212f6be1e03c1af0982925a4e310e94c42.zip |
Modify the spec file to handle prereleases
-rw-r--r-- | hyperkitty.spec | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/hyperkitty.spec b/hyperkitty.spec index 45d9240..8a9b3ee 100644 --- a/hyperkitty.spec +++ b/hyperkitty.spec @@ -1,19 +1,20 @@ %global pypi_name HyperKitty +%global prerel 1 Name: hyperkitty Version: 0.1.7 -Release: 0.1%{?dist} +Release: %{?prerel:0.}1%{?dist} Summary: A web interface to access GNU Mailman v3 archives License: GPLv3 URL: https://fedorahosted.org/hyperkitty/ -Source0: http://pypi.python.org/packages/source/H/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: http://pypi.python.org/packages/source/H/%{pypi_name}/%{pypi_name}-%{version}%{?prerel:dev}.tar.gz # To get SOURCE1: # git clone https://github.com/hyperkitty/hyperkitty_standalone.git # make sdist -C hyperkitty_standalone # mv hyperkitty_standalone/dist/hyperkitty_standalone-%{version}.tar.gz . -Source1: hyperkitty_standalone-%{version}.tar.gz +Source1: hyperkitty_standalone-%{version}%{?prerel:dev}.tar.gz BuildArch: noarch @@ -71,10 +72,10 @@ The code is available from: https://github.com/hyperkitty/hyperkitty . The documentation can be browsed online at https://hyperkitty.readthedocs.org . %prep -%setup -q -n %{pypi_name}-%{version} -a 1 +%setup -q -n %{pypi_name}-%{version}%{?prerel:dev} -a 1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info -mv hyperkitty_standalone-%{version} hyperkitty_standalone +mv hyperkitty_standalone-%{version}%{?prerel:dev} hyperkitty_standalone # remove shebang on manage.py sed -i -e '1d' hyperkitty_standalone/manage.py # remove executable permissions on wsgi.py @@ -146,7 +147,7 @@ rm -f hyperkitty_standalone/__init__.py %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/%{name}/sites/default/settings.py %config(noreplace) %{_sysconfdir}/httpd/conf.d/hyperkitty.conf %{python_sitelib}/%{name} -%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python_sitelib}/%{pypi_name}-%{version}%{?prerel:dev}-py?.?.egg-info %dir %{_localstatedir}/lib/%{name} %dir %{_localstatedir}/lib/%{name}/sites %dir %{_localstatedir}/lib/%{name}/sites/default |