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
|
||||
Group: Applications/Text
|
||||
|
||||
%if ! 0%{?_module_build}
|
||||
BuildRequires: xmlto, jadetex
|
||||
%endif
|
||||
|
||||
%description
|
||||
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
|
||||
|
||||
%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-search-path=%{_datadir}/sgml:%{_datadir}/xml
|
||||
make %{?_smp_mflags}
|
||||
@ -56,13 +62,17 @@ rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
# oMy, othis ois osilly.
|
||||
for file in nsgmls sgmlnorm spam spent sx ; do
|
||||
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
|
||||
%endif
|
||||
done
|
||||
|
||||
#
|
||||
# Rename sx to 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
|
||||
%endif
|
||||
|
||||
#
|
||||
# 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
|
||||
%defattr(-,root,root)
|
||||
%if ! %{?_module_build}
|
||||
%doc doc/*.htm
|
||||
%doc docsrc/releasenotes.html
|
||||
%endif
|
||||
%doc AUTHORS BUGS COPYING ChangeLog NEWS README
|
||||
%doc pubtext/opensp-implied.dcl
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libosp.so.*
|
||||
%if ! %{?_module_build}
|
||||
%{_mandir}/man1/*.1*
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
@ -98,6 +112,9 @@ make check || : # TODO: failures as of 1.5.2 :(
|
||||
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user