Remove perl script and howto docs

File `db4-entities.pl` has to be removed because we can
not be sure about it's license. Even if we implied the
same license as other parts of the package, the
LicenseRef-OASIS-spec is only allowed for content. This
file is a script, not content. It can not be packaged.

The howto upgrade guide, that is also removed by this,
has unspecified license. Currently we are not able to
determine in a provable way the license with which are
these files licensed with. It is safer to remove them
and not package them.

Ref: https://gitlab.com/fedora/legal/fedora-license-data/-/issues/395#note_2014842740
This commit is contained in:
Ales Nezbeda 2024-08-19 15:53:15 +02:00
parent 60d2fe0b3d
commit 1b7da3d5ed

View File

@ -1,6 +1,6 @@
Name: docbook5-schemas
Version: 5.1
Release: 11%{?dist}
Release: 12%{?dist}
Summary: Norman Walsh's schemas (DTD, Relax NG, W3C schema) for Docbook 5.X
@ -39,15 +39,30 @@ mkdir 5.1
cd 5.0
unzip %{SOURCE0}
mv docbook-5.0/* .
#Prepare docs to right place
# Remove perl script
rm tools/db4-entities.pl
rm tools/db4-upgrade.xsl
rmdir tools/
# Remove howto docs
rm docs/howto.html
rm docs/howto.pdf
rm docs/howto.xml
rm -rf docs/images/*
# Prepare docs to right place
mv docs/ ../
mv README ../
mv ChangeLog ../
cd ..
#Unzip Docbook 5.1 specification
# Unzip Docbook 5.1 specification
cd 5.1
unzip %{SOURCE1}
rm tools/db4-entities.pl
rm tools/db4-upgrade.xsl
rmdir tools/
mv schemas/rng .
mv schemas/sch .
mv schemas/catalog.xml .
@ -246,10 +261,6 @@ mkdir -p ${DOCBOOK5DIR}/schema/dtd/5.0
mkdir -p ${DOCBOOK5DIR}/schema/xsd/5.0
install -m644 5.0/dtd/* ${DOCBOOK5DIR}/schema/dtd/5.0
install -m644 5.0/xsd/* ${DOCBOOK5DIR}/schema/xsd/5.0
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m755 %{version}/tools/db4-entities.pl $RPM_BUILD_ROOT%{_bindir}
mkdir -p ${DOCBOOK5DIR}/stylesheet/upgrade
install -m644 %{version}/tools/db4-upgrade.xsl ${DOCBOOK5DIR}/stylesheet/upgrade
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xml
install -m644 docbook-5.xml $RPM_BUILD_ROOT%{_sysconfdir}/xml/docbook-5.xml
@ -320,8 +331,6 @@ fi
%dir %{_datadir}/xml/docbook5/schema/rng
%dir %{_datadir}/xml/docbook5/schema/sch
%dir %{_datadir}/xml/docbook5/schema/xsd
%dir %{_datadir}/xml/docbook5/stylesheet
%dir %{_datadir}/xml/docbook5/stylesheet/upgrade
# Docbook5.0
%{_datadir}/xml/docbook5/schema/dtd/5.0
%{_datadir}/xml/docbook5/schema/rng/5.0
@ -330,10 +339,11 @@ fi
# Docbook 5.1
%{_datadir}/xml/docbook5/schema/rng/%{version}
%{_datadir}/xml/docbook5/schema/sch/%{version}
%{_datadir}/xml/docbook5/stylesheet/upgrade/db4-upgrade.xsl
%{_bindir}/db4-entities.pl
%changelog
* Mon Aug 19 2024 Ales Nezbeda <anezbeda@redhat.com> - 5.1-12
- Remove unlicensed perl script and howto docs
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.1-11
- Bump release for June 2024 mass rebuild