Initial commit
This commit is contained in:
parent
37b7f10565
commit
e95c60d842
2
.gitignore
vendored
2
.gitignore
vendored
@ -0,0 +1,2 @@
|
||||
/LICENSE-2.0.txt
|
||||
/maven-shared-io-1.1.tar.xz
|
||||
90
maven-shared-io.spec
Normal file
90
maven-shared-io.spec
Normal file
@ -0,0 +1,90 @@
|
||||
Name: maven-shared-io
|
||||
Version: 1.1
|
||||
Release: 1%{?dist}
|
||||
# Maven-shared defines maven-shared-io version as 1.2
|
||||
Epoch: 1
|
||||
Summary: API for I/O support like logging, download or file scanning.
|
||||
License: ASL 2.0
|
||||
URL: http://maven.apache.org/shared/maven-shared-io
|
||||
# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-shared-io-1.1 maven-shared-io-1.1
|
||||
# tar caf maven-shared-io-1.1.tar.xz maven-shared-io-1.1/
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
# ASL mandates that the licence file be included in redistributed source
|
||||
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: easymock
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-surefire-provider-junit
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
Requires: maven
|
||||
Requires: maven-artifact-manager
|
||||
Requires: maven-wagon
|
||||
Requires: plexus-container-default
|
||||
Requires: plexus-utils
|
||||
|
||||
Obsoletes: maven-shared-io < %{epoch}:%{version}-%{release}
|
||||
Provides: maven-shared-io = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description
|
||||
API for I/O support like logging, download or file scanning.
|
||||
|
||||
This is a replacement package for maven-shared-io
|
||||
|
||||
%package javadoc
|
||||
Group: Documentation
|
||||
Summary: Javadoc for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%pom_add_dep org.apache.maven:maven-compat
|
||||
|
||||
# Failing tests
|
||||
rm src/test/java/org/apache/maven/shared/io/location/ArtifactLocatorStrategyTest.java
|
||||
rm src/test/java/org/apache/maven/shared/io/download/DefaultDownloadManagerTest.java
|
||||
|
||||
cp %{SOURCE1} LICENSE.txt
|
||||
|
||||
%build
|
||||
mvn-rpmbuild package javadoc:aggregate
|
||||
|
||||
%install
|
||||
# JAR
|
||||
install -Ddm 755 %{buildroot}/%{_javadir}
|
||||
install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
# POM
|
||||
install -Ddm 755 %{buildroot}/%{_mavenpomdir}
|
||||
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
|
||||
# JavaDoc
|
||||
install -Ddm 755 %{buildroot}/%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||
|
||||
%files
|
||||
%doc LICENSE.txt
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%doc LICENSE.txt
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jan 15 2013 Tomas Radej <tradej@redhat.com> - 1:1.1-1
|
||||
- Initial version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user