Fridrich Strba 2018-12-15 14:31:52 +00:00 committed by Git OBS Bridge
parent 715a5bc92b
commit 8e4212c2f2

View File

@ -50,7 +50,6 @@ Requires(post): update-alternatives
Requires(preun): update-alternatives
Provides: %{short_name} = %{version}-%{release}
Obsoletes: %{short_name} < %{version}-%{release}
Provides: hibernate_jdbc_cache
Provides: jakarta-%{short_name} = %{version}-%{release}
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
BuildArch: noarch
@ -113,18 +112,6 @@ install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/apache-%{short_name}-%{versio
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr dist/docs/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
# hibernate_jdbc_cache ghost symlink
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
ln -sf %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar %{buildroot}%{_javadir}/hibernate_jdbc_cache.jar
%post
update-alternatives --install %{_javadir}/hibernate_jdbc_cache.jar \
hibernate_jdbc_cache %{_javadir}/apache-%{short_name}.jar 60
%preun
if [ $1 -eq 0 ] ; then
update-alternatives --remove hibernate_jdbc_cache %{_javadir}/apache-%{short_name}.jar
fi
%files
%license LICENSE.txt
@ -132,8 +119,6 @@ fi
%{_javadir}/apache-%{short_name}-%{version}.jar
%{_javadir}/%{short_name}.jar
%{_javadir}/%{short_name}-%{version}.jar
%{_javadir}/hibernate_jdbc_cache.jar
%ghost %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar
%{_mavenpomdir}/apache-%{short_name}-%{version}.pom
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}