don't build documentation during modular build
This commit is contained in:
parent
762124890f
commit
461fcc0f27
19
opensp.spec
19
opensp.spec
@ -12,7 +12,9 @@ Patch3: opensp-manpage.patch
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
|
|
||||||
|
%if ! 0%{?_module_build}
|
||||||
BuildRequires: xmlto, jadetex
|
BuildRequires: xmlto, jadetex
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenSP is an implementation of the ISO/IEC 8879:1986 standard SGML
|
OpenSP is an implementation of the ISO/IEC 8879:1986 standard SGML
|
||||||
@ -40,7 +42,11 @@ iconv -f latin1 -t utf8 ChangeLog -o ChangeLog.tmp
|
|||||||
mv -f ChangeLog.tmp ChangeLog
|
mv -f ChangeLog.tmp ChangeLog
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-dependency-tracking --disable-static --enable-http \
|
%configure \
|
||||||
|
%if 0%{?_module_build}
|
||||||
|
--disable-doc-build \
|
||||||
|
%endif
|
||||||
|
--disable-dependency-tracking --disable-static --enable-http \
|
||||||
--enable-default-catalog=%{_sysconfdir}/sgml/catalog \
|
--enable-default-catalog=%{_sysconfdir}/sgml/catalog \
|
||||||
--enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml
|
--enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -56,13 +62,17 @@ rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|||||||
# oMy, othis ois osilly.
|
# oMy, othis ois osilly.
|
||||||
for file in nsgmls sgmlnorm spam spent sx ; do
|
for file in nsgmls sgmlnorm spam spent sx ; do
|
||||||
ln -s o$file $RPM_BUILD_ROOT%{_bindir}/$file
|
ln -s o$file $RPM_BUILD_ROOT%{_bindir}/$file
|
||||||
|
%if ! 0%{?_module_build}
|
||||||
echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1
|
echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1
|
||||||
|
%endif
|
||||||
done
|
done
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rename sx to sgml2xml.
|
# Rename sx to sgml2xml.
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml
|
mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml
|
||||||
|
%if ! 0%{?_module_build}
|
||||||
mv $RPM_BUILD_ROOT%{_mandir}/man1/{sx,sgml2xml}.1
|
mv $RPM_BUILD_ROOT%{_mandir}/man1/{sx,sgml2xml}.1
|
||||||
|
%endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Clean out (installed) redundant copies of the docs and DTDs.
|
# Clean out (installed) redundant copies of the docs and DTDs.
|
||||||
@ -83,13 +93,17 @@ make check || : # TODO: failures as of 1.5.2 :(
|
|||||||
|
|
||||||
%files -f sp5.lang
|
%files -f sp5.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%if ! %{?_module_build}
|
||||||
%doc doc/*.htm
|
%doc doc/*.htm
|
||||||
%doc docsrc/releasenotes.html
|
%doc docsrc/releasenotes.html
|
||||||
|
%endif
|
||||||
%doc AUTHORS BUGS COPYING ChangeLog NEWS README
|
%doc AUTHORS BUGS COPYING ChangeLog NEWS README
|
||||||
%doc pubtext/opensp-implied.dcl
|
%doc pubtext/opensp-implied.dcl
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/libosp.so.*
|
%{_libdir}/libosp.so.*
|
||||||
|
%if ! %{?_module_build}
|
||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -98,6 +112,9 @@ make check || : # TODO: failures as of 1.5.2 :(
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 24 2017 Nils Philippsen <nils@redhat.com>
|
||||||
|
- don't build documentation during modular build
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-24
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-24
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user