[java-xmlbuilder] introduce license macro

gil gil at fedoraproject.org
Fri Feb 6 15:19:24 UTC 2015


commit a68b2b5a5ce9f3a270a992ce4eede1b05571e24e
Author: gil <puntogil at libero.it>
Date:   Fri Feb 6 16:19:04 2015 +0100

    introduce license macro

 java-xmlbuilder.spec |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/java-xmlbuilder.spec b/java-xmlbuilder.spec
index 2b74cb9..d0376ec 100644
--- a/java-xmlbuilder.spec
+++ b/java-xmlbuilder.spec
@@ -1,6 +1,6 @@
 Name:          java-xmlbuilder
 Version:       0.6
-Release:       4%{?dist}
+Release:       5%{?dist}
 Summary:       XML Builder Java library for creating XML documents
 License:       ASL 2.0
 Url:           http://code.google.com/p/java-xmlbuilder/
@@ -10,16 +10,13 @@ Source0:       %{name}-%{version}-src-svn.tar.gz
 # remove newline (\n) character
 Patch0:        %{name}-0.6-fix-test.patch
 
-BuildRequires: java-devel
 BuildRequires: sonatype-oss-parent
-
 BuildRequires: base64
 # test deps
 BuildRequires: junit
 
 BuildRequires: maven-local
 BuildRequires: maven-enforcer-plugin
-BuildRequires: maven-surefire-provider-junit
 
 BuildArch:     noarch
 
@@ -55,21 +52,25 @@ This package contains javadoc for %{name}.
 # Fix CRLF
 sed -i 's/\r//' LICENSE-2.0.txt
 
+%mvn_file :%{name} %{name}
+
 %build
 
-%mvn_file :%{name} %{name}
 %mvn_build
 
 %install
 %mvn_install
 
 %files -f .mfiles
-%doc LICENSE-2.0.txt
+%license LICENSE-2.0.txt
 
 %files javadoc -f .mfiles-javadoc
-%doc LICENSE-2.0.txt
+%license LICENSE-2.0.txt
 
 %changelog
+* Fri Feb 06 2015 gil cattaneo <puntogil at libero.it> 0.6-5
+- introduce license macro
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
@@ -87,4 +88,4 @@ sed -i 's/\r//' LICENSE-2.0.txt
 - install upstream license and notice files
 
 * Mon Jul 02 2012 gil cattaneo <puntogil at libero.it> 0.4-1
-- initial rpm
\ No newline at end of file
+- initial rpm


More information about the scm-commits mailing list