This commit is contained in:
parent
20bc5522c9
commit
47de6c4c74
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 29 10:51:58 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Install and package the maven artifact
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 5 06:12:32 UTC 2018 - fstrba@suse.com
|
||||
|
||||
|
24
qdox.spec
24
qdox.spec
@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ Release: 0
|
||||
Summary: Extract class/interface/method definitions from sources
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://qdox.codehaus.org/
|
||||
URL: http://qdox.codehaus.org/
|
||||
# svn checkout https://svn.codehaus.org/qdox/tags/qdox-1.12.1 qdox-1.12.1
|
||||
# tar --exclude-vcs -cJf qdox-1.12.1.tar.xz qdox-1.12.1
|
||||
Source0: qdox-%{version}.tar.xz
|
||||
@ -40,11 +40,10 @@ BuildRequires: ant >= 1.6
|
||||
BuildRequires: byaccj
|
||||
BuildRequires: gpg2
|
||||
BuildRequires: java-cup-bootstrap
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: jflex-bootstrap
|
||||
BuildRequires: xz
|
||||
Obsoletes: %{name}-javadoc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -105,8 +104,8 @@ ant -Dant.build.javac.source=6 -Dant.build.javac.target=6 -Dbuild.sysclasspath=o
|
||||
|
||||
%install
|
||||
# jars
|
||||
mkdir -p %{buildroot}%{_javadir}
|
||||
cp -p target/%{name}-%{version}.jar \
|
||||
install -d -m 0755 %{buildroot}%{_javadir}
|
||||
install -pm 644 target/%{name}-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
install -d -m 755 %{buildroot}%{repodir}
|
||||
@ -116,11 +115,22 @@ install -d -m 755 %{buildroot}%{repodirsrc}
|
||||
install -p -m 644 %{SOURCE0} %{buildroot}%{repodirsrc}
|
||||
cp -p %{buildroot}%{_javadir}/qdox.jar %{buildroot}%{repodirlib}
|
||||
|
||||
# pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
|
||||
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc LICENSE.txt
|
||||
%license LICENSE.txt
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/%{name}-%{version}.jar
|
||||
%{_mavenpomdir}/*
|
||||
%if %{defined _maven_repository}
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%else
|
||||
%{_datadir}/maven-metadata/%{name}.xml*
|
||||
%endif
|
||||
|
||||
%files repolib
|
||||
%defattr(0644,root,root,0755)
|
||||
|
Loading…
x
Reference in New Issue
Block a user