Sync from SUSE:SLFO:Main opensp revision 314872f7a5f2f2813933891e86c3be21
This commit is contained in:
commit
e8a745fc73
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
OpenSP-1.5.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
OpenSP-1.5.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>opensp-doc</package>
|
||||
</multibuild>
|
||||
|
17
opensp-doc.changes
Normal file
17
opensp-doc.changes
Normal file
@ -0,0 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 4 14:08:19 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
||||
|
||||
- Add _multibuild to define additional spec files as additional
|
||||
flavors.
|
||||
Eliminates the need for source package links in OBS.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 14 16:20:05 CET 2008 - mrueckert@suse.de
|
||||
|
||||
- sync opensp.spec and opensp-doc.spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 17 19:25:36 CEST 2007 - ro@suse.de
|
||||
|
||||
- created package, split off from opensp
|
||||
|
259
opensp-doc.spec
Normal file
259
opensp-doc.spec
Normal file
@ -0,0 +1,259 @@
|
||||
#
|
||||
# spec file for package opensp-doc
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: opensp-doc
|
||||
%define rname opensp
|
||||
%define doc_package 1
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
%if 0%{?doc_package}
|
||||
BuildRequires: xmlto
|
||||
%endif
|
||||
License: MIT
|
||||
Group: Productivity/Publishing/SGML
|
||||
Version: 1.5.2
|
||||
Release: 0
|
||||
Source: http://sourceforge.net/projects/openjade/files/opensp/%{version}/OpenSP-%{version}.tar.gz
|
||||
Patch11: opensp-nodeids.patch
|
||||
Patch12: opensp-lfs.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?doc_package}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
URL: http://openjade.sourceforge.net/
|
||||
%define regcat /usr/bin/sgml-register-catalog
|
||||
PreReq: %{regcat}
|
||||
Summary: The OpenJade Group's SGML and XML Parsing Tools
|
||||
Provides: OpenSP
|
||||
Provides: sp
|
||||
Provides: sp_libs
|
||||
Obsoletes: sp
|
||||
Obsoletes: sp_libs
|
||||
|
||||
%description
|
||||
The tools in this package provide the ability to manage SGML and XML
|
||||
documents.
|
||||
|
||||
This package contains the parser nsgmls and the related programs
|
||||
sgmlnorm, spcat, spam, spent, and sgml2xml (previously known as sx).
|
||||
Sgml2xml is useful as a tool for converting from SGML to XML, the
|
||||
coming WWW standard.
|
||||
|
||||
This package is a fork from James Clark's SP suite.
|
||||
|
||||
%if ! 0%{?doc_package}
|
||||
|
||||
%package -n opensp-devel
|
||||
License: MIT
|
||||
Summary: SGML parser tools (development package)
|
||||
Group: Productivity/Publishing/SGML
|
||||
Requires: %{name} = %{version}
|
||||
Requires: glibc-devel
|
||||
Requires: libstdc++-devel
|
||||
Provides: OpenSP-devel
|
||||
Provides: sp-devel
|
||||
Obsoletes: sp-devel
|
||||
|
||||
%description -n opensp-devel
|
||||
Libraries and includes to compile applications that use the SGML parser
|
||||
tools (package 'opensp').
|
||||
|
||||
|
||||
|
||||
%endif
|
||||
%define INSTALL install -m755 -s
|
||||
%define INSTALL_DIR install -d -m755
|
||||
%define INSTALL_DATA install -m644
|
||||
%define sgml_dir %{_datadir}/sgml
|
||||
%define sgml_dir_pkg %{sgml_dir}/%{name}
|
||||
%define sgml_var_dir /var/lib/sgml
|
||||
%if 0%{?doc_package}
|
||||
%define MAKE_ARGS -C docsrc
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n OpenSP-%{version}
|
||||
# %patch0 -p1
|
||||
# %patch1 -p1
|
||||
%patch11 -p1
|
||||
%patch12
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
autoreconf -fi
|
||||
# --datadir=%{sgml_dir}/openjade
|
||||
# set XMLTO or consider --disable-doc-build
|
||||
%configure \
|
||||
--disable-nls \
|
||||
--with-gnu-ld \
|
||||
--enable-http \
|
||||
%if ! 0%{?doc_package}
|
||||
--disable-doc-build \
|
||||
%endif
|
||||
--enable-default-catalog="CATALOG:/etc/sgml/catalog:%{sgml_dir}/CATALOG" \
|
||||
--disable-static \
|
||||
--with-pic
|
||||
make %{?MAKE_ARGS}
|
||||
perl -pi -e 's/sx/sgml2xml/g; s/SX/SGML2XML/g;' doc/sx.htm
|
||||
perl -pi -e 's/>sx/>sgml2xml/g; s/>SX/>SGML2XML/g;' doc/{new,index}.htm
|
||||
# make check
|
||||
|
||||
%install
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_libdir}
|
||||
# %{INSTALL_DIR} $RPM_BUILD_ROOT%{_includedir}/opensp
|
||||
make %{?MAKE_ARGS} install DESTDIR=$RPM_BUILD_ROOT
|
||||
%if ! 0%{?doc_package}
|
||||
make install-man DESTDIR=$RPM_BUILD_ROOT
|
||||
%endif
|
||||
# Unwanted doc stuff
|
||||
rm -fr $RPM_BUILD_ROOT%{_datadir}/{OpenSP,doc} \
|
||||
$RPM_BUILD_ROOT%{_prefix}/doc
|
||||
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
||||
# pushd $RPM_BUILD_ROOT%{_includedir}
|
||||
# ln -sf OpenSP opensp
|
||||
# ln -sf opensp sp
|
||||
# popd
|
||||
%if 0%{?doc_package}
|
||||
if [ -d $RPM_BUILD_ROOT%{_mandir}/man1 ]; then
|
||||
pushd $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
cp osx.1 s2x.1
|
||||
cp osx.1 osgml2xml.1
|
||||
for b in o*; do
|
||||
ln -sf ${b} ${b#o}
|
||||
done
|
||||
rm -f sx*
|
||||
popd
|
||||
fi
|
||||
%else
|
||||
pushd $RPM_BUILD_ROOT%{_bindir}
|
||||
for b in os* onsgmls; do
|
||||
ln -sf ${b} ${b#o}
|
||||
done
|
||||
# avoid conflict with rzsz package
|
||||
rm -f sx
|
||||
ln -sf osx s2x
|
||||
ln -sf osx sgml2xml
|
||||
ln -sf osx osgml2xml
|
||||
popd
|
||||
%endif
|
||||
# %{INSTALL_DIR} $RPM_BUILD_ROOT/etc/profile.d
|
||||
# %{INSTALL_DATA} sp.sh $RPM_BUILD_ROOT/etc/profile.d
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir_pkg}
|
||||
{
|
||||
for c in opensp-implied.dcl japan.dcl xml.dcl; do
|
||||
%{INSTALL_DATA} pubtext/$c $RPM_BUILD_ROOT%{sgml_dir_pkg}/$c
|
||||
echo "-- SGMLDECL \"%{sgml_dir_pkg}/$c\" --"
|
||||
done
|
||||
} > CATALOG.opensp
|
||||
sed 's|decl|dcl|' pubtext/xml.soc > $RPM_BUILD_ROOT%{sgml_dir_pkg}/xml.soc
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_var_dir}
|
||||
%{INSTALL_DATA} CATALOG.opensp $RPM_BUILD_ROOT%{sgml_var_dir}
|
||||
ln -sf ../../../%{sgml_var_dir}/CATALOG.opensp \
|
||||
$RPM_BUILD_ROOT%{sgml_dir}/CATALOG.opensp
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
||||
{
|
||||
echo '# Cf. %{_datadir}/doc/packages/opensp/html/charset.htm'
|
||||
echo '# SP_CHARSET_FIXED'
|
||||
echo '# SP_SYSTEM_CHARSET'
|
||||
echo '# SP_ENCODING'
|
||||
echo '# SP_BCTF'
|
||||
} > opensp.sh
|
||||
%{INSTALL_DATA} opensp.sh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/opensp.sh
|
||||
sed -e 's/\(# \)/\1setenv /' opensp.sh \
|
||||
>$RPM_BUILD_ROOT%{_sysconfdir}/profile.d/opensp.csh
|
||||
rm -fr html
|
||||
mkdir html
|
||||
cp doc/catalog doc/*htm html
|
||||
%define DOCFILES COPYING README NEWS AUTHORS ABOUT-NLS
|
||||
{
|
||||
echo "<html><head><title>OpenSP documentation directory</title></head>"
|
||||
echo "<body>"
|
||||
for f in %{DOCFILES}; do
|
||||
[ -f $f ] || continue
|
||||
echo "<a href=\"$f\">$f</a>"
|
||||
done
|
||||
echo "<a href=\"html/index.htm\">OpenSP</a>, official documentation (html)"
|
||||
} >index.html
|
||||
find . -name .cvsignore | xargs rm
|
||||
%if 0%{?doc_package}
|
||||
rm -rf $RPM_BUILD_ROOT/etc
|
||||
rm -rf $RPM_BUILD_ROOT/usr/bin
|
||||
rm -rf $RPM_BUILD_ROOT/usr/include
|
||||
rm -rf $RPM_BUILD_ROOT/usr/lib
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/doc
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/locale
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/sgml
|
||||
rm -rf $RPM_BUILD_ROOT/var
|
||||
find unicode -name Makefile\* -print -delete
|
||||
%endif
|
||||
%if ! 0%{?doc_package}
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
if [ -x %{regcat} ]; then
|
||||
%{regcat} -a %{sgml_dir}/CATALOG.opensp >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
if [ "$1" = "0" -a -x %{regcat} ]; then
|
||||
%{regcat} -r %{sgml_dir}/CATALOG.opensp >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root,755)
|
||||
%if 0%{?doc_package}
|
||||
%doc %{DOCFILES} index.html
|
||||
%doc html
|
||||
%doc unicode
|
||||
# pubtext comes with html-dtd
|
||||
# %doc pubtext
|
||||
%{_mandir}/*/*sp*
|
||||
%{_mandir}/*/*s2x*
|
||||
%{_mandir}/*/*sx*
|
||||
%{_mandir}/*/*sgml*
|
||||
%else
|
||||
%config %{_sysconfdir}/profile.d/opensp.*
|
||||
%{_bindir}/*nsgmls
|
||||
%{_bindir}/*sgmlnorm
|
||||
%{_bindir}/*spcat
|
||||
%{_bindir}/*spam
|
||||
%{_bindir}/*spent
|
||||
%{_bindir}/osx
|
||||
%{_bindir}/*s2x
|
||||
%{_bindir}/*sgml2xml
|
||||
%{_libdir}/lib*.so.*
|
||||
%{sgml_dir_pkg}
|
||||
%dir %{sgml_var_dir}
|
||||
%config %{sgml_var_dir}/CATALOG.opensp
|
||||
%{sgml_dir}/CATALOG.opensp
|
||||
# %{_datadir}/locale/*/LC_MESSAGES/*.mo
|
||||
|
||||
%files -n opensp-devel
|
||||
%defattr(-, root, root)
|
||||
%{_includedir}/OpenSP
|
||||
%{_libdir}/lib*.so
|
||||
%exclude %{_libdir}/*a
|
||||
%endif
|
||||
|
||||
%changelog
|
23
opensp-lfs.patch
Normal file
23
opensp-lfs.patch
Normal file
@ -0,0 +1,23 @@
|
||||
--- configure.in.orig
|
||||
+++ configure.in
|
||||
@@ -13,7 +13,8 @@ dnl
|
||||
dnl Initialization.
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([pubtext])
|
||||
-AM_INIT_AUTOMAKE(OpenSP, 1.5.2, no-define)
|
||||
+AC_CONFIG_MACRO_DIR([m4])
|
||||
+AM_INIT_AUTOMAKE(OpenSP, 1.5.2, no-define, foreign)
|
||||
AM_MAINTAINER_MODE
|
||||
AC_PREREQ(2.53)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
@@ -226,7 +227,9 @@ AC_SUBST(SP_LIBOSP_REV, 0)
|
||||
AC_SUBST(SP_LIBOSP_AGE, 0)
|
||||
|
||||
dnl Check for programs.
|
||||
-AC_PROG_CC
|
||||
+AC_PROG_CC_STDC
|
||||
+AC_USE_SYSTEM_EXTENSIONS
|
||||
+AC_SYS_LARGEFILE
|
||||
AC_PROG_CPP
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CXXCPP
|
128
opensp-nodeids.patch
Normal file
128
opensp-nodeids.patch
Normal file
@ -0,0 +1,128 @@
|
||||
--- OpenSP-1.5.2/docsrc/releasenotes.xml.nodeids 2006-10-13 13:54:59.000000000 +0100
|
||||
+++ OpenSP-1.5.2/docsrc/releasenotes.xml 2006-10-13 13:58:25.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
|
||||
-<book>
|
||||
+<book id="relnotesb">
|
||||
<bookinfo>
|
||||
<title>OpenSP 1.5.2</title>
|
||||
<subtitle>Release Notes</subtitle>
|
||||
@@ -16,7 +16,7 @@
|
||||
</copyright>
|
||||
</bookinfo>
|
||||
|
||||
- <chapter><title>OpenSP 1.5.2 Release Notes</title>
|
||||
+ <chapter id="relnotesc"><title>OpenSP 1.5.2 Release Notes</title>
|
||||
|
||||
<para>The OpenJade project provides a suite of tools and libraries for
|
||||
validating, processing and applying DSSSL (Document Style Semantics and
|
||||
@@ -29,7 +29,7 @@
|
||||
can be used as a basis for either open source or commerical projects. The
|
||||
library can be built as either a dynamic or static library.
|
||||
</para>
|
||||
- <sect1><title>Applications of OpenSP</title>
|
||||
+ <sect1 id="apps"><title>Applications of OpenSP</title>
|
||||
<para>The OpenSP library has been used in a number of projects. The
|
||||
World Wide Web consortium on-line HTML and XHTML validator is based on the
|
||||
OpenSP library. In addition to the OpenSP library a set of command line tools
|
||||
@@ -41,7 +41,7 @@
|
||||
tools.</para>
|
||||
</sect1>
|
||||
|
||||
- <sect1><title>Obtaining OpenSP</title>
|
||||
+ <sect1 id="obtaining"><title>Obtaining OpenSP</title>
|
||||
<para>OpenSP is a project hosted at sourceforge.net and is available
|
||||
from the OpenJade web site at http://openjade.sourceforge.net or directly from
|
||||
the OpenJade project page at http://sourceforge.net/projects/openjade</para>
|
||||
@@ -49,7 +49,7 @@
|
||||
linkend="bindist"/> for information on how to obtain pre-compiled
|
||||
binary packages.</para>
|
||||
</sect1>
|
||||
- <sect1><title>Supported Platforms</title>
|
||||
+ <sect1 id="supported"><title>Supported Platforms</title>
|
||||
<para>OpenSP is intended to be as portable as possible. It should be
|
||||
possible to compile and build on most contemporary UNIX type platforms. In
|
||||
addition OpenSP should also build on Microsoft's Win32 based operating
|
||||
@@ -166,7 +166,7 @@
|
||||
<email>openjade-devel@lists.sourceforge.net</email>, including any
|
||||
diffs/patches you have used.</para>
|
||||
</sect1>
|
||||
- <sect1><title>Building OpenSP from Source</title>
|
||||
+ <sect1 id="building"><title>Building OpenSP from Source</title>
|
||||
<para>OpenSP requires 20Mb to 50Mb of disk space to build. An
|
||||
installation will require around 10Mb to 20Mb depending on
|
||||
architecture.</para>
|
||||
@@ -249,7 +249,7 @@
|
||||
the latest version of OpenSP to be available from your distributor in due
|
||||
course.</para>
|
||||
</sect1>
|
||||
- <sect1><title>Installation</title>
|
||||
+ <sect1 id="installation"><title>Installation</title>
|
||||
<para>In addition to the OpenSP executables and libraries you will also
|
||||
need various DTDs and declaration files. Some DTDs and associated files
|
||||
(entity definitions) are available in the <filename>pubtext</filename>
|
||||
@@ -263,7 +263,7 @@
|
||||
recommended that you set up and use such a catalog system.
|
||||
</para>
|
||||
</sect1>
|
||||
- <sect1><title>Support</title>
|
||||
+ <sect1 id="support"><title>Support</title>
|
||||
<para>If, after reading the documentation, you still have a problem,
|
||||
then you may require some additional help. The OpenJade project is a volunteer
|
||||
effort and as such does not provide any formal support. Instead, you should
|
||||
@@ -299,7 +299,7 @@
|
||||
often the case that someone has had the same problem before.</para>
|
||||
|
||||
</sect1>
|
||||
- <sect1><title>Version 1.5.2</title>
|
||||
+ <sect1 id="v152"><title>Version 1.5.2</title>
|
||||
<formalpara><title>Released December 2005.</title>
|
||||
<para>The release contains a number of enhancements together with
|
||||
support for version 4.0 of the GNU C++ compiler.</para>
|
||||
@@ -418,7 +418,7 @@
|
||||
</table>
|
||||
</sect1>
|
||||
|
||||
- <sect1><title>Version 1.5.1</title>
|
||||
+ <sect1 id="v151"><title>Version 1.5.1</title>
|
||||
<formalpara><title>Released October 2003.</title>
|
||||
<para>The release contains a number of new features together with
|
||||
support for version 3.3 for the GNU C++ compiler.</para>
|
||||
@@ -613,7 +613,7 @@
|
||||
</table>
|
||||
</sect1>
|
||||
|
||||
- <sect1><title>Version 1.5</title>
|
||||
+ <sect1 id="v15"><title>Version 1.5</title>
|
||||
<formalpara><title>Released November 2002.</title>
|
||||
<para>In addition to many new features this version also supports the
|
||||
latest GNU C++ compiler: gcc 3.2 at the time of writing.</para>
|
||||
@@ -976,7 +976,7 @@
|
||||
</tgroup>
|
||||
</table>
|
||||
</sect1>
|
||||
- <sect1>
|
||||
+ <sect1 id="v14">
|
||||
<title>Version 1.4</title>
|
||||
<formalpara><title>Released February 2000</title>
|
||||
<para>Version 1.4 added many improvements. Changes
|
||||
@@ -1023,7 +1023,7 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</sect1>
|
||||
- <sect1><title>Version 1.3.4</title>
|
||||
+ <sect1 id="v134"><title>Version 1.3.4</title>
|
||||
<formalpara><title>Released October 1999</title>
|
||||
<para>The second release from the OpenJade project. This version was
|
||||
distributed as part of OpenJade 1.3</para>
|
||||
@@ -1040,7 +1040,7 @@
|
||||
|
||||
</itemizedlist>
|
||||
</sect1>
|
||||
- <sect1><title>Version 1.3.3</title>
|
||||
+ <sect1 id="v133"><title>Version 1.3.3</title>
|
||||
<para>The first release from the OpenJade project</para>
|
||||
</sect1>
|
||||
</chapter>
|
224
opensp.changes
Normal file
224
opensp.changes
Normal file
@ -0,0 +1,224 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 4 14:08:19 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
||||
|
||||
- Add _multibuild to define additional spec files as additional
|
||||
flavors.
|
||||
Eliminates the need for source package links in OBS.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 22 16:28:04 UTC 2011 - coolo@suse.com
|
||||
|
||||
- fix source link
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 20 06:51:03 UTC 2011 - coolo@suse.com
|
||||
|
||||
- add libtool as buildrequire to avoid implicit dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 18 16:58:45 UTC 2010 - cristian.rodriguez@opensuse.org
|
||||
|
||||
- use AC_SYS_LARGEFILE, off mismatch between dependant libraries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 14 20:50:38 CET 2009 - jengelh@medozas.de
|
||||
|
||||
- enable parallel building
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 14 16:19:40 CET 2008 - mrueckert@suse.de
|
||||
|
||||
- sync opensp.spec and opensp-doc.spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 20 03:19:53 CET 2007 - crrodriguez@suse.de
|
||||
|
||||
- add missing ldconfig calls
|
||||
- remove static libraries and "la" files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 17 19:25:49 CEST 2007 - ro@suse.de
|
||||
|
||||
- remove xmlto from buildrequires this causes tons of cycles
|
||||
- split off opensp-doc package in it's own specfile
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 16 16:39:17 CEST 2007 - ke@suse.de
|
||||
|
||||
- Update to version 1.5.2 (bug fix release); proposed by Sierk
|
||||
Bornemann [# 273561].
|
||||
- Remove obsolete GCC patches.
|
||||
- Disable NLS.
|
||||
- Build manpages using xmlto.
|
||||
- Apply opensp-nodeids.patch from the Fedora opensp-1.5.2-4.fc7.src.rpm
|
||||
package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 29 13:14:26 CET 2006 - meissner@suse.de
|
||||
|
||||
- use RPM_OPT_FLAGS also for the C snippets.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 4 13:28:39 CEST 2006 - sbrabec@suse.cz
|
||||
|
||||
- Fixed devel dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:30:40 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 11 09:34:54 CEST 2005 - meissner@suse.de
|
||||
|
||||
- fixed C++ problem in gcc4.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 21 10:39:59 CEST 2004 - meissner@suse.de
|
||||
|
||||
- removed warnings by adding 2 missing returns.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 13 08:54:47 CET 2004 - meissner@suse.de
|
||||
|
||||
- Fixed gcc3.4 build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 10 22:15:30 CET 2004 - adrian@suse.de
|
||||
|
||||
- build as user
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 13 15:38:44 CEST 2003 - ke@suse.de
|
||||
|
||||
- Update to version 1.5.1; from NEWS:
|
||||
* With SP_MESSAGE_FORMAT environment variable enable run time
|
||||
selection of message format (XML, NONE, TRADITIONAL).
|
||||
* Add support for restricted files option to generic API.
|
||||
* Add support for http redirection.
|
||||
* Add support for specifying the user agent at run time with the
|
||||
SP_HTTP_USER_AGENT environment variable.
|
||||
* Add support for specifying Accept: headers with the SP_HTTP_ACCEPT
|
||||
environment variable.
|
||||
* Enhancements to osx. Preserve case option, security fixes,
|
||||
- Recreate auto* files on SL > 8.0 only.
|
||||
- Add 'tr' and update 'de' translation file from IRO.UMontreal.CA.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 6 10:37:56 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Remove sgml-skel from needed for build
|
||||
- Add /var/lib/sgml to filelist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 4 15:58:56 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- opensp-devel should not Obsolete openjade
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 13:19:36 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Fix syntax error in postinstall script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 26 16:30:48 CEST 2003 - ke@suse.de
|
||||
|
||||
- Cleanup $RPM_BUILD_ROOT.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 21 10:32:27 CEST 2003 - ke@suse.de
|
||||
|
||||
- Use %postun instead of %preun and don't run it while updating;
|
||||
reported by Ruediger Oertel.
|
||||
- Don't install .cvsignore file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 19 14:27:20 CEST 2003 - ro@suse.de
|
||||
|
||||
- remove wrong obsoletes for jade_dsl
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 6 01:16:45 CEST 2003 - ro@suse.de
|
||||
|
||||
- move AttributeValue class declaration to the top of Attribute.h
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 13:37:35 CET 2003 - ke@suse.de
|
||||
|
||||
- Add osx to the %files list; reported by Togan Muftuoglu.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 23 10:24:34 CET 2003 - coolo@suse.de
|
||||
|
||||
- fixing script syntax
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 16 11:36:29 CET 2002 - ke@suse.de
|
||||
|
||||
- Comment out SGMLDECL statements in CATALOG.opensp; thus the builtin
|
||||
SGML declaration will be used.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 25 17:01:58 CET 2002 - ke@suse.de
|
||||
|
||||
- Update to version 1.5; from NEWS:
|
||||
* Support for "-restricted" option to restrict parsing of web based
|
||||
documents to local files only.
|
||||
* New spcat cmdline interface to the catalog manager.
|
||||
* The multibyte version of OpenSP now uses 32bit chars and supports
|
||||
the full UTF-16 range 0x0000-0x10ffff.
|
||||
* Support for the koi8-r (RFC 1489) encoding.
|
||||
* DTDDECL in SGML Open Catalogs is supported.
|
||||
* New options -n and -x to see message numbers/relevant clauses with
|
||||
messages.
|
||||
* New -output options: comment, omitted, tagomit and attromit; this
|
||||
shows comments and implied elements and/or attributes.
|
||||
* The architecture engine supports #MAPTOKEN.
|
||||
* More of Annex K supported: SGML declarations on subdocs, DATA
|
||||
declared value for attributes, DTD data entities and DTD notations
|
||||
for doctypes, complete IMPLYDEF support, ENTITIES REF constraints,
|
||||
URN parsing. Many new -w flags.
|
||||
* More of Annex K supported: Common data attributes can now be
|
||||
specified in external entity declarations.
|
||||
* Added support for the PI-based architecture use declaration syntax
|
||||
defined by Amendment 1 to ISO/IEC 10744:1997 (HyTime). This makes
|
||||
it possible to specify architectural support attributes when using
|
||||
architectures with XML, and is generally simpler than the original
|
||||
syntax. See http://www.ornl.gov/sgml/wg8/document/1985.htm for
|
||||
details.
|
||||
* Adds the architecture public id to the information passed to
|
||||
implementations of ArcDirector. This is especially important when
|
||||
using the PI-based architecture use declaration syntax, since there
|
||||
may be no Notation object from which to get the information.
|
||||
* Add a HTTP/1.0 Host header to HTTP requests. Necessary to fetch DTDs
|
||||
specified in SYSTEM identifiers when the DTD resides on a name-based
|
||||
"Virtual Host".
|
||||
* Enhancements to osx.
|
||||
* Add -x command line option to osx, which allows users to say whether
|
||||
they want sdata entities transformed into PIs or treated like normal
|
||||
entities (the default is the latter, which is how osx always behaved
|
||||
before this change).
|
||||
* Minor documentation improvements.
|
||||
* Update translations: de, fr (new), ja (new)
|
||||
|
||||
* Option to produce error messages formatted as XML
|
||||
enable with ./configure --enable-xml-messages
|
||||
|
||||
- Register /etc/sgml/opensp.cat using sgml-register-catalog.
|
||||
- Default catalogs are now: CATALOG, /etc/sgml/catalog, and
|
||||
/usr/share/sgml/CATALOG (in this order); /etc/sgml/catalog is new.
|
||||
- Make it a package on its own (separated from openjade).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 23 16:03:23 CET 2002 - olh@suse.de
|
||||
|
||||
- do not fail in pre/postinstall scripts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 19 12:57:31 CET 2002 - ke@suse.de
|
||||
|
||||
- Update to version 1.5pre9:
|
||||
- Make it a package on its own (separated from openjade).
|
||||
|
||||
|
||||
|
259
opensp.spec
Normal file
259
opensp.spec
Normal file
@ -0,0 +1,259 @@
|
||||
#
|
||||
# spec file for package opensp
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: opensp
|
||||
%define rname opensp
|
||||
%define doc_package 0
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
%if 0%{?doc_package}
|
||||
BuildRequires: xmlto
|
||||
%endif
|
||||
License: MIT
|
||||
Group: Productivity/Publishing/SGML
|
||||
Version: 1.5.2
|
||||
Release: 0
|
||||
Source: http://sourceforge.net/projects/openjade/files/opensp/%{version}/OpenSP-%{version}.tar.gz
|
||||
Patch11: opensp-nodeids.patch
|
||||
Patch12: opensp-lfs.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?doc_package}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
URL: http://openjade.sourceforge.net/
|
||||
%define regcat /usr/bin/sgml-register-catalog
|
||||
PreReq: %{regcat}
|
||||
Summary: The OpenJade Group's SGML and XML Parsing Tools
|
||||
Provides: OpenSP
|
||||
Provides: sp
|
||||
Provides: sp_libs
|
||||
Obsoletes: sp
|
||||
Obsoletes: sp_libs
|
||||
|
||||
%description
|
||||
The tools in this package provide the ability to manage SGML and XML
|
||||
documents.
|
||||
|
||||
This package contains the parser nsgmls and the related programs
|
||||
sgmlnorm, spcat, spam, spent, and sgml2xml (previously known as sx).
|
||||
Sgml2xml is useful as a tool for converting from SGML to XML, the
|
||||
coming WWW standard.
|
||||
|
||||
This package is a fork from James Clark's SP suite.
|
||||
|
||||
%if ! 0%{?doc_package}
|
||||
|
||||
%package -n opensp-devel
|
||||
License: MIT
|
||||
Summary: SGML parser tools (development package)
|
||||
Group: Productivity/Publishing/SGML
|
||||
Requires: %{name} = %{version}
|
||||
Requires: glibc-devel
|
||||
Requires: libstdc++-devel
|
||||
Provides: OpenSP-devel
|
||||
Provides: sp-devel
|
||||
Obsoletes: sp-devel
|
||||
|
||||
%description -n opensp-devel
|
||||
Libraries and includes to compile applications that use the SGML parser
|
||||
tools (package 'opensp').
|
||||
|
||||
|
||||
|
||||
%endif
|
||||
%define INSTALL install -m755 -s
|
||||
%define INSTALL_DIR install -d -m755
|
||||
%define INSTALL_DATA install -m644
|
||||
%define sgml_dir %{_datadir}/sgml
|
||||
%define sgml_dir_pkg %{sgml_dir}/%{name}
|
||||
%define sgml_var_dir /var/lib/sgml
|
||||
%if 0%{?doc_package}
|
||||
%define MAKE_ARGS -C docsrc
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n OpenSP-%{version}
|
||||
# %patch0 -p1
|
||||
# %patch1 -p1
|
||||
%patch11 -p1
|
||||
%patch12
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
autoreconf -fi
|
||||
# --datadir=%{sgml_dir}/openjade
|
||||
# set XMLTO or consider --disable-doc-build
|
||||
%configure \
|
||||
--disable-nls \
|
||||
--with-gnu-ld \
|
||||
--enable-http \
|
||||
%if ! 0%{?doc_package}
|
||||
--disable-doc-build \
|
||||
%endif
|
||||
--enable-default-catalog="CATALOG:/etc/sgml/catalog:%{sgml_dir}/CATALOG" \
|
||||
--disable-static \
|
||||
--with-pic
|
||||
make %{?MAKE_ARGS} %{?_smp_mflags}
|
||||
perl -pi -e 's/sx/sgml2xml/g; s/SX/SGML2XML/g;' doc/sx.htm
|
||||
perl -pi -e 's/>sx/>sgml2xml/g; s/>SX/>SGML2XML/g;' doc/{new,index}.htm
|
||||
# make check
|
||||
|
||||
%install
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_libdir}
|
||||
# %{INSTALL_DIR} $RPM_BUILD_ROOT%{_includedir}/opensp
|
||||
make %{?MAKE_ARGS} install DESTDIR=$RPM_BUILD_ROOT
|
||||
%if ! 0%{?doc_package}
|
||||
make install-man DESTDIR=$RPM_BUILD_ROOT
|
||||
%endif
|
||||
# Unwanted doc stuff
|
||||
rm -fr $RPM_BUILD_ROOT%{_datadir}/{OpenSP,doc} \
|
||||
$RPM_BUILD_ROOT%{_prefix}/doc
|
||||
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
||||
# pushd $RPM_BUILD_ROOT%{_includedir}
|
||||
# ln -sf OpenSP opensp
|
||||
# ln -sf opensp sp
|
||||
# popd
|
||||
%if 0%{?doc_package}
|
||||
if [ -d $RPM_BUILD_ROOT%{_mandir}/man1 ]; then
|
||||
pushd $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
cp osx.1 s2x.1
|
||||
cp osx.1 osgml2xml.1
|
||||
for b in o*; do
|
||||
ln -sf ${b} ${b#o}
|
||||
done
|
||||
rm -f sx*
|
||||
popd
|
||||
fi
|
||||
%else
|
||||
pushd $RPM_BUILD_ROOT%{_bindir}
|
||||
for b in os* onsgmls; do
|
||||
ln -sf ${b} ${b#o}
|
||||
done
|
||||
# avoid conflict with rzsz package
|
||||
rm -f sx
|
||||
ln -sf osx s2x
|
||||
ln -sf osx sgml2xml
|
||||
ln -sf osx osgml2xml
|
||||
popd
|
||||
%endif
|
||||
# %{INSTALL_DIR} $RPM_BUILD_ROOT/etc/profile.d
|
||||
# %{INSTALL_DATA} sp.sh $RPM_BUILD_ROOT/etc/profile.d
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_dir_pkg}
|
||||
{
|
||||
for c in opensp-implied.dcl japan.dcl xml.dcl; do
|
||||
%{INSTALL_DATA} pubtext/$c $RPM_BUILD_ROOT%{sgml_dir_pkg}/$c
|
||||
echo "-- SGMLDECL \"%{sgml_dir_pkg}/$c\" --"
|
||||
done
|
||||
} > CATALOG.opensp
|
||||
sed 's|decl|dcl|' pubtext/xml.soc > $RPM_BUILD_ROOT%{sgml_dir_pkg}/xml.soc
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_var_dir}
|
||||
%{INSTALL_DATA} CATALOG.opensp $RPM_BUILD_ROOT%{sgml_var_dir}
|
||||
ln -sf ../../../%{sgml_var_dir}/CATALOG.opensp \
|
||||
$RPM_BUILD_ROOT%{sgml_dir}/CATALOG.opensp
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
||||
{
|
||||
echo '# Cf. %{_datadir}/doc/packages/opensp/html/charset.htm'
|
||||
echo '# SP_CHARSET_FIXED'
|
||||
echo '# SP_SYSTEM_CHARSET'
|
||||
echo '# SP_ENCODING'
|
||||
echo '# SP_BCTF'
|
||||
} > opensp.sh
|
||||
%{INSTALL_DATA} opensp.sh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/opensp.sh
|
||||
sed -e 's/\(# \)/\1setenv /' opensp.sh \
|
||||
>$RPM_BUILD_ROOT%{_sysconfdir}/profile.d/opensp.csh
|
||||
rm -fr html
|
||||
mkdir html
|
||||
cp doc/catalog doc/*htm html
|
||||
%define DOCFILES COPYING README NEWS AUTHORS ABOUT-NLS
|
||||
{
|
||||
echo "<html><head><title>OpenSP documentation directory</title></head>"
|
||||
echo "<body>"
|
||||
for f in %{DOCFILES}; do
|
||||
[ -f $f ] || continue
|
||||
echo "<a href=\"$f\">$f</a>"
|
||||
done
|
||||
echo "<a href=\"html/index.htm\">OpenSP</a>, official documentation (html)"
|
||||
} >index.html
|
||||
find . -name .cvsignore | xargs rm
|
||||
%if 0%{?doc_package}
|
||||
rm -rf $RPM_BUILD_ROOT/etc
|
||||
rm -rf $RPM_BUILD_ROOT/usr/bin
|
||||
rm -rf $RPM_BUILD_ROOT/usr/include
|
||||
rm -rf $RPM_BUILD_ROOT/usr/lib
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/doc
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/locale
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/sgml
|
||||
rm -rf $RPM_BUILD_ROOT/var
|
||||
find unicode -name Makefile\* -print -delete
|
||||
%endif
|
||||
%if ! 0%{?doc_package}
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
if [ -x %{regcat} ]; then
|
||||
%{regcat} -a %{sgml_dir}/CATALOG.opensp >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
if [ "$1" = "0" -a -x %{regcat} ]; then
|
||||
%{regcat} -r %{sgml_dir}/CATALOG.opensp >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root,755)
|
||||
%if 0%{?doc_package}
|
||||
%doc %{DOCFILES} index.html
|
||||
%doc html
|
||||
%doc unicode
|
||||
# pubtext comes with html-dtd
|
||||
# %doc pubtext
|
||||
%{_mandir}/*/*sp*
|
||||
%{_mandir}/*/*s2x*
|
||||
%{_mandir}/*/*sx*
|
||||
%{_mandir}/*/*sgml*
|
||||
%else
|
||||
%config %{_sysconfdir}/profile.d/opensp.*
|
||||
%{_bindir}/*nsgmls
|
||||
%{_bindir}/*sgmlnorm
|
||||
%{_bindir}/*spcat
|
||||
%{_bindir}/*spam
|
||||
%{_bindir}/*spent
|
||||
%{_bindir}/osx
|
||||
%{_bindir}/*s2x
|
||||
%{_bindir}/*sgml2xml
|
||||
%{_libdir}/lib*.so.*
|
||||
%{sgml_dir_pkg}
|
||||
%dir %{sgml_var_dir}
|
||||
%config %{sgml_var_dir}/CATALOG.opensp
|
||||
%{sgml_dir}/CATALOG.opensp
|
||||
# %{_datadir}/locale/*/LC_MESSAGES/*.mo
|
||||
|
||||
%files -n opensp-devel
|
||||
%defattr(-, root, root)
|
||||
%{_includedir}/OpenSP
|
||||
%{_libdir}/lib*.so
|
||||
%exclude %{_libdir}/*a
|
||||
%endif
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user