diff options
author | Hubert Plociniczak <hubert@lshift.net> | 2009-06-10 13:38:17 +0100 |
---|---|---|
committer | Hubert Plociniczak <hubert@lshift.net> | 2009-06-10 13:38:17 +0100 |
commit | 347d7f4b57e590c310168ea328adaa3d0dd05e6f (patch) | |
tree | 3ec38465b9f15ca883dbceeddf59287d5ab72cc8 | |
parent | 5124295175d7ef18fff5c48b39d62e290b2dea41 (diff) | |
download | rabbitmq-server-bug20801.tar.gz |
Use dist macro for building correct distribution versions.bug20801
-rw-r--r-- | packaging/RPMS/Fedora/Makefile | 6 | ||||
-rw-r--r-- | packaging/RPMS/Fedora/rabbitmq-server.spec | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/packaging/RPMS/Fedora/Makefile b/packaging/RPMS/Fedora/Makefile index 9fe91b98..c74d4533 100644 --- a/packaging/RPMS/Fedora/Makefile +++ b/packaging/RPMS/Fedora/Makefile @@ -13,12 +13,10 @@ endif ifeq "x$(RPM_OS)" "xsuse" REQUIRES=/sbin/chkconfig /sbin/service -OS_DEFINES=--define '_initrddir /etc/init.d' -RELEASE_OS=.suse +OS_DEFINES=--define '_initrddir /etc/init.d' --define 'dist .suse' else REQUIRES=chkconfig initscripts OS_DEFINES=--define '_initrddir /etc/rc.d/init.d' -RELEASE_OS= endif rpms: clean server @@ -27,7 +25,7 @@ prepare: mkdir -p BUILD SOURCES SPECS SRPMS RPMS tmp cp $(TOP_DIR)/$(TARBALL) SOURCES cp rabbitmq-server.spec SPECS - sed -i 's|%%VERSION%%|$(VERSION)|;s|%%REQUIRES%%|$(REQUIRES)|;s|%%RELEASE_OS%%|$(RELEASE_OS)|' \ + sed -i 's|%%VERSION%%|$(VERSION)|;s|%%REQUIRES%%|$(REQUIRES)|' \ SPECS/rabbitmq-server.spec cp init.d SOURCES/rabbitmq-server.init diff --git a/packaging/RPMS/Fedora/rabbitmq-server.spec b/packaging/RPMS/Fedora/rabbitmq-server.spec index 3c3be609..875381e8 100644 --- a/packaging/RPMS/Fedora/rabbitmq-server.spec +++ b/packaging/RPMS/Fedora/rabbitmq-server.spec @@ -2,7 +2,7 @@ Name: rabbitmq-server Version: %%VERSION%% -Release: 1%%RELEASE_OS%% +Release: 1%{?dist} License: MPLv1.1 Group: Development/Libraries Source: http://www.rabbitmq.com/releases/rabbitmq-server/v%{version}/%{name}-%{version}.tar.gz |