forked from pool/matrix-synapse
Accepting request 1010936 from home:darix:apps
- Add workaround for poetry >= 1.3.0 (boo#1204312) Also add the unnormalized name to the Metadata so that the checks inside synapse work correctly. OBS-URL: https://build.opensuse.org/request/show/1010936 OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=242
This commit is contained in:
parent
803e0508bc
commit
ae120e074d
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 14 13:34:26 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
- Add workaround for poetry >= 1.3.0 (boo#1204312)
|
||||||
|
Also add the unnormalized name to the Metadata so that the
|
||||||
|
checks inside synapse work correctly.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 9 21:58:05 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Sun Oct 9 21:58:05 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -333,6 +333,14 @@ cp %{S:48} README.SUSE
|
|||||||
install -d -m 0755 %{buildroot}%{_libexecdir}/%{pkgname}
|
install -d -m 0755 %{buildroot}%{_libexecdir}/%{pkgname}
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
|
||||||
|
# workaround for poetry >= 1.3.0 boo#1204312
|
||||||
|
METADATA_FILE="%{buildroot}%{python3_sitearch}/%{eggname}-%{version}.dist-info/METADATA"
|
||||||
|
if [ -e ${METADATA_FILE} ] ; then
|
||||||
|
perl -p -i.backup -e 's/(Provides-Extra: url-preview\n)/${1}Provides-Extra: url_preview\n/g' ${METADATA_FILE}
|
||||||
|
diff -urN ${METADATA_FILE}{.backup,} ||:
|
||||||
|
rm -f ${METADATA_FILE}.backup
|
||||||
|
fi
|
||||||
|
|
||||||
install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_libexecdir}/%{pkgname}/
|
install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_libexecdir}/%{pkgname}/
|
||||||
# move scripts to the old place.
|
# move scripts to the old place.
|
||||||
mv %{buildroot}%{_bindir}/* %{buildroot}%{_libexecdir}/%{pkgname}/
|
mv %{buildroot}%{_bindir}/* %{buildroot}%{_libexecdir}/%{pkgname}/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user