1 |
Name: maven-license-plugin |
Name: maven-license-plugin |
2 |
Version: 1.9.0 |
Epoch: 1 |
3 |
Release: %mkrel 6 |
Version: 1.8.0 |
4 |
|
Release: %mkrel 1 |
5 |
Summary: Maven plugin to update header licenses of source files |
Summary: Maven plugin to update header licenses of source files |
6 |
|
|
7 |
Group: Development/Java |
Group: Development/Java |
9 |
URL: http://code.google.com/p/maven-license-plugin |
URL: http://code.google.com/p/maven-license-plugin |
10 |
### upstream only provides binaries or source without build scripts |
### upstream only provides binaries or source without build scripts |
11 |
# tar creation instructions |
# tar creation instructions |
12 |
# svn export http://maven-license-plugin.googlecode.com/svn/tags/maven-license-plugin-1.9.0 maven-license-plugin |
# svn export http://maven-license-plugin.googlecode.com/svn/tags/maven-license-plugin-1.8.0 maven-license-plugin |
13 |
# tar cfJ maven-license-plugin-1.9.0.tar.xz maven-license-plugin |
# tar cfJ maven-license-plugin-1.8.0.tar.xz maven-license-plugin |
14 |
Source0: %{name}-%{version}.tar.xz |
Source0: %{name}-%{version}.tar.xz |
|
# custom depmap needed to workaround missing xml-commons-apis poms |
|
|
#Source1: maven-license-plugin-jpp-depmap.xml |
|
15 |
# remove testng dep (tests are skipped) and maven-license-plugin call |
# remove testng dep (tests are skipped) and maven-license-plugin call |
16 |
# add maven 3 support |
Patch0: 001-mavenlicenseplugin-fixbuild.patch |
|
Patch0: maven-license-plugin-1.9.0-fixbuild.patch |
|
|
|
|
17 |
BuildArch: noarch |
BuildArch: noarch |
18 |
|
|
19 |
BuildRequires: java-devel |
BuildRequires: java-devel |
20 |
BuildRequires: jpackage-utils |
BuildRequires: jpackage-utils |
|
# pom BR |
|
|
BuildRequires: mycila-parent-pom |
|
21 |
BuildRequires: apache-resource-bundles |
BuildRequires: apache-resource-bundles |
22 |
BuildRequires: maven |
BuildRequires: maven-local |
23 |
BuildRequires: maven-assembly-plugin |
BuildRequires: maven-assembly-plugin |
|
BuildRequires: maven-clean-plugin |
|
|
BuildRequires: maven-compiler-plugin |
|
|
BuildRequires: maven-dependency-plugin |
|
24 |
BuildRequires: maven-deploy-plugin |
BuildRequires: maven-deploy-plugin |
|
BuildRequires: maven-install-plugin |
|
25 |
BuildRequires: maven-jar-plugin |
BuildRequires: maven-jar-plugin |
26 |
BuildRequires: maven-javadoc-plugin |
BuildRequires: maven-javadoc-plugin |
|
BuildRequires: maven-plugin-plugin |
|
|
BuildRequires: maven-release-plugin |
|
|
BuildRequires: maven-remote-resources-plugin |
|
27 |
BuildRequires: maven-source-plugin |
BuildRequires: maven-source-plugin |
|
BuildRequires: maven-surefire-plugin |
|
|
BuildRequires: plexus-utils |
|
|
BuildRequires: xmltool |
|
|
# old BR |
|
28 |
BuildRequires: maven-changelog-plugin |
BuildRequires: maven-changelog-plugin |
29 |
BuildRequires: maven-changes-plugin |
BuildRequires: maven-changes-plugin |
30 |
BuildRequires: maven-eclipse-plugin |
BuildRequires: maven-clean-plugin |
31 |
|
BuildRequires: maven-compiler-plugin |
32 |
|
BuildRequires: maven-dependency-plugin |
33 |
BuildRequires: maven-help-plugin |
BuildRequires: maven-help-plugin |
34 |
BuildRequires: maven-idea-plugin |
BuildRequires: maven-idea-plugin |
35 |
BuildRequires: maven-plugin-testing-harness |
BuildRequires: maven-install-plugin |
36 |
|
BuildRequires: maven-plugin-plugin |
37 |
BuildRequires: maven-pmd-plugin |
BuildRequires: maven-pmd-plugin |
38 |
BuildRequires: maven-resources-plugin |
BuildRequires: maven-resources-plugin |
39 |
BuildRequires: maven-repository-plugin |
BuildRequires: maven-repository-plugin |
40 |
BuildRequires: maven-shared |
BuildRequires: maven-remote-resources-plugin |
41 |
BuildRequires: maven-site-plugin |
BuildRequires: maven-site-plugin |
42 |
|
BuildRequires: maven-shared |
43 |
|
BuildRequires: maven-surefire-plugin |
44 |
|
BuildRequires: maven-plugin-testing-harness |
45 |
|
BuildRequires: maven-release-plugin |
46 |
|
BuildRequires: plexus-utils |
47 |
BuildRequires: plexus-classworlds |
BuildRequires: plexus-classworlds |
48 |
BuildRequires: xml-commons-apis |
BuildRequires: xml-commons-apis |
49 |
|
BuildRequires: xmltool |
50 |
|
|
|
Requires: java |
|
51 |
Requires: jpackage-utils |
Requires: jpackage-utils |
52 |
Requires: maven |
Requires: maven |
53 |
Requires: mycila-parent-pom |
Requires: maven-shared |
54 |
Requires: xmltool |
Requires: xmltool |
55 |
|
|
56 |
%description |
%description |
57 |
maven-license-plugin is a Maven 2 plugin that help you managing license |
maven-license-plugin is a Maven plugin that help you managing license |
58 |
headers in source files. Basically, when you are developing a project |
headers in source files. Basically, when you are developing a project |
59 |
either in open source or in a company, you often need to add at the top |
either in open source or in a company, you often need to add at the top |
60 |
of your source files a license to protect your work. |
of your source files a license to protect your work. |
62 |
header is present, generating a report and of course having the |
header is present, generating a report and of course having the |
63 |
possibility to update / reformat missing license headers. |
possibility to update / reformat missing license headers. |
64 |
|
|
|
%files |
|
|
%doc NOTICE.txt LICENSE.txt |
|
|
%{_mavenpomdir}/JPP-%{name}.pom |
|
|
%{_mavendepmapfragdir}/%{name} |
|
|
%{_javadir}/%{name}.jar |
|
|
|
|
|
#-------------------------------------------------------------------- |
|
65 |
|
|
66 |
%package javadoc |
%package javadoc |
67 |
Summary: Javadocs for %{name} |
Summary: Javadocs for %{name} |
68 |
Group: Development/Java |
Group: Documentation |
|
Requires: %{name} = %{version}-%{release} |
|
69 |
Requires: jpackage-utils |
Requires: jpackage-utils |
70 |
BuildArch: noarch |
BuildArch: noarch |
71 |
|
|
72 |
%description javadoc |
%description javadoc |
73 |
This package contains the API documentation for %{name}. |
This package contains the API documentation for %{name}. |
74 |
|
|
|
%pre javadoc |
|
|
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \ |
|
|
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : |
|
|
|
|
|
%files javadoc |
|
|
%{_javadocdir}/%{name} |
|
|
|
|
|
#-------------------------------------------------------------------- |
|
75 |
|
|
76 |
%prep |
%prep |
77 |
%setup -q -n %{name} |
%setup -q -n %{name} |
78 |
|
%patch0 -p1 |
|
%patch0 -p0 |
|
|
|
|
79 |
# fix EOL |
# fix EOL |
80 |
sed -i 's/\r//' LICENSE.txt |
sed -i 's/\r//' LICENSE.txt |
81 |
sed -i 's/\r//' NOTICE.txt |
sed -i 's/\r//' NOTICE.txt |
82 |
|
|
83 |
%build |
# Remove wagon-webdav extension which is not available |
84 |
|
%pom_xpath_remove pom:build/pom:extensions |
85 |
|
|
86 |
mvn-rpmbuild -e -Dmaven.test.skip=true install javadoc:aggregate |
%build |
87 |
|
mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate |
88 |
|
|
89 |
%install |
%install |
90 |
mkdir -p $RPM_BUILD_ROOT%{_javadir} |
mkdir -p $RPM_BUILD_ROOT%{_javadir} |
91 |
|
|
92 |
|
# jar |
93 |
install -Dp -m 644 target/%{name}-%{version}.jar \ |
install -Dp -m 644 target/%{name}-%{version}.jar \ |
94 |
$RPM_BUILD_ROOT%{_javadir}/%{name}.jar |
$RPM_BUILD_ROOT%{_javadir}/%{name}.jar |
95 |
|
|
96 |
|
# javadoc |
97 |
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} |
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} |
98 |
cp -rp target/site/apidocs/ $RPM_BUILD_ROOT%{_javadocdir}/%{name} |
cp -rp target/site/apidocs/ $RPM_BUILD_ROOT%{_javadocdir}/%{name} |
99 |
|
|
100 |
|
# pom |
101 |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} |
102 |
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom |
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom |
103 |
|
|
104 |
%add_maven_depmap JPP-%{name}.pom %{name}.jar |
%add_maven_depmap JPP-%{name}.pom %{name}.jar |
105 |
|
|
106 |
|
%files |
107 |
|
%doc NOTICE.txt LICENSE.txt |
108 |
|
%{_mavenpomdir}/* |
109 |
|
%{_datadir}/maven-metadata/* |
110 |
|
%{_javadir}/* |
111 |
|
|
112 |
|
%files javadoc |
113 |
|
%doc LICENSE.txt |
114 |
|
%{_javadocdir}/%{name} |