forked from pool/apache-commons-dbcp
Do not provide the hibernate_jdbc_cache alternative
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 5 07:37:40 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Do not provide the hibernate_jdbc_cache alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 30 10:54:53 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Tue Apr 30 10:54:53 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -40,11 +40,8 @@ BuildRequires: javapackages-local >= 6
|
|||||||
BuildRequires: jdbc-stdext >= 2.0
|
BuildRequires: jdbc-stdext >= 2.0
|
||||||
BuildRequires: junit >= 3.8.1
|
BuildRequires: junit >= 3.8.1
|
||||||
BuildRequires: xerces-j2
|
BuildRequires: xerces-j2
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(preun): update-alternatives
|
|
||||||
Provides: %{short_name} = %{version}-%{release}
|
Provides: %{short_name} = %{version}-%{release}
|
||||||
Obsoletes: %{short_name} < %{version}-%{release}
|
Obsoletes: %{short_name} < %{version}-%{release}
|
||||||
Provides: hibernate_jdbc_cache
|
|
||||||
Provides: jakarta-%{short_name} = %{version}-%{release}
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -105,24 +102,10 @@ install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
|||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr dist/docs/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr dist/docs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
%fdupes -s %{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}/%{name}2.jar 60
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
update-alternatives --remove hibernate_jdbc_cache %{_javadir}/%{name}2.jar
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{_javadir}/%{short_name}.jar
|
%{_javadir}/%{short_name}.jar
|
||||||
%{_javadir}/hibernate_jdbc_cache.jar
|
|
||||||
%ghost %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|||||||
Reference in New Issue
Block a user