[kryo] fix Url and Source0 tag

gil gil at fedoraproject.org
Fri Mar 13 17:00:40 UTC 2015


commit 9eaea0cd8f457f8711f6f6954c20ef86ec5be3df
Author: gil <puntogil at libero.it>
Date:   Fri Mar 13 18:00:33 2015 +0100

    fix Url and Source0 tag

 .gitignore |  1 +
 kryo.spec  | 15 +++++++--------
 sources    |  2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index cfc4bef..c14067c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /kryo-2.21.zip
 /kryo-2.22.zip
+/kryo-2.22.tar.gz
diff --git a/kryo.spec b/kryo.spec
index 58a5a03..18ef547 100644
--- a/kryo.spec
+++ b/kryo.spec
@@ -1,12 +1,11 @@
 Name:          kryo
 Version:       2.22
-Release:       3%{?dist}
+Release:       4%{?dist}
 Summary:       Object graph serialization framework for Java
 # ASL: src/com/esotericsoftware/kryo/util/IdentityMap.java src/com/esotericsoftware/kryo/util/IntMap.java
 License:       ASL 2.0 and BSD
-Url:           http://code.google.com/p/kryo/
-# http://kryo.googlecode.com/svn/tags/kryo-2.22/
-Source0:       http://kryo.googlecode.com/files/%{name}-%{version}.zip
+Url:           https://github.com/EsotericSoftware/kryo
+Source0:       https://github.com/EsotericSoftware/kryo/archive/%{name}-%{version}.tar.gz
 Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt
 
 BuildRequires: mvn(com.esotericsoftware.minlog:minlog)
@@ -37,12 +36,10 @@ Summary:       Javadoc for %{name}
 This package contains javadoc for %{name}.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{name}-%{version}
 find . -name "*.class" -delete
 find . -name "*.jar" -delete
-rm -rf jars javadoc
 
-mv java/* .
 %pom_remove_plugin :maven-shade-plugin
 %pom_remove_plugin :maven-bundle-plugin
 %pom_add_plugin org.apache.felix:maven-bundle-plugin . "
@@ -54,7 +51,6 @@ mv java/* .
 </instructions>
 </configuration>"
 
-sed -i "s|<version>%{version}-SNAPSHOT</version>|<version>%{version}</version>|" pom.xml
 # remove shaded classifier
 %pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:artifactId = 'reflectasm']/pom:classifier"
 
@@ -78,6 +74,9 @@ sed -i 's/\r//' license.txt LICENSE-2.0.txt
 %license license.txt LICENSE-2.0.txt
 
 %changelog
+* Fri Mar 13 2015 gil cattaneo <puntogil at libero.it> 2.22-4
+- fix Url and Source0 tag
+
 * Mon Feb 09 2015 gil cattaneo <puntogil at libero.it> 2.22-3
 - introduce license macro
 
diff --git a/sources b/sources
index 3838721..9bdc666 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e3ab19644f29d435effcb8addb93a825  kryo-2.22.zip
+4909018fa015db05f3da2b08152026e4  kryo-2.22.tar.gz


More information about the scm-commits mailing list