Added Maven POM.

This commit is contained in:
Marek Goldmann 2011-06-03 01:05:41 -04:00
parent d070ea528f
commit 4940125b3b
4 changed files with 25 additions and 5 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ noarch
jdepend-2.9.zip
clarkware-jdepend-5798059.tar.gz
/jdepend-2.9.1.pom

6
jdepend-2.9.1.pom Normal file
View File

@ -0,0 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>jdepend</groupId>
<artifactId>jdepend</artifactId>
<version>2.9.1</version>
</project>

View File

@ -30,7 +30,7 @@
Name: jdepend
Version: 2.9.1
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 0
Summary: Java Design Quality Metrics
License: BSD
@ -38,6 +38,7 @@ URL: http://www.clarkware.com/
Group: Development/Libraries
#Downloaded from http://github.com/clarkware/jdepend/tarball/2.9.1
Source0: clarkware-jdepend-5798059.tar.gz
Source1: %{name}-%{version}.pom
BuildRequires: ant
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
@ -76,7 +77,6 @@ find . -type d -exec chmod 755 {} \;
ant jar javadoc
%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
@ -89,14 +89,24 @@ rm -rf build/docs/api
# demo
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr sample $RPM_BUILD_ROOT%{_datadir}/%{name}
# pom
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
# depmap
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%defattr(-,root,root)
%doc README LICENSE docs
%{_javadir}/*
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%files javadoc
%defattr(-,root,root)
@ -108,6 +118,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/%{name}
%changelog
* Fri Jun 03 2011 Marek Goldmann <mgoldman@redhat.com> 0:2.9.1-4
- Added Maven POM
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.9.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View File

@ -1 +1 @@
4ca18dac911aa1342a2a26f6ae34fcc5 clarkware-jdepend-5798059.tar.gz
7b14cf69b32fef975ed95d3ddf6af3b5 jdepend-2.9.1.pom