commit 0290ff0a9718d295c89bbcf4c3b30aea8b2014b5688253a5aab15186f4b2463b Author: Dmitry Roshchin Date: Wed May 21 17:07:25 2014 +0000 Accepting request 235029 from science OBS-URL: https://build.opensuse.org/request/show/235029 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-cli?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/apache-commons-cli.changes b/apache-commons-cli.changes new file mode 100644 index 0000000..577b81a --- /dev/null +++ b/apache-commons-cli.changes @@ -0,0 +1,38 @@ +------------------------------------------------------------------- +Sat Mar 8 18:22:40 UTC 2014 - badshah400@gmail.com + +- For openSUSE >= 13.1 remove all references to maven scripts as + these do not work; fixes building for openSUSE >= 13.1 +- Lots of specfile formatting cleanups +- Move old %changelog section entries to .changes with proper + formatting +- Add copyright info to spec file. + +------------------------------------------------------------------- +Mon Dec 12 23:47:58 UTC 2011 - dmacvicar@suse.de + +- rename apache-cli to apache-commons-cli +- add java() provides + +------------------------------------------------------------------- +Tue Jul 19 10:07:32 UTC 2011 - dmacvicar@suse.de + +- converted to build with ant:ant +- removed reference to non existing target/osgi/MANIFEST + in maven-build.xml + +------------------------------------------------------------------- +Tue Nov 09 00:00:00 UTC 2010 - chris.spike@arcor.de + +- Removed maven* BRs in favour of apache-commons-parent +- Added deprecated groupId to depmap for compatibility reasons + +------------------------------------------------------------------- +Mon Oct 18 00:00:00 UTC 2010 - chris.spike@arcor.de + +- Removed Epoch + +------------------------------------------------------------------- +Sun Oct 03 00:00:00 UTC 2010 - chris.spike@arcor.de + +- Rename and rebase from jakarta-commons-cli diff --git a/apache-commons-cli.spec b/apache-commons-cli.spec new file mode 100644 index 0000000..314affe --- /dev/null +++ b/apache-commons-cli.spec @@ -0,0 +1,120 @@ +# +# spec file for package apache-commons-cli +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%global base_name cli +%global short_name commons-%{base_name} +%global _mavenpomdir %{_datadir}/maven2/poms +%global with_maven 0 + +Name: apache-commons-cli +Version: 1.2 +Release: 0 +Summary: Command Line Interface Library for Java +License: Apache-2.0 +Group: Development/Libraries/Java +Url: http://commons.apache.org/%{base_name}/ +Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +Source1: build.xml.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +BuildRequires: ant +BuildRequires: java-devel >= 1.6.0 +BuildRequires: jpackage-utils +Requires: java >= 1.6.0 +Requires: jpackage-utils +Requires(post): jpackage-utils +Requires(postun): jpackage-utils + +# This should go away with F-17 +Provides: jakarta-%{short_name} = %{version}-%{release} +Obsoletes: jakarta-%{short_name} < 1.1-6 +Provides: apache-cli +Provides: java(commons-cli:commons-cli) = %{version} +Obsoletes: apache-cli < 1.2 + +%description +The CLI library provides a simple and easy to use API for working with the +command line arguments and options. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Libraries/Java +Requires: jpackage-utils +# This should go away with F-17 +Obsoletes: jakarta-%{short_name}-javadoc < 1.1-6 + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{short_name}-%{version}-src +tar -xf %{SOURCE1} + +%build +export CLASSPATH=$(build-classpath \ + plexus/ \ + maven/ \ + ):target/classes:target/test-classes +ant -Dmaven.mode.offline=true package javadoc \ + -Dmaven.test.skip=true \ + -lib /usr/share/java + +%install +# jars +install -Dpm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) + +%if 0%{?suse_version} < 1310 +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom +%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name} +# following line is only for backwards compatibility. New packages +# should use proper groupid org.apache.commons and also artifactid +%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name} +%endif + +# javadoc +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version} +cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ +ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} + +%if 0%{?suse_version} < 1310 +%post +%update_maven_depmap + +%postun +%update_maven_depmap +%endif + +%files +%defattr(-,root,root) +%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt +%{_javadir}/* +%if 0%{?suse_version} < 1310 +%{_mavenpomdir}/* +%config %{_mavendepmapfragdir}/* +%endif + +%files javadoc +%defattr(-,root,root) +%doc LICENSE.txt +%{_javadocdir}/* + +%changelog diff --git a/build.xml.tar.bz2 b/build.xml.tar.bz2 new file mode 100644 index 0000000..c935c9a --- /dev/null +++ b/build.xml.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:010d33fe3c68bd363b35bd388a7229e974c2821e2656decf87544e7ff791aa47 +size 2845 diff --git a/commons-cli-1.2-src.tar.gz b/commons-cli-1.2-src.tar.gz new file mode 100644 index 0000000..36d4d94 --- /dev/null +++ b/commons-cli-1.2-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b589cd675866aec12a068e0717f2bd52ead6128c43ba1612a8815db1df7f6e67 +size 68594