[Libosinfo] [PATCH v2 3/3] spec: Drop %{extra_release}

Andrea Bolognani abologna at redhat.com
Mon May 7 14:51:26 UTC 2018


It was mainly meant to be used for automatic builds through
Test::AutoBuild, so it can be removed now.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 libosinfo.spec.in       | 2 +-
 mingw-libosinfo.spec.in | 2 +-
 prepare-release.sh      | 5 -----
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/libosinfo.spec.in b/libosinfo.spec.in
index f3e3690..0acc3a7 100644
--- a/libosinfo.spec.in
+++ b/libosinfo.spec.in
@@ -3,7 +3,7 @@
 Summary: A library for managing OS information for virtualization
 Name: libosinfo
 Version: @VERSION@
-Release: 1%{?dist}%{?extra_release}
+Release: 1%{?dist}
 License: LGPLv2+
 Group: Development/Libraries
 Source: https://releases.pagure.io/%{name}/%{name}-%{version}.tar.gz
diff --git a/mingw-libosinfo.spec.in b/mingw-libosinfo.spec.in
index 526d65a..dbde214 100644
--- a/mingw-libosinfo.spec.in
+++ b/mingw-libosinfo.spec.in
@@ -2,7 +2,7 @@
 
 Name: mingw-libosinfo
 Version: @VERSION@
-Release: 1%{?dist}%{?extra_release}
+Release: 1%{?dist}
 Summary: MinGW Windows port of a library for managing OS information for virtualization
 License: LGPLv2+
 Group: Development/Libraries
diff --git a/prepare-release.sh b/prepare-release.sh
index 30aac2a..f1fe696 100755
--- a/prepare-release.sh
+++ b/prepare-release.sh
@@ -43,12 +43,8 @@ test "$st" = 0
 rm -f *.tar.gz
 make dist
 
-NOW=`date +"%s"`
-EXTRA_RELEASE=".$USER$NOW"
-
 if [ -f /usr/bin/rpmbuild ]; then
   rpmbuild --nodeps \
-     --define "extra_release $EXTRA_RELEASE" \
      --define "_sourcedir `pwd`" \
      -ba --clean libosinfo.spec
 fi
@@ -94,7 +90,6 @@ fi
 if test -x /usr/bin/i686-w64-mingw32-gcc && test -x /usr/bin/x86_64-w64-mingw32-gcc ; then
   if test -f /usr/bin/rpmbuild ; then
     rpmbuild --nodeps \
-       --define "extra_release $EXTRA_RELEASE" \
        --define "_sourcedir `pwd`" \
        -ba --clean mingw-libosinfo.spec
   fi
-- 
2.17.0




More information about the Libosinfo mailing list