Update to upstream 1.14.
Adapt to current guidelines.
This commit is contained in:
parent
0698bcc2fe
commit
d6a0019a74
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
plexus-interpolation-1.13.tar.bz2
|
plexus-interpolation-1.13.tar.bz2
|
||||||
|
/plexus-interpolation-1.14.tar.xz
|
||||||
|
@ -1,27 +1,26 @@
|
|||||||
Name: plexus-interpolation
|
Name: plexus-interpolation
|
||||||
Version: 1.13
|
Version: 1.14
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Plexus Interpolation API
|
Summary: Plexus Interpolation API
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: ASL 2.0 and ASL 1.1 and MIT
|
License: ASL 2.0 and ASL 1.1 and MIT
|
||||||
URL: http://plexus.codehaus.org/plexus-components/plexus-interpolation
|
URL: http://plexus.codehaus.org/plexus-components/plexus-interpolation
|
||||||
#svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-interpolation-1.13/
|
#svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-interpolation-1.14/
|
||||||
#tar cjf plexus-interpolation-1.13.tar.bz2 plexus-interpolation-1.13/
|
#tar caf plexus-interpolation-1.14.tar.xz plexus-interpolation-1.14/
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.xz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: maven2
|
BuildRequires: maven
|
||||||
BuildRequires: maven2-plugin-resources
|
BuildRequires: maven-resources-plugin
|
||||||
BuildRequires: maven2-plugin-compiler
|
BuildRequires: maven-compiler-plugin
|
||||||
BuildRequires: maven2-plugin-jar
|
BuildRequires: maven-jar-plugin
|
||||||
BuildRequires: maven2-plugin-install
|
BuildRequires: maven-install-plugin
|
||||||
BuildRequires: maven2-plugin-javadoc
|
BuildRequires: maven-javadoc-plugin
|
||||||
BuildRequires: maven-surefire-maven-plugin
|
BuildRequires: maven-surefire-plugin
|
||||||
BuildRequires: maven-surefire-provider-junit
|
BuildRequires: maven-surefire-provider-junit
|
||||||
BuildRequires: maven-shared-reporting-impl
|
BuildRequires: maven-shared-reporting-impl
|
||||||
BuildRequires: maven-doxia-sitetools
|
BuildRequires: maven-doxia-sitetools
|
||||||
@ -36,47 +35,32 @@ related projects.
|
|||||||
%package javadoc
|
%package javadoc
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
|
Requires: jpackage-utils
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
API documentation for %{name}.
|
API documentation for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
mkdir external_repo
|
|
||||||
ln -s %{_javadir} external_repo/JPP
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
mvn-rpmbuild install javadoc:javadoc
|
||||||
mvn-jpp \
|
|
||||||
-e \
|
|
||||||
-Dmaven2.jpp.mode=true \
|
|
||||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
||||||
install javadoc:javadoc
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
# jars
|
# jars
|
||||||
install -d -m 0755 %{buildroot}%{_javadir}/plexus
|
install -d -m 0755 %{buildroot}%{_javadir}/plexus
|
||||||
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/interpolation-%{version}.jar
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/interpolation.jar
|
||||||
|
|
||||||
(cd %{buildroot}%{_javadir}/plexus && for jar in *-%{version}*; \
|
|
||||||
do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
||||||
|
|
||||||
%add_to_maven_depmap org.codehaus.plexus plexus-interpolation %{version} JPP/plexus interpolation
|
%add_to_maven_depmap org.codehaus.plexus plexus-interpolation %{version} JPP/plexus interpolation
|
||||||
|
|
||||||
# poms
|
# poms
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
install -pm 644 pom.xml \
|
install -pm 644 pom.xml \
|
||||||
%{buildroot}%{_datadir}/maven2/poms/JPP.%{name}.pom
|
%{buildroot}%{_mavenpomdir}/JPP.%{name}.pom
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
|
||||||
rm -rf target/site/api*
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
@ -84,21 +68,21 @@ rm -rf target/site/api*
|
|||||||
%postun
|
%postun
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadir}/plexus/*.jar
|
%{_javadir}/plexus/*.jar
|
||||||
%{_datadir}/maven2/poms/*
|
%{_mavenpomdir}/*
|
||||||
%{_mavendepmapfragdir}/*
|
%{_mavendepmapfragdir}/*
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadocdir}/%{name}-%{version}
|
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 17 2011 Alexander Kurtakov <akurtako@redhat.com> 1.14-1
|
||||||
|
- Update to upstream 1.14 version.
|
||||||
|
- Adapt to current guidelines.
|
||||||
|
|
||||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-3
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
@ -107,3 +91,5 @@ rm -rf target/site/api*
|
|||||||
|
|
||||||
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 1.13-1
|
* Tue Dec 22 2009 Alexander Kurtakov <akurtako@redhat.com> 1.13-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user