This commit is contained in:
parent
c219cc41d8
commit
78018d146b
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>
|
24
jdepend.spec
24
jdepend.spec
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -23,13 +23,14 @@ Release: 0
|
|||||||
Summary: Java Design Quality Metrics
|
Summary: Java Design Quality Metrics
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: http://www.clarkware.com/
|
URL: http://www.clarkware.com/
|
||||||
Source0: %{url}software/%{name}-%{version}.tar.bz2
|
Source0: %{url}software/%{name}-%{version}.tar.bz2
|
||||||
|
Source1: https://repo1.maven.org/maven2/jdepend/%{name}/%{version}/%{name}-%{version}.pom
|
||||||
Patch0: jdepend-target16.patch
|
Patch0: jdepend-target16.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
|
BuildRequires: javapackages-local
|
||||||
Obsoletes: %{name}-javadoc
|
Obsoletes: %{name}-javadoc
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -70,17 +71,28 @@ install -d -m 755 %{buildroot}%{_javadir}
|
|||||||
install -m 644 dist/%{name}-%{version}.jar \
|
install -m 644 dist/%{name}-%{version}.jar \
|
||||||
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||||
|
|
||||||
|
# pom
|
||||||
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
|
install -m 655 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
|
||||||
|
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
|
||||||
|
|
||||||
# demo
|
# demo
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
||||||
cp -pr sample %{buildroot}%{_datadir}/%{name}
|
cp -pr sample %{buildroot}%{_datadir}/%{name}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc CHANGES README LICENSE
|
%doc CHANGES README
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
|
%{_mavenpomdir}/*
|
||||||
|
%if %{defined _maven_repository}
|
||||||
|
%{_mavendepmapfragdir}/%{name}
|
||||||
|
%else
|
||||||
|
%{_datadir}/maven-metadata/%{name}.xml*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files demo
|
%files demo
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user