Workaround for Libreoffice 24.2.0.1: symbolic link

This commit is contained in:
Sandino Araico Sánchez 2024-01-22 22:26:19 -06:00
parent 3cf2446271
commit cbad7c811b
No known key found for this signature in database
GPG key ID: 90E64E484EED133A

View file

@ -2,7 +2,7 @@
## (rpmautospec version 0.3.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 2;
release_number = 3;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
@ -58,6 +58,9 @@ developing applications that use %{name}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}{%{_includedir},%{_datadir}}/zxcvbn
install -p -m 0644 *.h %{buildroot}%{_includedir}/zxcvbn
# Libreoffice 24.2.0.1 saca error de que no encuentra la zxcvbn.h
# Este es el workaround:
ln -s zxcvbn/zxcvbn.h %{buildroot}%{_includedir}/
cp -a libzxcvbn.so* %{buildroot}%{_libdir}
install -p -m 0755 dictgen %{buildroot}%{_bindir}
install -p -m 0644 zxcvbn.dict %{buildroot}%{_datadir}/zxcvbn
@ -77,10 +80,15 @@ make test
%files devel
%{_includedir}/zxcvbn
# Workaround para libreoffice 24.2.0.1
%{_includedir}/zxcvbn.h
%{_libdir}/libzxcvbn.so
%changelog
* Mon Jan 22 2024 Sandino Araico Sánchez <sandino@sandino.net> - 2.5-3
- Workaround for Libreoffice 24.2.0.1: symbolic link
* Tue Jan 16 2024 Sandino Araico Sánchez <sandino@sandino.net> - 2.5-2
- Disabled broken debug package