diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b8ee5bc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/java-getopt-1.0.14.tar.gz diff --git a/.rh-maven33-gnu-getopt.metadata b/.rh-maven33-gnu-getopt.metadata new file mode 100644 index 0000000..24ad9d7 --- /dev/null +++ b/.rh-maven33-gnu-getopt.metadata @@ -0,0 +1 @@ +6f7736e2bd254a68d0f3deb49a535b45b7e8b436 SOURCES/java-getopt-1.0.14.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/gnu-getopt-1.0.14.pom b/SOURCES/gnu-getopt-1.0.14.pom new file mode 100644 index 0000000..ab71b22 --- /dev/null +++ b/SOURCES/gnu-getopt-1.0.14.pom @@ -0,0 +1,24 @@ + + + + + 4.0.0 + + gnu-getopt + getopt + 1.0.14 + + ON Enterprise Server JAR + JON enterprise server main JAR + http://www.urbanophile.com/arenn/hacking/download.html + + + + GNU Lesser General Public License (LGPL) + http://www.gnu.org/licenses/lgpl.html + + + + diff --git a/SPECS/gnu-getopt.spec b/SPECS/gnu-getopt.spec new file mode 100644 index 0000000..2c0ed38 --- /dev/null +++ b/SPECS/gnu-getopt.spec @@ -0,0 +1,248 @@ +%global pkg_name gnu-getopt +%{?scl:%scl_package %{pkg_name}} +%{?maven_find_provides_and_requires} + +# Copyright (c) 2000-2009, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +Name: %{?scl_prefix}%{pkg_name} +Version: 1.0.14 +Release: 5.13%{?dist} +Epoch: 0 +Summary: Java getopt implementation +License: LGPLv2+ +URL: http://www.urbanophile.com/arenn/hacking/download.html +Source0: http://www.urbanophile.com/arenn/hacking/getopt/java-getopt-%{version}.tar.gz +Source2: gnu-getopt-%{version}.pom +BuildArch: noarch +BuildRequires: %{?scl_prefix_java_common}ant +BuildRequires: %{?scl_prefix_java_common}javapackages-tools + + +%description +The GNU Java getopt classes support short and long argument parsing in +a manner 100% compatible with the version of GNU getopt in glibc 2.0.6 +with a mostly compatible programmer's interface as well. Note that this +is a port, not a new implementation. I am currently unaware of any bugs +in this software, but there certainly could be some lying about. I would +appreciate bug reports as well as hearing about positive experiences. + +%package javadoc +Summary: Javadoc for %{pkg_name} + +%description javadoc +%{summary}. + +%prep +%setup -q -c -n %{pkg_name}-%{version} +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +mv gnu/getopt/buildx.xml build.xml +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +ant jar javadoc +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +install -d -m 755 %{buildroot}%{_javadir} +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} + +install -p -m 644 build/lib/gnu.getopt.jar %{buildroot}%{_javadir}/%{pkg_name}.jar +ln -sf %{pkg_name}.jar %{buildroot}%{_javadir}/gnu.getopt.jar + +install -p -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom +%add_maven_depmap -a urbanophile:java-getopt + +cp -pr build/api/* %{buildroot}%{_javadocdir}/%{name} +%{?scl:EOF} + +%files -f .mfiles +%doc gnu/getopt/COPYING.LIB gnu/getopt/README +%{_javadir}/gnu.getopt.jar + +%files javadoc +%doc gnu/getopt/COPYING.LIB +%{_javadocdir}/%{name} + +%changelog +* Mon Feb 08 2016 Michal Srb - 0:1.0.14-5.13 +- Fix BR on maven-local & co. + +* Mon Jan 11 2016 Michal Srb - 0:1.0.14-5.12 +- maven33 rebuild #2 + +* Sat Jan 09 2016 Michal Srb - 0:1.0.14-5.11 +- maven33 rebuild + +* Tue Jan 13 2015 Michael Simacek - 0:1.0.14-5.10 +- Mass rebuild 2015-01-13 + +* Wed Jan 07 2015 Michal Srb - 1.0.14-5.9 +- Migrate to .mfiles + +* Tue Jan 06 2015 Michael Simacek - 0:1.0.14-5.8 +- Mass rebuild 2015-01-06 + +* Mon May 26 2014 Mikolaj Izdebski - 0:1.0.14-5.7 +- Mass rebuild 2014-05-26 + +* Wed Feb 19 2014 Mikolaj Izdebski - 0:1.0.14-5.6 +- Mass rebuild 2014-02-19 + +* Tue Feb 18 2014 Mikolaj Izdebski - 0:1.0.14-5.5 +- Mass rebuild 2014-02-18 + +* Tue Feb 18 2014 Mikolaj Izdebski - 0:1.0.14-5.4 +- Remove requires on java + +* Mon Feb 17 2014 Mikolaj Izdebski - 0:1.0.14-5.3 +- SCL-ize build-requires + +* Thu Feb 13 2014 Mikolaj Izdebski - 0:1.0.14-5.2 +- Rebuild to regenerate auto-requires + +* Tue Feb 11 2014 Mikolaj Izdebski - 0:1.0.14-5.1 +- First maven30 software collection build + +* Fri Dec 27 2013 Daniel Mach - 01.0.14-5 +- Mass rebuild 2013-12-27 + +* Fri Jul 12 2013 Mikolaj Izdebski - 0:1.0.14-4 +- Remove workaround for rpm bug #646523 + +* Fri Jun 28 2013 Mikolaj Izdebski - 0:1.0.14-3 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Thu Feb 14 2013 Fedora Release Engineering - 0:1.0.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jan 15 2013 Mikolaj Izdebski - 0:1.0.14-1 +- Update to upstream version 1.0.14 + +* Thu Sep 6 2012 Mikolaj Izdebski - 0:1.0.13-7 +- Install license file with javadoc package +- Add missing R: java, jpackage-utils +- Convert versioned names to versionless +- Add rpm bug workaround +- Update to current packaging guidelines + +* Thu Jul 19 2012 Fedora Release Engineering - 0:1.0.13-6.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 0:1.0.13-5.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0:1.0.13-4.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Sep 08 2009 David Walluck 0:1.0.13-3.1 +- remove repolib + +* Tue Sep 08 2009 David Walluck 0:1.0.13-3 +- fix maven depmap install +- add compat symlinks for javadoc +- add depmap entry for urbanophile:java-getopt + +* Thu Jul 30 2009 Yong Yang 0:1.0.13-2 +- Merge changes from JPP5 1.0.12-3 to 1.0.12-6 + +* Wed Jul 29 2009 Yong Yang 0:1.0.13-1 +- 1.0.13 + +* Wed Aug 20 2008 David Walluck 0:1.0.12-6 +- call %%update_maven_depmap + +* Wed Aug 20 2008 David Walluck 0:1.0.12-5 +- add pom +- fix component-info.xml + +* Wed Aug 13 2008 David Walluck 0:1.0.12-4 +- bump release +- don't duplicate repolib in main package +- own repolib dirs +- fix repolib permissions + +* Thu May 29 2008 Permaine Cheung 0:1.0.12-2 +- First JPP 5 build + +* Tue Mar 13 2007 Vivek Lakshmanan 0:1.0.12-1jpp.ep1.2 +- Fix repolib location + +* Tue Mar 13 2007 Fernando Nasser 0:1.0.12-1jpp.ep1.1 +- New repolib location + +* Mon Feb 19 2007 Vivek Lakshmanan 0:1.0.12-1jpp.el4ep1.2 +- Add -brew suffix + +* Fri Feb 16 2007 Vivek Lakshmanan 0:1.0.12-1jpp.el4ep1.1 +- Add repolib support + +* Tue May 23 2006 Fernando Nasser 0:1.0.12-1jpp_1rh +- First Red Hat build with new name + +* Thu May 04 2006 Ralph Apel 0:1.0.12-1jpp +- 1.0.12 +- Change name to gnu-getopt, Provide/Obsolete gnu.getopt +- Still provide gnu.getopt.jar as symlink + +* Tue Dec 07 2004 David Walluck 0:1.0.10-1jpp +- 1.0.10 + +* Mon Aug 23 2004 Ralph Apel 0:1.0.9-5jpp +- Build with ant-1.6.2 + +* Fri May 09 2003 David Walluck 0:1.0.9-4jpp +- fix groups + +* Fri May 09 2003 David Walluck 0:1.0.9-3jpp +- update for JPackage 1.5 + +* Wed Mar 26 2003 Nicolas Mailhot 1.0.9-2jpp +- For jpackage-utils 1.5 + +* Sat Feb 16 2002 Guillaume Rousse 1.0.9-1jpp +- 1.0.9 +- build script merged upstream + +* Sat Jan 19 2002 Guillaume Rousse 1.0.8-2jpp +- versioned dir for javadoc +- no dependencies for javadoc package +- additional sources in individual archives +- section macro + +* Sat Dec 8 2001 Guillaume Rousse 1.0.8-1jpp +- first JPackage release