Remove -music sub-package due of removing lilypond dependency

This commit is contained in:
Josef Řídký 2021-01-18 12:18:55 +01:00
parent a10024bec0
commit aa5b8a8f29

View File

@ -1,6 +1,6 @@
Name: asciidoc Name: asciidoc
Version: 9.0.4 Version: 9.0.4
Release: 3%{?dist} Release: 4%{?dist}
Summary: Text based document generation Summary: Text based document generation
License: GPL+ and GPLv2+ License: GPL+ and GPLv2+
@ -17,7 +17,6 @@ BuildRequires: dblatex
BuildRequires: docbook-style-xsl BuildRequires: docbook-style-xsl
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: libxslt BuildRequires: libxslt
BuildRequires: lilypond
BuildRequires: source-highlight BuildRequires: source-highlight
BuildRequires: texlive-dvipng-bin BuildRequires: texlive-dvipng-bin
BuildRequires: texlive-dvisvgm-bin BuildRequires: texlive-dvisvgm-bin
@ -55,24 +54,22 @@ Requires: texlive-dvipng-bin
%description latex %description latex
%{summary}. %{summary}.
%package music
Summary: Support for asciidoc music output
Requires: %{name} = %{version}-%{release}
Requires: lilypond
%description music
%{summary}.
%prep %prep
%autosetup -n %{name}-py3-%{version} -p1 %autosetup -n %{name}-py3-%{version} -p1
# Convert files to utf-8 # Convert files to utf-8
for file in doc/*.dict website/*.dict; do for file in README.asciidoc doc/*.dict website/*.dict; do
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
touch -r $file $file.new && \ touch -r $file $file.new && \
mv $file.new $file mv $file.new $file
done done
# Remove music files
rm -rf %{buildroot}{%{_sysconfdir}/asciidoc/filters/music,%{_sysconfdir}/asciidoc/filters/music/*.conf,%{_sysconfdir}/asciidoc/filters/music/*.py}
# Fix python shebang
grep -rl '#!/usr/bin/env python' | xargs -r \
sed -i -e '1s@#!/usr/bin/env python3\?$@#!%{__python3}@'
%build %build
autoreconf -v autoreconf -v
%configure %configure
@ -152,12 +149,10 @@ rm -f %{buildroot}/%{_mandir}/man1/testasciidoc.1*
%{_sysconfdir}/asciidoc/filters/latex/*.py %{_sysconfdir}/asciidoc/filters/latex/*.py
%config(noreplace) %{_sysconfdir}/asciidoc/filters/latex/*.conf %config(noreplace) %{_sysconfdir}/asciidoc/filters/latex/*.conf
%files music
%dir %{_sysconfdir}/asciidoc/filters/music
%config(noreplace) %{_sysconfdir}/asciidoc/filters/music/*.conf
%{_sysconfdir}/asciidoc/filters/music/*.py
%changelog %changelog
* Mon Jan 18 2021 Josef Ridky <jridky@redhat.com> - 9.0.4-4
- remove asciidoc-music sub-package (lilypond requirement)
* Thu Jan 14 2021 Josef Ridky <jridky@redhat.com> - 9.0.4-3 * Thu Jan 14 2021 Josef Ridky <jridky@redhat.com> - 9.0.4-3
- remove ImageMagic requirement - remove ImageMagic requirement