diff --git a/.cvsignore b/.cvsignore index e69de29..f83eabf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +aduna-commons-text-2.6.0-sources.jar diff --git a/aduna-commons-text-2.6.0.pom b/aduna-commons-text-2.6.0.pom new file mode 100644 index 0000000..ed52377 --- /dev/null +++ b/aduna-commons-text-2.6.0.pom @@ -0,0 +1,61 @@ + + + 4.0.0 + + + info.aduna.commons + aduna-commons + 16 + ../../pom.xml + + + aduna-commons-text + 2.6.0 + + Aduna Commons: Text + Manipulate/transform/parse text in various ways. + + + Aduna + http://www.aduna-software.com/ + + + + + Aduna BSD license + http://repo.aduna-software.org/legal/aduna-bsd.txt + repo + A BSD-style OSS license + + + + + + + maven-jar-plugin + + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + org.apache.felix + maven-bundle-plugin + true + + + info.aduna.text + + + + + + + + scm:svn:http://repo.aduna-software.org/svn/info.aduna/commons/text/tags/2.6.0 + scm:svn:https://repo.aduna-software.org/svn/info.aduna/commons/text/tags/2.6.0 + http://repo.aduna-software.org/websvn/listing.php?repname=aduna&path=/info.aduna/commons/text/branches/2.6?repname=aduna&path=/info.aduna/commons/text/tags/2.6.0?repname=aduna&path=/info.aduna/commons/text/branches/2.6?repname=aduna&path=/info.aduna/commons/text/trunk/ + + + diff --git a/aduna-commons-text.spec b/aduna-commons-text.spec new file mode 100644 index 0000000..9202c33 --- /dev/null +++ b/aduna-commons-text.spec @@ -0,0 +1,143 @@ +%global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0} + +Name: aduna-commons-text +Version: 2.6.0 +Release: 3%{?dist} +Summary: Manipulate/transform/parse text in various ways + +Group: Development/Libraries +License: BSD +URL: http://www.aduna-software.com/ +Source0: http://repo.aduna-software.org/maven2/releases/info/aduna/commons/%{name}/%{version}/%{name}-%{version}-sources.jar +Source1: http://repo.aduna-software.org/maven2/releases/info/aduna/commons/%{name}/%{version}/%{name}-%{version}.pom + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: jpackage-utils >= 0:1.7.5 +BuildRequires: aduna-commons-pom +BuildRequires: maven2-plugin-install +BuildRequires: maven2-plugin-jar +BuildRequires: maven2-plugin-resources +BuildRequires: maven-doxia-sitetools +BuildRequires: maven-surefire-maven-plugin + +Requires: aduna-commons-pom + +Requires: jpackage-utils >= 0:1.7.5 +Requires(post): jpackage-utils >= 0:1.7.5 +Requires(postun): jpackage-utils >= 0:1.7.5 + +%if %{with_gcj} +BuildRequires: java-gcj-compat-devel >= 1.0.31 +Requires(post): java-gcj-compat >= 1.0.31 +Requires(postun): java-gcj-compat >= 1.0.31 +%else +BuildArch: noarch +%endif + + +%description +%{summary}. + + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation +Requires: jpackage-utils >= 0:1.7.5 +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description javadoc +%{summary}. + + +%prep +%setup -c -q +cp %SOURCE1 ./pom.xml +mkdir -p src/main/java +mv info src/main/java + +find -name '*.class' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; + +%build +export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository +mkdir -p $MAVEN_REPO_LOCAL + +mvn-jpp \ + -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ + install javadoc:javadoc + + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{_javadir} + +install -m 644 target/%{name}-%{version}.jar \ + $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) + +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name}) + +install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} +install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom + +%if %{with_gcj} +%{_bindir}/aot-compile-rpm +%endif + +%add_to_maven_depmap info.aduna.commons %{name} %{version} JPP %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%update_maven_depmap +%if %{with_gcj} + if [ -x %{_bindir}/rebuild-gcj-db ] + then + %{_bindir}/rebuild-gcj-db + fi +%endif + +%postun +%update_maven_depmap +%if %{with_gcj} + if [ -x %{_bindir}/rebuild-gcj-db ] + then + %{_bindir}/rebuild-gcj-db + fi +%endif + +%files +%defattr(-,root,root,-) +%{_javadir}/*.jar +%{_mavendepmapfragdir}/* +%{_mavenpomdir}/*.pom +%if %{with_gcj} +%attr(-,root,root) %{_libdir}/gcj/%{name} +%endif + +%files javadoc +%defattr(-,root,root,-) +%{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name} + + +%changelog +* Tue Feb 23 2010 Mary Ellen Foster 2.6.0-3 +- Remove BuildRequirements that are pulled in by aduna-commons POM +- Require the main package in the javadoc + +* Thu Feb 11 2010 Mary Ellen Foster 2.6.0-2 +- Add BR maven-doxia-sitetools +- Fix changelog dates + +* Wed Feb 10 2010 Mary Ellen Foster 2.6.0-1 +- Update to 2.6.0 in preparation for review + +* Tue Nov 17 2009 Mary Ellen Foster 2.4.0-1 +- Initial package diff --git a/import.log b/import.log new file mode 100644 index 0000000..acdb360 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +aduna-commons-text-2_6_0-3_fc12:HEAD:aduna-commons-text-2.6.0-3.fc12.src.rpm:1267454585 diff --git a/sources b/sources index e69de29..5ab03f5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cdd124d4ee61875767d57df937b37d4b aduna-commons-text-2.6.0-sources.jar