Compare commits
No commits in common. "rawhide" and "f17" have entirely different histories.
4 changed files with 103 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/shrinkwrap-1.0.0.tar.xz
|
||||
|
|
@ -1 +0,0 @@
|
|||
Orphaned for 6+ weeks
|
||||
101
shrinkwrap.spec
Normal file
101
shrinkwrap.spec
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
%global namedreltag %{nil}
|
||||
%global namedversion %{version}%{?namedreltag}
|
||||
Name: shrinkwrap
|
||||
Version: 1.0.0
|
||||
Release: 1%{?dist}
|
||||
Summary: A simple mechanism to assemble Java archives
|
||||
Group: Development/Libraries
|
||||
License: ASL 2.0
|
||||
Url: http://www.jboss.org/shrinkwrap/
|
||||
# git clone git://github.com/shrinkwrap/shrinkwrap.git shrinkwrap-1.0.0
|
||||
# cd shrinkwrap-1.0.0 && git archive --format=tar --prefix=shrinkwrap-1.0.0/ 1.0.0 | xz > ../shrinkwrap-1.0.0.tar.xz
|
||||
Source0: %{name}-%{namedversion}.tar.xz
|
||||
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jboss-parent
|
||||
BuildRequires: jpackage-utils
|
||||
|
||||
BuildRequires: apiviz
|
||||
BuildRequires: junit4
|
||||
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-checkstyle-plugin
|
||||
BuildRequires: maven-compiler-plugin
|
||||
BuildRequires: maven-enforcer-plugin
|
||||
BuildRequires: maven-install-plugin
|
||||
BuildRequires: maven-jar-plugin
|
||||
BuildRequires: maven-javadoc-plugin
|
||||
BuildRequires: maven-resources-plugin
|
||||
BuildRequires: maven-source-plugin
|
||||
BuildRequires: maven-surefire-plugin
|
||||
BuildRequires: maven-surefire-provider-junit4
|
||||
|
||||
Requires: junit4
|
||||
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Shrinkwrap provides a simple mechanism to assemble archives
|
||||
like JARs, WARs, and EARs with a friendly, fluent API.
|
||||
|
||||
%package javadoc
|
||||
Group: Documentation
|
||||
Summary: Javadoc for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{namedversion}
|
||||
|
||||
sed -i "s|<module>dist</module>|<!--module>dist</module-->|" pom.xml
|
||||
|
||||
%build
|
||||
|
||||
export JAVA5_HOME=%{_jvmdir}/java
|
||||
mvn-rpmbuild install javadoc:aggregate
|
||||
|
||||
%install
|
||||
|
||||
mkdir -p %{buildroot}%{_javadir}/%{name}
|
||||
install -pm 644 api/target/%{name}-api-%{namedversion}-tests.jar %{buildroot}%{_javadir}/%{name}/api-tests.jar
|
||||
install -pm 644 api/target/%{name}-api-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/api.jar
|
||||
install -pm 644 build-resources/target/%{name}-build-resources-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/build-resources.jar
|
||||
install -pm 644 impl-base/target/%{name}-impl-base-%{namedversion}-tests.jar %{buildroot}%{_javadir}/%{name}/impl-base-tests.jar
|
||||
install -pm 644 impl-base/target/%{name}-impl-base-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/impl-base.jar
|
||||
install -pm 644 spi/target/%{name}-spi-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/spi.jar
|
||||
|
||||
mkdir -p %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-parent.pom
|
||||
%add_maven_depmap JPP.%{name}-parent.pom
|
||||
install -pm 644 bom/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-bom.pom
|
||||
%add_maven_depmap JPP.%{name}-bom.pom
|
||||
install -pm 644 depchain/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-depchain.pom
|
||||
%add_maven_depmap JPP.%{name}-depchain.pom
|
||||
install -pm 644 api/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-api.pom
|
||||
%add_maven_depmap JPP.%{name}-api.pom %{name}/api.jar
|
||||
install -pm 644 build-resources/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-build-resources.pom
|
||||
%add_maven_depmap JPP.%{name}-build-resources.pom %{name}/build-resources.jar
|
||||
install -pm 644 impl-base/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-impl-base.pom
|
||||
%add_maven_depmap JPP.%{name}-impl-base.pom %{name}/impl-base.jar
|
||||
install -pm 644 spi/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-spi.pom
|
||||
%add_maven_depmap JPP.%{name}-spi.pom %{name}/spi.jar
|
||||
|
||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -r target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files
|
||||
%{_javadir}/%{name}/*.jar
|
||||
%{_mavenpomdir}/JPP.%{name}-*.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Sat Apr 21 2012 gil cattaneo <puntogil@libero.it> 1.0.0-1
|
||||
- initial rpm
|
||||
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
12a861a091ebedfeb830ece9b4e516de shrinkwrap-1.0.0.tar.xz
|
||||
Loading…
Add table
Add a link
Reference in a new issue