Use the new maven macro.
This commit is contained in:
parent
328f403a13
commit
1de3859075
@ -4,7 +4,7 @@
|
||||
|
||||
Name: beust-%{short_name}
|
||||
Version: 1.17
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Java framework for parsing command line parameters
|
||||
License: ASL 2.0
|
||||
Group: Development/Libraries
|
||||
@ -23,8 +23,6 @@ BuildRequires: testng
|
||||
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
Requires(post): jpackage-utils
|
||||
Requires(postun): jpackage-utils
|
||||
|
||||
%description
|
||||
JCommander is a very small Java framework
|
||||
@ -56,18 +54,12 @@ install -p -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{
|
||||
# pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_to_maven_depmap %{group_id} %{short_name} %{version} JPP %{name}
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||
|
||||
# javadoc
|
||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%post
|
||||
%update_maven_depmap
|
||||
|
||||
%postun
|
||||
%update_maven_depmap
|
||||
|
||||
%files
|
||||
%doc license.txt README.markdown
|
||||
%{_javadir}/%{name}.jar
|
||||
@ -79,6 +71,9 @@ cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.17-3
|
||||
- Use the new maven macro.
|
||||
|
||||
* Mon May 16 2011 Jaromir Capik <jcapik@redhat.com> - 1.17-2
|
||||
- Unwanted comment removal
|
||||
- Target javadoc:jar replaced with javadoc:aggregate
|
||||
|
Loading…
Reference in New Issue
Block a user