/[packages]/cauldron/maven-license-plugin/current/SPECS/maven-license-plugin.spec
ViewVC logotype

Contents of /cauldron/maven-license-plugin/current/SPECS/maven-license-plugin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 806361 - (show annotations) (download)
Sat Dec 27 01:45:05 2014 UTC (9 years, 9 months ago) by pterjan
File size: 3528 byte(s)
Sync with Fedora 21 (downgrade to 1.8.0)
1 Name: maven-license-plugin
2 Epoch: 1
3 Version: 1.8.0
4 Release: %mkrel 1
5 Summary: Maven plugin to update header licenses of source files
6
7 Group: Development/Java
8 License: ASL 2.0
9 URL: http://code.google.com/p/maven-license-plugin
10 ### upstream only provides binaries or source without build scripts
11 # tar creation instructions
12 # 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.8.0.tar.xz maven-license-plugin
14 Source0: %{name}-%{version}.tar.xz
15 # remove testng dep (tests are skipped) and maven-license-plugin call
16 Patch0: 001-mavenlicenseplugin-fixbuild.patch
17 BuildArch: noarch
18
19 BuildRequires: java-devel
20 BuildRequires: jpackage-utils
21 BuildRequires: apache-resource-bundles
22 BuildRequires: maven-local
23 BuildRequires: maven-assembly-plugin
24 BuildRequires: maven-deploy-plugin
25 BuildRequires: maven-jar-plugin
26 BuildRequires: maven-javadoc-plugin
27 BuildRequires: maven-source-plugin
28 BuildRequires: maven-changelog-plugin
29 BuildRequires: maven-changes-plugin
30 BuildRequires: maven-clean-plugin
31 BuildRequires: maven-compiler-plugin
32 BuildRequires: maven-dependency-plugin
33 BuildRequires: maven-help-plugin
34 BuildRequires: maven-idea-plugin
35 BuildRequires: maven-install-plugin
36 BuildRequires: maven-plugin-plugin
37 BuildRequires: maven-pmd-plugin
38 BuildRequires: maven-resources-plugin
39 BuildRequires: maven-repository-plugin
40 BuildRequires: maven-remote-resources-plugin
41 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
48 BuildRequires: xml-commons-apis
49 BuildRequires: xmltool
50
51 Requires: jpackage-utils
52 Requires: maven
53 Requires: maven-shared
54 Requires: xmltool
55
56 %description
57 maven-license-plugin is a Maven plugin that help you managing license
58 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
60 of your source files a license to protect your work.
61 This plugin lets you maintain the headers, including checking if the
62 header is present, generating a report and of course having the
63 possibility to update / reformat missing license headers.
64
65
66 %package javadoc
67 Summary: Javadocs for %{name}
68 Group: Documentation
69 Requires: jpackage-utils
70 BuildArch: noarch
71
72 %description javadoc
73 This package contains the API documentation for %{name}.
74
75
76 %prep
77 %setup -q -n %{name}
78 %patch0 -p1
79 # fix EOL
80 sed -i 's/\r//' LICENSE.txt
81 sed -i 's/\r//' NOTICE.txt
82
83 # Remove wagon-webdav extension which is not available
84 %pom_xpath_remove pom:build/pom:extensions
85
86 %build
87 mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate
88
89 %install
90 mkdir -p $RPM_BUILD_ROOT%{_javadir}
91
92 # jar
93 install -Dp -m 644 target/%{name}-%{version}.jar \
94 $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
95
96 # javadoc
97 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
98 cp -rp target/site/apidocs/ $RPM_BUILD_ROOT%{_javadocdir}/%{name}
99
100 # pom
101 install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
102 install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
103
104 %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}

  ViewVC Help
Powered by ViewVC 1.1.30