Fridrich Strba 2018-10-18 11:33:06 +00:00 committed by Git OBS Bridge
parent b8d4221046
commit d44c841121
2 changed files with 17 additions and 0 deletions

View File

@ -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> Mon Oct 15 14:53:58 UTC 2018 - Fridrich Strba <fstrba@suse.com>

View File

@ -30,6 +30,7 @@ Source0: https://github.com/jboss-javassist/javassist/archive/%{tar_versi
BuildRequires: ant >= 1.6 BuildRequires: ant >= 1.6
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 9 BuildRequires: java-devel >= 9
BuildRequires: javapackages-local
BuildRequires: javapackages-tools BuildRequires: javapackages-tools
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -91,6 +92,11 @@ cp -p %{name}.jar \
%{buildroot}/%{_javadir}/%{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) (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 # demo
mkdir -p %{buildroot}/%{_datadir}/%{name}-%{version} mkdir -p %{buildroot}/%{_datadir}/%{name}-%{version}
cp -pr sample/* %{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} %dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/License.html %doc %{_docdir}/%{name}-%{version}/License.html
%{_javadir}/*.jar %{_javadir}/*.jar
%{_mavenpomdir}/*
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml*
%endif
%files demo %files demo
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)