rebuilt with %{_datadir}/xml added to --enable-default-search-path and --enable-xml-messages; remove pkgdatadir in make [release 1.5.2-5mamba;Tue Jun 01 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 17:51:26 +01:00
parent 631e529b08
commit d17e538026

View File

@ -1,6 +1,6 @@
Name: OpenSP Name: OpenSP
Version: 1.5.2 Version: 1.5.2
Release: 4mamba Release: 5mamba
Summary: A suite of SGML processing tools Summary: A suite of SGML processing tools
Group: Applications/Publishing Group: Applications/Publishing
Vendor: openmamba Vendor: openmamba
@ -12,15 +12,18 @@ Patch0: OpenSP-1.5.1-LITLEN-1.patch
Patch1: OpenSP-1.5.1-gcc34-1.patch Patch1: OpenSP-1.5.1-gcc34-1.patch
Patch2: OpenSP-1.5.1-gcc41.patch Patch2: OpenSP-1.5.1-gcc41.patch
License: GPL License: GPL
Requires: libosp = %{version}-%{release}
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libe2fs-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libkrb5-devel
BuildRequires: libnsl-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libtirpc-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: sgml-common BuildRequires: sgml-common
BuildRequires: xmlto BuildRequires: xmlto
BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: libosp = %{version}-%{release}
%description %description
A suite of SGML processing tools. A suite of SGML processing tools.
@ -29,7 +32,7 @@ A suite of SGML processing tools.
Summary: Libraries for OpenSP Summary: Libraries for OpenSP
Group: System/Libraries Group: System/Libraries
Provides: libOpenSP Provides: libOpenSP
Obsoletes: libOpenSP Obsoletes: libOpenSP < 1.5.2-5mamba
%description -n libosp %description -n libosp
OpenSP is a suite of SGML processing tools. OpenSP is a suite of SGML processing tools.
@ -40,7 +43,7 @@ Summary: Devel package for OpenSP
Group: Development/Libraries Group: Development/Libraries
Requires: libosp = %{version}-%{release} Requires: libosp = %{version}-%{release}
Provides: libOpenSP-devel Provides: libOpenSP-devel
Obsoletes: libOpenSP-devel Obsoletes: libOpenSP-devel < 1.5.2-5mamba
%description -n libosp-devel %description -n libosp-devel
OpenSP is a suite of SGML processing tools. OpenSP is a suite of SGML processing tools.
@ -60,13 +63,17 @@ sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
--enable-http \ --enable-http \
--enable-xml-messages \ --enable-xml-messages \
--enable-default-catalog=/etc/sgml/catalog \ --enable-default-catalog=/etc/sgml/catalog \
--enable-default-search-path=%{_datadir}/sgml --enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml \
--enable-xml-messages
%make pkgdatadir=%{_datadir}/sgml/OpenSP-%{version} %make
#pkgdatadir=%{_datadir}/sgml/OpenSP-%{version}
%install %install
test x%{buildroot} != x/ && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall pkgdatadir=%{_datadir}/sgml/OpenSP-%{version} %makeinstall
#pkgdatadir=%{_datadir}/sgml/OpenSP-%{version}
ln -s onsgmls %{buildroot}%{_bindir}/nsgmls ln -s onsgmls %{buildroot}%{_bindir}/nsgmls
ln -s osgmlnorm %{buildroot}%{_bindir}/sgmlnorm ln -s osgmlnorm %{buildroot}%{_bindir}/sgmlnorm
ln -s ospam %{buildroot}%{_bindir}/spam ln -s ospam %{buildroot}%{_bindir}/spam
@ -79,7 +86,7 @@ ln -s libosp.so %{buildroot}%{_libdir}/libsp.so
%find_lang sp5 %find_lang sp5
%clean %clean
test x%{buildroot} != x/ && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -98,8 +105,8 @@ test x%{buildroot} != x/ && rm -rf %{buildroot}
#%{_bindir}/sx #%{_bindir}/sx
%dir %{_datadir}/doc/OpenSP %dir %{_datadir}/doc/OpenSP
%{_datadir}/doc/OpenSP/* %{_datadir}/doc/OpenSP/*
%dir %{_datadir}/sgml/OpenSP-%{version} %dir %{_datadir}/OpenSP
%{_datadir}/sgml/OpenSP-%{version}/* %{_datadir}/OpenSP/*
%{_mandir}/man1/* %{_mandir}/man1/*
%files -n libosp -f sp5.lang %files -n libosp -f sp5.lang
@ -117,6 +124,9 @@ test x%{buildroot} != x/ && rm -rf %{buildroot}
%{_libdir}/libsp.so %{_libdir}/libsp.so
%changelog %changelog
* Tue Jun 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.2-5mamba
- rebuilt with %{_datadir}/xml added to --enable-default-search-path and --enable-xml-messages; remove pkgdatadir in make
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.2-4mamba * Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.2-4mamba
- build require sgml-common, added debug package - build require sgml-common, added debug package