[glassfish-jsp] Fix license tag

Mikolaj Izdebski mizdebsk at fedoraproject.org
Tue Sep 4 16:40:43 UTC 2012


commit effa2f16470b10e98687b8035cf5d28054edf4e8
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Tue Sep 4 18:38:55 2012 +0200

    Fix license tag
    
    - Install license files

 glassfish-jsp.spec |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/glassfish-jsp.spec b/glassfish-jsp.spec
index 3daab0e..bbbf085 100644
--- a/glassfish-jsp.spec
+++ b/glassfish-jsp.spec
@@ -4,16 +4,18 @@
 
 Name:       glassfish-jsp
 Version:    2.2.6
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    Glassfish J2EE JSP API implementation
 
 Group:      Development/Libraries
-License:    CDDL and GPLv2 with exceptions
+License:    (CDDL or GPLv2 with exceptions) and ASL 2.0
 URL:        http://glassfish.org
 Source0:    %{artifactId}-%{version}.tar.xz
 # no source releases, but this will generate tarball for you from an
 # SVN tag
 Source1:    generate_tarball.sh
+Source2:    http://www.apache.org/licenses/LICENSE-2.0.txt
+Source3:    http://hub.opensolaris.org/bin/download/Main/licensing/cddllicense.txt
 
 Patch0:     %{name}-build-eclipse-compilers.patch
 
@@ -65,6 +67,8 @@ Requires:   jpackage-utils
 %prep
 %setup -q -n %{artifactId}-%{version}
 %patch0
+cp -p %{SOURCE2} LICENSE
+cp -p %{SOURCE3} cddllicense.txt
 
 %build
 mvn-rpmbuild install javadoc:javadoc
@@ -87,15 +91,21 @@ install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
 %add_maven_depmap -a "javax.servlet:jsp-api"
 
 %files
+%doc LICENSE cddllicense.txt
 %{_javadir}/%{name}.jar
 %{_mavendepmapfragdir}/%{name}
 %{_mavenpomdir}/JPP-%{name}.pom
 
 %files javadoc
+%doc LICENSE cddllicense.txt
 %{_javadocdir}/%{name}
 
 
 %changelog
+* Tue Sep  4 2012 Mikolaj Izdebski <mizdebsk at redhat.com> - 2.2.6-3
+- Fix license tag
+- Install license files
+
 * Thu Aug 30 2012 Krzysztof Daniel <kdaniel at redhat.com> 2.2.6-2
 - Build Eclipse compiler adapters.
 


More information about the scm-commits mailing list