This commit is contained in:
parent
b8d4221046
commit
d44c841121
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 18 11:32:34 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Install and package the maven pom and metadata files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 15 14:53:58 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@ -30,6 +30,7 @@ Source0: https://github.com/jboss-javassist/javassist/archive/%{tar_versi
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 9
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-tools
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -91,6 +92,11 @@ cp -p %{name}.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)
|
||||
|
||||
# pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar
|
||||
|
||||
# demo
|
||||
mkdir -p %{buildroot}/%{_datadir}/%{name}-%{version}
|
||||
cp -pr sample/* %{buildroot}/%{_datadir}/%{name}-%{version}
|
||||
@ -111,6 +117,12 @@ cp -p License.html %{buildroot}/%{_docdir}/%{name}-%{version}
|
||||
%dir %{_docdir}/%{name}-%{version}
|
||||
%doc %{_docdir}/%{name}-%{version}/License.html
|
||||
%{_javadir}/*.jar
|
||||
%{_mavenpomdir}/*
|
||||
%if %{defined _maven_repository}
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%else
|
||||
%{_datadir}/maven-metadata/%{name}.xml*
|
||||
%endif
|
||||
|
||||
%files demo
|
||||
%defattr(0644,root,root,0755)
|
||||
|
Loading…
Reference in New Issue
Block a user