[littleproxy] introduce license macro

gil gil at fedoraproject.org
Tue Feb 10 16:28:25 UTC 2015


commit 2a032794709c3af94cbeaa705c900dcede5e2ff4
Author: gil <puntogil at libero.it>
Date:   Tue Feb 10 17:28:02 2015 +0100

    introduce license macro

 littleproxy.spec |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/littleproxy.spec b/littleproxy.spec
index 3ca44d5..b5b665e 100644
--- a/littleproxy.spec
+++ b/littleproxy.spec
@@ -1,6 +1,6 @@
 Name:          littleproxy
 Version:       0.4
-Release:       8%{?dist}
+Release:       9%{?dist}
 Summary:       High Performance HTTP Proxy
 License:       ASL 2.0
 URL:           http://www.littleshoot.org/littleproxy/
@@ -10,9 +10,7 @@ Source0:       %{name}-%{version}-src-git.tar.xz
 # add netty 3.5.x support
 Patch0:        %{name}-%{version}-netty35.patch
 
-BuildRequires: java-devel
 BuildRequires: sonatype-oss-parent
-
 BuildRequires: apache-commons-codec
 BuildRequires: apache-commons-io
 BuildRequires: apache-commons-lang
@@ -53,21 +51,25 @@ This package contains javadoc for %{name}.
 %pom_xpath_remove "pom:build/pom:extensions"
 %pom_xpath_set "pom:dependencies/pom:dependency[pom:artifactId = 'netty']/pom:version" 3
 
+%mvn_file :%{name} %{name}
+
 %build
 
-%mvn_file :%{name} %{name}
 %mvn_build
 
 %install
 %mvn_install
 
 %files -f .mfiles
-%doc COPYRIGHT.txt LICENSE.txt
+%license COPYRIGHT.txt LICENSE.txt
 
 %files javadoc -f .mfiles-javadoc
-%doc COPYRIGHT.txt LICENSE.txt
+%license COPYRIGHT.txt LICENSE.txt
 
 %changelog
+* Tue Feb 10 2015 gil cattaneo <puntogil at libero.it> 0.4-9
+- introduce license macro
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
@@ -92,4 +94,4 @@ This package contains javadoc for %{name}.
 - Adapted for f17, added PATCH1
 
 * Sun Aug 05 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