From b782a31206af2d403ea063bdde42f3c5cfd36256 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 22 May 2018 11:07:59 +0200 Subject: [PATCH] nicer Source0 format Version: 1.0.0~beta.2-4 --- .gitignore | 2 +- ongres-scram.spec | 14 +++++++++----- sources | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 121cc1f..8ad838a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/1.0.0-beta.2.tar.gz +/scram-1.0.0-beta.2.tar.gz diff --git a/ongres-scram.spec b/ongres-scram.spec index 8d2ab6e..7807d93 100644 --- a/ongres-scram.spec +++ b/ongres-scram.spec @@ -1,10 +1,13 @@ -Name: ongres-scram -Version: 1.0.0~beta.2 +%global upstream_name scram +%global upstream_version 1.0.0-beta.2 + +Name: ongres-%upstream_name +Version: %(echo %upstream_version | sed 's/-/~/g') Release: 4%{?dist} Summary: Salted Challenge Response Authentication Mechanism (SCRAM) - Java Implementation License: BSD -URL: https://github.com/ongres/scram -Source0: https://github.com/ongres/scram/archive/1.0.0-beta.2.tar.gz +URL: https://github.com/ongres/%upstream_name +Source0: https://github.com/ongres/%upstream_name/archive/%upstream_version/%upstream_name-%upstream_version.tar.gz BuildRequires: maven-local BuildArch: noarch BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin) @@ -34,7 +37,7 @@ Summary: Parent POM of %{name} This package contains the %{name} parent POM. %prep -%setup -q -n scram-1.0.0-beta.2 +%autosetup -p1 find \( -name '*.jar' -o -name '*.class' \) -delete %pom_remove_plugin :nexus-staging-maven-plugin %pom_remove_plugin :maven-source-plugin @@ -61,6 +64,7 @@ find \( -name '*.jar' -o -name '*.class' \) -delete %changelog * Tue May 22 2018 Pavel Raiskup - 1.0.0~beta.2-4 - BR javadoc maven plugin explicitly +- use nicer Source0 format * Thu Feb 08 2018 Fedora Release Engineering - 1.0.0~beta.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index 1ca79e9..8cd6a57 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (1.0.0-beta.2.tar.gz) = 85cfad335712e187c41343aa3029074596075e28fa037f6f0965a7b9062d23b807dfc0bd71fdd835babd89699705e9bcf0e1f7dad4bcfd685f0f96debc0fab6d +SHA512 (scram-1.0.0-beta.2.tar.gz) = 85cfad335712e187c41343aa3029074596075e28fa037f6f0965a7b9062d23b807dfc0bd71fdd835babd89699705e9bcf0e1f7dad4bcfd685f0f96debc0fab6d