[Jpackage-commits] rpms/free/maven-common-artifact-filters maven-common-artifact-filters.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Fri Oct 14 22:19:40 CEST 2011


Update of /home/projects/jpackage/cvs/rpms/free/maven-common-artifact-filters
In directory ryu.zarb.org:/tmp/Y7JkZqXQIr/rpms/free/maven-common-artifact-filters

Added Files:
	maven-common-artifact-filters.spec 
Log Message:
1.3-1.jpp6

--- NEW FILE: maven-common-artifact-filters.spec ---
Name:           maven-common-artifact-filters
Version:        1.3
Release:        1%{?dist}
Epoch:          0
Summary:        Maven Common Artifact Filters
Group:          Development/Java
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-common-artifact-filters/
# svn export -r 1183361 http://svn.apache.org/repos/asf/maven/shared/tags/maven-common-artifact-filters-1.3/ && tar cjf maven-common-artifact-filters-1.3.tar.bz2 maven-common-artifact-filters-1.3
Source0:        %{name}-%{version}.tar.bz2
Obsoletes:      maven-shared-common-artifact-filters <= 0:1.0
Provides:       maven-shared-common-artifact-filters = %{epoch}:%{version}-%{release}
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Requires:       maven2
Requires:       jpackage-utils
Requires:       java
Requires:       plexus-compiler >= 0:1.8.1
Requires:       plexus-utils >= 0:1.5.1
BuildRequires:  java-devel
BuildRequires:  junit4
BuildRequires:  maven2
BuildRequires:  maven2-common-poms
BuildRequires:  maven2-plugin-plugin
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-surefire
BuildRequires:  maven-surefire-provider-junit
BuildRequires:  maven-surefire-provider-junit4
%if 0
BuildRequires:  maven-plugin-testing-harness
%endif
BuildRequires:  maven-shared-plugin-testing-harness
BuildRequires:  plexus-compiler >= 0:1.8.1
BuildRequires:  plexus-utils >= 0:1.5.1
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
A collection of ready-made filters to control inclusion/exclusion of artifacts during dependency resolution.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%build
export MAVEN_OPTS="-Dproject.build.sourceEncoding=UTF-8 -Dfile.encoding=UTF-8"
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
%{_bindir}/mvn-jpp -e -Dmaven.repo.local=${MAVEN_REPO_LOCAL} install javadoc:aggregate

%install
%{__rm} -rf %{buildroot}

# jars
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p target/maven-common-artifact-filters-%{version}.jar %{buildroot}%{_javadir}/maven-common-artifact-filters-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `/bin/echo ${jar} | %{__sed} "s|-%{version}||g"`; done)

# poms
%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
%{__cp} -p pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-maven-common-artifact-filters.pom
%add_to_maven_depmap org.apache.maven.shared maven-common-artifact-filters %{version} JPP maven-common-artifact-filters
if [ "x%{name}" != "xmaven-common-artifact-filters" ]; then %{__mv} %{buildroot}%{_mavendepmapfragdir}/%{name} %{buildroot}%{_mavendepmapfragdir}/maven-common-artifact-filters; fi

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/maven-common-artifact-filters-%{version}
%{__cp} -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/maven-common-artifact-filters-%{version}
%{__ln_s} maven-common-artifact-filters-%{version} %{buildroot}%{_javadocdir}/maven-common-artifact-filters

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%{_javadir}*/maven-common-artifact-filters-%{version}.jar
%{_javadir}*/maven-common-artifact-filters.jar
%{_datadir}/maven2/poms/JPP-maven-common-artifact-filters.pom
%{_mavendepmapfragdir}/maven-common-artifact-filters

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/maven-common-artifact-filters-%{version}
%{_javadocdir}/maven-common-artifact-filters

%changelog
* Fri Oct 14 2011 David Walluck <dwalluck at redhat.com> 1.3-1
- release




More information about the JPackage-commits mailing list