# 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: jopt-simple Version: 3.3 Release: %mkrel 3 Summary: A Java command line parser License: MIT URL: http://jopt-simple.sourceforge.net # https://github.com/pholser/jopt-simple/tarball/jopt-simple-3.3 Group: Development/Java Source0: https://download.github.com/pholser-jopt-simple-jopt-simple-%{version}-0-g59a05aa.tar.gz Patch0: jopt-simple-buildfixes.patch BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel >= 0:1.6.0 BuildRequires: maven maven-scm BuildRequires: maven-enforcer-plugin maven-dependency-plugin Requires: java >= 0:1.5.0 Requires: jpackage-utils # Unit testing is disabled due to missing dependencies. #BuildRequires: joda-time #BuildRequires: junit4 #BuildRequires: continuous-testing-toolkit #BuildRequires: ant %description A Java library for parsing command line options. %package javadoc Summary: Javadoc for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n pholser-jopt-simple-9d4f1b6 %patch0 -p1 -b .buildfixes %build mvn-rpmbuild install javadoc:aggregate -Dmaven.test.skip=true %install mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir} install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom mkdir -p $RPM_BUILD_ROOT%{_javadir} install -m 644 target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rf target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %doc LICENSE.txt %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %doc LICENSE.txt %{_javadocdir}/%{name} %changelog * Sat Jan 12 2013 umeabot <umeabot> 3.3-3.mga3 + Revision: 355549 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Jan 12 2013 dmorgan <dmorgan> 3.3-2.mga3 + Revision: 351571 - Fix java version - New version - Remove javancss-maven-plugin support * Tue Jan 08 2013 dmorgan <dmorgan> 3.2-2.mga3 + Revision: 342985 - Remove findbugs-maven-plugin deps * Wed Dec 07 2011 dmorgan <dmorgan> 3.2-1.mga2 + Revision: 178390 - Clean spec file + gil <gil> - fix version - update to 3.2 - imported package jopt-simple