Added Maven POM.
This commit is contained in:
parent
d070ea528f
commit
4940125b3b
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ noarch
|
|||||||
|
|
||||||
jdepend-2.9.zip
|
jdepend-2.9.zip
|
||||||
clarkware-jdepend-5798059.tar.gz
|
clarkware-jdepend-5798059.tar.gz
|
||||||
|
/jdepend-2.9.1.pom
|
||||||
|
6
jdepend-2.9.1.pom
Normal file
6
jdepend-2.9.1.pom
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>jdepend</groupId>
|
||||||
|
<artifactId>jdepend</artifactId>
|
||||||
|
<version>2.9.1</version>
|
||||||
|
</project>
|
21
jdepend.spec
21
jdepend.spec
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
Name: jdepend
|
Name: jdepend
|
||||||
Version: 2.9.1
|
Version: 2.9.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Java Design Quality Metrics
|
Summary: Java Design Quality Metrics
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -38,6 +38,7 @@ URL: http://www.clarkware.com/
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
#Downloaded from http://github.com/clarkware/jdepend/tarball/2.9.1
|
#Downloaded from http://github.com/clarkware/jdepend/tarball/2.9.1
|
||||||
Source0: clarkware-jdepend-5798059.tar.gz
|
Source0: clarkware-jdepend-5798059.tar.gz
|
||||||
|
Source1: %{name}-%{version}.pom
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||||
@ -76,7 +77,6 @@ find . -type d -exec chmod 755 {} \;
|
|||||||
ant jar javadoc
|
ant jar javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
# jars
|
# jars
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||||
install -m 644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
install -m 644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||||
@ -89,14 +89,24 @@ rm -rf build/docs/api
|
|||||||
# demo
|
# demo
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||||
cp -pr sample $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
|
%post
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%update_maven_depmap
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%update_maven_depmap
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README LICENSE docs
|
%doc README LICENSE docs
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
|
%{_mavenpomdir}/*
|
||||||
|
%{_mavendepmapfragdir}/*
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -108,6 +118,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user