Update to upstream version 1.30
- Build with xmvn
This commit is contained in:
parent
04d8b6e724
commit
b07403c4c2
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/beust-jcommander-1.17.tar.xz
|
||||
/jcommander-1.30.tar.gz
|
||||
|
@ -1,77 +1,49 @@
|
||||
|
||||
%global short_name jcommander
|
||||
%global group_id com.beust
|
||||
|
||||
Name: beust-%{short_name}
|
||||
Version: 1.17
|
||||
Release: 6%{?dist}
|
||||
Version: 1.30
|
||||
Release: 1%{?dist}
|
||||
Summary: Java framework for parsing command line parameters
|
||||
License: ASL 2.0
|
||||
Group: Development/Libraries
|
||||
URL: http://jcommander.org/
|
||||
# git clone git://github.com/cbeust/jcommander.git
|
||||
# cd jcommander
|
||||
# git archive --prefix="beust-jcommander-1.17/" --format=tar jcommander-1.17 | xz > beust-jcommander-1.17.tar.xz
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
|
||||
Source0: https://github.com/cbeust/%{short_name}/archive/%{short_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-enforcer-plugin
|
||||
BuildRequires: testng
|
||||
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
BuildRequires: xmvn
|
||||
|
||||
%description
|
||||
JCommander is a very small Java framework
|
||||
that makes it trivial to parse command line
|
||||
parameters (with annotations).
|
||||
JCommander is a very small Java framework that makes it trivial to
|
||||
parse command line parameters (with annotations).
|
||||
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
Group: Documentation
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
This package contains the %{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# removing spurious-executable-perm
|
||||
%setup -q -n %{short_name}-%{short_name}-%{version}
|
||||
chmod -x license.txt
|
||||
|
||||
%build
|
||||
mvn-rpmbuild install javadoc:aggregate
|
||||
%mvn_file : %{name}
|
||||
%mvn_build -f
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 755 %{buildroot}%{_javadir}
|
||||
install -p -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
%mvn_install
|
||||
|
||||
# pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||
|
||||
# javadoc
|
||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files
|
||||
%files -f .mfiles
|
||||
%doc license.txt notice.md README.markdown
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%doc license.txt notice.md
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Jan 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.30-1
|
||||
- Update to upstream version 1.30
|
||||
- Build with xmvn
|
||||
|
||||
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.17-6
|
||||
- Install NOTICE files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user