Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Mat Booth
4f9870c8b7 No longer have to skip building tests. 2013-02-12 00:22:22 +00:00
Mat Booth
c6b10a3da5 Get jcommander building without xmvn so we can issue an F18 update 2013-02-11 22:39:40 +00:00

View file

@ -2,15 +2,22 @@
Name: beust-%{short_name}
Version: 1.30
Release: 2%{?dist}
Release: 2%{?dist}.2
Summary: Java framework for parsing command line parameters
License: ASL 2.0
Group: Development/Libraries
URL: http://jcommander.org/
Source0: https://github.com/cbeust/%{short_name}/archive/%{short_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: beust-jcommander
BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: maven-local
BuildRequires: testng >= 6.1.1
Requires: java
Requires: jpackage-utils
%description
JCommander is a very small Java framework that makes it trivial to
@ -19,28 +26,49 @@ parse command line parameters (with annotations).
%package javadoc
Summary: API documentation for %{name}
Group: Documentation
Requires: jpackage-utils
%description javadoc
This package contains the %{summary}.
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{short_name}-%{short_name}-%{version}
chmod -x license.txt
%build
%mvn_file : %{name}
%mvn_build -f
mvn-rpmbuild install javadoc:aggregate
%install
%mvn_install
# jars
install -d -m 755 %{buildroot}%{_javadir}
install -p -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
%files -f .mfiles
# 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
%doc license.txt notice.md README.markdown
%{_javadir}/%{name}.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%files javadoc -f .mfiles-javadoc
%files javadoc
%doc license.txt notice.md
%{_javadocdir}/%{name}
%changelog
* Mon Feb 11 2013 Mat Booth <fedora@matbooth.co.uk> - 1.30-2.2
- Allow tests to be built now a newer testng is available.
* Mon Feb 11 2013 Mat Booth <fedora@matbooth.co.uk> - 1.30-2.1
- Remove experimental maven macros to allow building on F18
* Wed Feb 6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.30-2
- Replace BR: xmvn with maven-local