diff --git a/NOTICE-CC-BY.txt b/NOTICE-CC-BY.txt new file mode 100644 index 0000000..ab3e0dd --- /dev/null +++ b/NOTICE-CC-BY.txt @@ -0,0 +1,4 @@ +Copyright (c) 2005 Brian Goetz +Released under the Creative Commons Attribution License + (http://creativecommons.org/licenses/by/2.5) +Official home: http://www.jcip.net diff --git a/jsr-305.spec b/jsr-305.spec index 731efd4..01ec440 100644 --- a/jsr-305.spec +++ b/jsr-305.spec @@ -1,6 +1,6 @@ Name: jsr-305 Version: 0 -Release: 0.13.20090319svn%{?dist} +Release: 0.14.20090319svn%{?dist} Summary: Correctness annotations for Java code Group: Development/Libraries @@ -15,6 +15,9 @@ URL: http://jsr-305.googlecode.com/ # tar -cvf jsr-305-0.4.20090319.tar jsr-305 # xz jsr-305-0.4.20090319.tar Source0: jsr-305-0.4.20090319.tar.xz +# File containing URL to CC-BY license text +Source1: NOTICE-CC-BY.txt + BuildRequires: java >= 0:1.6.0 BuildRequires: jpackage-utils, maven-local @@ -47,6 +50,8 @@ This package contains the API documentation for %{name}. %setup -q -n %{name} sed -i 's/\r//' sampleUses/pom.xml +cp %{SOURCE1} NOTICE-CC-BY + # do not build sampleUses module - it causes Javadoc generation to fail sed -i '/sampleUses<\/module>/d' pom.xml @@ -78,16 +83,21 @@ install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}-parent.pom rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %files -%doc ri/LICENSE sampleUses +%doc ri/LICENSE NOTICE-CC-BY sampleUses %{_mavenpomdir}/JPP-%{name}.pom %{_mavenpomdir}/JPP-%{name}-parent.pom %{_javadir}/%{name}.jar %{_mavendepmapfragdir}/%{name} %files javadoc +%doc ri/LICENSE NOTICE-CC-BY %{_javadocdir}/%{name} %changelog +* Tue Jun 18 2013 Michal Srb - 0-0.14.20090319svn +- Install license file with javadoc subpackage (Resolves: rhbz#975411) +- Add file containing link to CC-BY license text + * Thu Feb 14 2013 Fedora Release Engineering - 0-0.13.20090319svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild