Install license file with javadoc subpackage (Resolves: rhbz#975411)

- Add file containing link to CC-BY license text

Signed-off-by: Mikolaj Izdebski <mizdebsk@redhat.com>
This commit is contained in:
Michal Srb 2013-06-18 14:53:42 +02:00 committed by Mikolaj Izdebski
parent 2ffecaaebc
commit e27ac79b6c
2 changed files with 16 additions and 2 deletions

4
NOTICE-CC-BY.txt Normal file
View File

@ -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

View File

@ -1,6 +1,6 @@
Name: jsr-305 Name: jsr-305
Version: 0 Version: 0
Release: 0.13.20090319svn%{?dist} Release: 0.14.20090319svn%{?dist}
Summary: Correctness annotations for Java code Summary: Correctness annotations for Java code
Group: Development/Libraries Group: Development/Libraries
@ -15,6 +15,9 @@ URL: http://jsr-305.googlecode.com/
# tar -cvf jsr-305-0.4.20090319.tar jsr-305 # tar -cvf jsr-305-0.4.20090319.tar jsr-305
# xz jsr-305-0.4.20090319.tar # xz jsr-305-0.4.20090319.tar
Source0: jsr-305-0.4.20090319.tar.xz 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: java >= 0:1.6.0
BuildRequires: jpackage-utils, maven-local BuildRequires: jpackage-utils, maven-local
@ -47,6 +50,8 @@ This package contains the API documentation for %{name}.
%setup -q -n %{name} %setup -q -n %{name}
sed -i 's/\r//' sampleUses/pom.xml sed -i 's/\r//' sampleUses/pom.xml
cp %{SOURCE1} NOTICE-CC-BY
# do not build sampleUses module - it causes Javadoc generation to fail # do not build sampleUses module - it causes Javadoc generation to fail
sed -i '/<module>sampleUses<\/module>/d' pom.xml sed -i '/<module>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} || : rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%files %files
%doc ri/LICENSE sampleUses %doc ri/LICENSE NOTICE-CC-BY sampleUses
%{_mavenpomdir}/JPP-%{name}.pom %{_mavenpomdir}/JPP-%{name}.pom
%{_mavenpomdir}/JPP-%{name}-parent.pom %{_mavenpomdir}/JPP-%{name}-parent.pom
%{_javadir}/%{name}.jar %{_javadir}/%{name}.jar
%{_mavendepmapfragdir}/%{name} %{_mavendepmapfragdir}/%{name}
%files javadoc %files javadoc
%doc ri/LICENSE NOTICE-CC-BY
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %changelog
* Tue Jun 18 2013 Michal Srb <msrb@redhat.com> - 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 <rel-eng@lists.fedoraproject.org> - 0-0.13.20090319svn * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.13.20090319svn
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild