- Fixing #832140 - jdepend post error

- Minor spec file changes according to the latest guidelines
This commit is contained in:
Jaromir Capik 2012-06-19 18:18:04 +02:00
parent 65e5410b50
commit d7660825b0

View File

@ -30,7 +30,7 @@
Name: jdepend Name: jdepend
Version: 2.9.1 Version: 2.9.1
Release: 5%{?dist} Release: 6%{?dist}
Epoch: 0 Epoch: 0
Summary: Java Design Quality Metrics Summary: Java Design Quality Metrics
License: BSD License: BSD
@ -39,9 +39,14 @@ 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 Source1: %{name}-%{version}.pom
BuildRequires: ant
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: java
Requires: jpackage-utils
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: jpackage-utils
%description %description
JDepend traverses a set of Java class and source file directories and JDepend traverses a set of Java class and source file directories and
@ -79,8 +84,7 @@ ant jar javadoc
%install %install
# 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}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
# javadoc # javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@ -93,31 +97,26 @@ cp -pr sample $RPM_BUILD_ROOT%{_datadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
# depmap # depmap
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name} %add_maven_depmap JPP-%{name}.pom %{name}.jar
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files %files
%defattr(-,root,root)
%doc README LICENSE docs %doc README LICENSE docs
%{_javadir}/* %{_javadir}/*
%{_mavenpomdir}/* %{_mavenpomdir}/*
%{_mavendepmapfragdir}/* %{_mavendepmapfragdir}/*
%files javadoc %files javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%files demo %files demo
%defattr(-,root,root)
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Fri Jun 19 2012 Jaromir Capik <jcapik@redhat.com> 0:2.9.1-6
- Fixing #832140 - jdepend post error
- Minor spec file changes according to the latest guidelines
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.9.1-5 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.9.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild