diff --git a/.gitignore b/.gitignore index e69de29..bf6ed33 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/jetty-build-support-1.1.tar.bz2 diff --git a/jetty-build-support.spec b/jetty-build-support.spec new file mode 100644 index 0000000..01c196c --- /dev/null +++ b/jetty-build-support.spec @@ -0,0 +1,81 @@ +Name: jetty-build-support +Version: 1.1 +Release: 1%{?dist} +Summary: Jetty build support files + +Group: Development/Libraries +# licensing bug upstream +# https://bugs.eclipse.org/bugs/show_bug.cgi?id=362646 +# - commit stating the license is already there +License: ASL 2.0 or EPL +URL: http://www.eclipse.org/jetty/ +Source0: http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2 +# rpmlint config file (fedpkg lint will use this) +#Source1: .rpmlint +BuildArch: noarch + +BuildRequires: jpackage-utils +BuildRequires: maven +BuildRequires: maven-compiler-plugin +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-source-plugin +BuildRequires: maven-enforcer-api +BuildRequires: maven-surefire-provider-junit4 +BuildRequires: jetty-toolchain +BuildRequires: junit4 + +Requires: maven +Requires: maven-project +Requires: maven-enforcer +Requires: jpackage-utils +Requires: jetty-toolchain +Requires: maven-enforcer-api +Requires: plexus-container-default + +%description +Build Support for Jetty. Contains enforcer rules, PMD rulesets, etc. + +%package javadoc +Summary: API documentation for %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +%{summary}. + + +%prep +%setup -q + +%build +pushd %{name} +mvn-rpmbuild install javadoc:aggregate + +%install +# poms +install -d -m 755 %{buildroot}%{_mavenpomdir} +pushd %{name} +install -pm 644 pom.xml \ + %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +install -Dp -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar + +%add_maven_depmap JPP-%{name}.pom %{name}.jar + +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} +popd + + +%files +%{_mavenpomdir}/JPP-%{name}.pom +%{_javadir}/%{name}.jar +%{_mavendepmapfragdir}/%{name} + +%files javadoc +%doc %{_javadocdir}/%{name} + +%changelog +* Thu Nov 3 2011 Stanislav Ochotnicky - 1.1-1 +- Initial version of the package + diff --git a/sources b/sources index e69de29..2f5c5b4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +997b7aa7e669e34ba15cd20e73e662db jetty-build-support-1.1.tar.bz2