Группа :: Разработка/Прочее
Пакет: jargs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jargs
Version: 1.0
Release: alt2_28jpp11
Summary: Java command line option parsing suite
License: BSD
URL: http://jargs.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/net/sf/jargs/1.0/jargs-1.0.pom
# Update source and target for JDK 11
Patch0: %{name}-java-version.patch
BuildArch: noarch
BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: junit
Source44: import.info
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
%{summary}.
%description
This project provides a convenient, compact, pre-packaged and
comprehensively documented suite of command line option parsers
for the use of Java programmers.
Initially, parsing compatible with GNU-style 'getopt' is provided.
%prep
%setup -q
%patch0 -p1
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;
%build
%ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 runtimejar javadoc
%install
%mvn_artifact %{SOURCE1} lib/%{name}.jar
%mvn_alias net.sf:%{name} %{name}:%{name}
%mvn_install -J doc
%files -f .mfiles
%doc README TODO doc/CHANGES
%doc --no-dereference LICENCE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENCE
%changelog
…
Полный changelog можно просмотреть здесь
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jargs
Version: 1.0
Release: alt2_28jpp11
Summary: Java command line option parsing suite
License: BSD
URL: http://jargs.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/net/sf/jargs/1.0/jargs-1.0.pom
# Update source and target for JDK 11
Patch0: %{name}-java-version.patch
BuildArch: noarch
BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: junit
Source44: import.info
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
%{summary}.
%description
This project provides a convenient, compact, pre-packaged and
comprehensively documented suite of command line option parsers
for the use of Java programmers.
Initially, parsing compatible with GNU-style 'getopt' is provided.
%prep
%setup -q
%patch0 -p1
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;
%build
%ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 runtimejar javadoc
%install
%mvn_artifact %{SOURCE1} lib/%{name}.jar
%mvn_alias net.sf:%{name} %{name}:%{name}
%mvn_install -J doc
%files -f .mfiles
%doc README TODO doc/CHANGES
%doc --no-dereference LICENCE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENCE
%changelog
…
Полный changelog можно просмотреть здесь