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