2007-01-16 00:28:07 +01:00
|
|
|
#
|
2011-05-27 11:30:20 +02:00
|
|
|
# spec file for package openjade
|
2007-01-16 00:28:07 +01:00
|
|
|
#
|
2022-03-28 09:08:47 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-16 00:28:07 +01:00
|
|
|
#
|
2009-06-19 00:44:39 +02:00
|
|
|
# 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.
|
|
|
|
|
2022-03-28 09:08:47 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:28:07 +01:00
|
|
|
#
|
|
|
|
|
2016-02-15 16:03:09 +01:00
|
|
|
|
2017-11-13 18:12:51 +01:00
|
|
|
%define regcat %{_bindir}/sgml-register-catalog
|
2007-02-09 17:02:30 +01:00
|
|
|
Name: openjade
|
|
|
|
Version: 1.3.2
|
2011-11-28 11:15:59 +01:00
|
|
|
Release: 0
|
2007-02-09 17:02:30 +01:00
|
|
|
Summary: DSSSL Engine for SGML Documents
|
2012-06-11 13:40:23 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Publishing/SGML
|
2022-03-28 09:08:47 +02:00
|
|
|
URL: http://openjade.sourceforge.net/
|
2007-02-09 17:02:30 +01:00
|
|
|
Source: http://switch.dl.sourceforge.net/sourceforge/openjade/openjade-1.3.2.tar.bz2
|
|
|
|
Source1: jade_style-sheet.dtd
|
2017-11-13 18:00:37 +01:00
|
|
|
Source2: %{name}-README.SUSE
|
2011-05-27 11:30:20 +02:00
|
|
|
Patch1: openjade-1.3.1-autoconf.dif
|
2011-05-27 10:00:02 +02:00
|
|
|
Patch2: openjade-1.3.2-makefile.patch
|
|
|
|
Patch3: openjade-1.3.2-shared.patch
|
|
|
|
Patch4: gcc46_default_ctors.patch
|
2012-06-11 13:40:23 +02:00
|
|
|
Patch5: openjade-1.3.2-getopts.patch
|
2017-11-13 18:12:51 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: opensp-devel
|
|
|
|
Requires: opensp
|
|
|
|
Requires(pre): %{regcat}
|
2007-01-16 00:28:07 +01:00
|
|
|
# Conflicts: jade_dsl
|
2007-02-09 17:02:30 +01:00
|
|
|
Obsoletes: jade_dsl
|
2016-02-15 16:03:09 +01:00
|
|
|
Provides: jade
|
|
|
|
Provides: jade_dsl
|
2007-01-16 00:28:07 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenJade, the follow-up to Jade by James Clark, is an implementation of
|
2008-01-18 00:02:20 +01:00
|
|
|
the ISO/IEC 10179:1996 standard DSSSL (Document Style, Semantics, and
|
|
|
|
Specification Language); pronounce it "dissl"--it rhymes with whistle.
|
2007-01-16 00:28:07 +01:00
|
|
|
|
|
|
|
It has back-ends for SGML, RTF, MIF, TeX, and HTML.
|
|
|
|
|
|
|
|
The parser, "nsgmls," and helper tools like "sgmlnorm," "spam,"
|
|
|
|
"spent," and "sx" are now included in the separate "opensp" package.
|
|
|
|
|
|
|
|
%package devel
|
2007-02-09 17:02:30 +01:00
|
|
|
Summary: DSSSL Engine (development package)
|
2017-11-13 18:00:37 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2008-01-18 00:02:20 +01:00
|
|
|
Requires: %{name} = %{version}
|
2007-01-16 00:28:07 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libraries and includes to compile applications that use the OpenJade
|
|
|
|
framework (package 'openjade').
|
|
|
|
|
|
|
|
%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}
|
2017-11-13 18:12:51 +01:00
|
|
|
%define sgml_var_dir %{_localstatedir}/lib/sgml
|
2008-01-18 00:02:20 +01:00
|
|
|
|
2007-01-16 00:28:07 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-11-13 18:00:37 +01:00
|
|
|
# -n %%{name}-1.3.2-rc2
|
2017-11-13 18:12:51 +01:00
|
|
|
cp %{SOURCE1} dsssl
|
|
|
|
cp %{SOURCE2} README.SUSE
|
2024-02-26 14:41:01 +01:00
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 2 -p1
|
|
|
|
%patch -P 3
|
|
|
|
%patch -P 4
|
|
|
|
%patch -P 5
|
2007-01-16 00:28:07 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# export CXXFLAGS='-O'
|
2017-11-13 18:12:51 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
export CXXFLAGS="%{optflags} -fno-lifetime-dse"
|
2016-02-15 16:03:09 +01:00
|
|
|
%else
|
2017-11-13 18:12:51 +01:00
|
|
|
export CXXFLAGS="%{optflags}"
|
2016-02-15 16:03:09 +01:00
|
|
|
%endif
|
2007-01-16 00:28:07 +01:00
|
|
|
# export CXXFLAGS="-g -march=i486 -mcpu=i686"
|
|
|
|
# export DEFAULT_SCHEME_BUILTINS=/usr/share/sgml/openjade/builtins.dsl
|
2008-01-18 00:02:20 +01:00
|
|
|
%configure --disable-static --with-gnu-ld --with-pic \
|
2007-01-16 00:28:07 +01:00
|
|
|
--datadir=%{sgml_dir}/openjade \
|
2017-11-13 18:12:51 +01:00
|
|
|
--enable-splibdir=%{_libdir} \
|
2007-01-16 00:28:07 +01:00
|
|
|
--enable-http \
|
|
|
|
--enable-mif \
|
2017-11-13 18:12:51 +01:00
|
|
|
--enable-default-catalog="CATALOG:%{_sysconfdir}/sgml/catalog:%{sgml_dir}/CATALOG"
|
2007-01-16 00:28:07 +01:00
|
|
|
# [ -r jade/openjade.orig ] && mv jade/openjade.orig jade/openjade
|
2017-11-13 18:12:51 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:28:07 +01:00
|
|
|
# # now start building the debug version
|
|
|
|
# mv jade/openjade jade/openjade.orig
|
2017-11-13 18:00:37 +01:00
|
|
|
# zcat %%{P:5} | patch -s -p 1
|
2007-01-16 00:28:07 +01:00
|
|
|
# make
|
|
|
|
# mv jade/openjade jade/openjade-valid-fo
|
|
|
|
# mv jade/openjade.orig jade/openjade
|
|
|
|
|
|
|
|
%install
|
2017-11-13 18:12:51 +01:00
|
|
|
%{INSTALL_DIR} %{buildroot}%{_libdir} \
|
|
|
|
%{buildroot}%{sgml_dir}/%{name} \
|
|
|
|
%{buildroot}%{_includedir}/%{name}
|
|
|
|
%make_install
|
|
|
|
ln -sf openjade %{buildroot}%{_bindir}/jade
|
|
|
|
[ -r jade/openjade-valid-fo ] && install -s jade/openjade-valid-fo %{buildroot}%{_bindir}
|
|
|
|
make install-man DESTDIR=%{buildroot}
|
|
|
|
pushd %{buildroot}%{_mandir}
|
2007-01-16 00:28:07 +01:00
|
|
|
# find . ! -name 'jade*' -exec rm -f {} \;
|
|
|
|
pushd man1 && ln -sf openjade.1 jade.1 && popd
|
|
|
|
popd
|
2017-11-13 18:12:51 +01:00
|
|
|
/sbin/ldconfig -n %{buildroot}%{_libdir}
|
2017-11-13 18:00:37 +01:00
|
|
|
# %%{INSTALL_DATA} include/*.* $RPM_BUILD_ROOT%%{_includedir}/%%{name}
|
2017-11-13 18:12:51 +01:00
|
|
|
%{INSTALL_DATA} generic/*.h %{buildroot}%{_includedir}/%{name}
|
|
|
|
%{INSTALL_DATA} grove/Node.h %{buildroot}%{_includedir}/%{name}
|
2007-01-16 00:28:07 +01:00
|
|
|
%{INSTALL_DATA} spgrove/GroveApp.h \
|
2017-11-13 18:12:51 +01:00
|
|
|
spgrove/GroveBuilder.h %{buildroot}%{_includedir}/%{name}
|
2007-01-16 00:28:07 +01:00
|
|
|
%{INSTALL_DATA} style/FOTBuilder.h style/GroveManager.h \
|
|
|
|
style/DssslApp.h style/dsssl_ns.h \
|
2017-11-13 18:12:51 +01:00
|
|
|
%{buildroot}%{_includedir}/%{name}
|
2017-11-13 18:00:37 +01:00
|
|
|
# pushd $RPM_BUILD_ROOT%%{_mandir}/man1
|
2007-01-16 00:28:07 +01:00
|
|
|
# popd
|
2017-11-13 18:00:37 +01:00
|
|
|
# pushd $RPM_BUILD_ROOT%%{_bindir}
|
2007-01-16 00:28:07 +01:00
|
|
|
# popd
|
2017-11-13 18:00:37 +01:00
|
|
|
# %%{INSTALL_DIR} $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
# %%{INSTALL_DATA} jade_dsl.sh $RPM_BUILD_ROOT/etc/profile.d
|
2017-11-13 18:12:51 +01:00
|
|
|
%{INSTALL_DIR} %{buildroot}%{sgml_dir_pkg}
|
2007-01-16 00:28:07 +01:00
|
|
|
# comes with opensp:
|
2017-11-13 18:00:37 +01:00
|
|
|
# %%{INSTALL_DATA} japan.sgmldecl $RPM_BUILD_ROOT%%{sgml_dir_pkg}/japan.dcl
|
|
|
|
# %%{INSTALL_DATA} pubtext/xml.dcl $RPM_BUILD_ROOT%%{sgml_dir_pkg}/xml.dcl
|
|
|
|
# sed 's|decl|dcl|' pubtext/xml.soc > $RPM_BUILD_ROOT%%{sgml_dir_pkg}/xml.soc
|
2007-01-16 00:28:07 +01:00
|
|
|
pushd dsssl
|
|
|
|
%{INSTALL_DATA} catalog dsssl.dtd extensions.dsl fot.dtd style-sheet.dtd \
|
2017-11-13 18:12:51 +01:00
|
|
|
builtins.dsl jade_style-sheet.dtd %{buildroot}%{sgml_dir_pkg}
|
|
|
|
%{INSTALL_DIR} %{buildroot}%{sgml_var_dir}
|
2007-01-16 00:28:07 +01:00
|
|
|
sed 's:"\([^"]*\(dtd\|dsl\)\)"$:"%{sgml_dir_pkg}/\1":' catalog \
|
2017-11-13 18:12:51 +01:00
|
|
|
> %{buildroot}%{sgml_var_dir}/CATALOG.%{name}
|
|
|
|
ln -sf CATALOG.%{name} %{buildroot}%{sgml_var_dir}/CATALOG.jade_dsl
|
|
|
|
cd %{buildroot}%{sgml_dir} \
|
2007-01-16 00:28:07 +01:00
|
|
|
&& ln -sf ../../..%{sgml_var_dir}/CATALOG.%{name} CATALOG.%{name} \
|
|
|
|
&& ln -sf ../../..%{sgml_var_dir}/CATALOG.%{name} CATALOG.jade_dsl
|
|
|
|
popd
|
2017-11-13 18:12:51 +01:00
|
|
|
%{INSTALL_DIR} %{buildroot}%{sgml_dir}/James_Clark/dtd
|
|
|
|
%{INSTALL_DIR} %{buildroot}%{sgml_dir}/OpenJade/dtd
|
|
|
|
%{INSTALL_DIR} %{buildroot}%{sgml_dir}/ISO_IEC_10179:1996/dtd
|
|
|
|
(cd %{buildroot}%{sgml_dir}/James_Clark/dtd \
|
2007-01-16 00:28:07 +01:00
|
|
|
&& ln -sf ../../$RPM_PACKAGE_NAME/jade_style-sheet.dtd DSSSL_Style_Sheet \
|
|
|
|
&& ln -sf ../../$RPM_PACKAGE_NAME/fot.dtd DSSSL_Flow_Object_Tree)
|
2017-11-13 18:12:51 +01:00
|
|
|
(cd %{buildroot}%{sgml_dir}/OpenJade/dtd \
|
2007-01-16 00:28:07 +01:00
|
|
|
&& ln -sf ../../$RPM_PACKAGE_NAME/style-sheet.dtd DSSSL_Style_Sheet)
|
2017-11-13 18:12:51 +01:00
|
|
|
(cd %{buildroot}%{sgml_dir}/ISO_IEC_10179:1996/dtd \
|
2007-01-16 00:28:07 +01:00
|
|
|
&& ln -sf ../../$RPM_PACKAGE_NAME/dsssl.dtd DSSSL_Architecture)
|
|
|
|
# for compatibility with SL <= 8.1
|
2017-11-13 18:12:51 +01:00
|
|
|
pushd %{buildroot}%{sgml_dir}
|
2007-01-16 00:28:07 +01:00
|
|
|
pushd %{name}
|
|
|
|
ln -s ../opensp/japan.dcl .
|
|
|
|
ln -s ../opensp/opensp-implied.dcl sp_implied.dcl
|
|
|
|
ln -s ../opensp/xml.dcl .
|
|
|
|
ln -s ../opensp/xml.soc .
|
|
|
|
for d in *.dcl; do
|
|
|
|
ln -sf $d ${d/.dcl/.decl}
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
rm -fr html
|
|
|
|
cp -a jadedoc html
|
|
|
|
echo "\
|
2017-11-13 18:00:37 +01:00
|
|
|
<a href=\"README.SUSE\">README.SUSE</a>
|
2007-01-16 00:28:07 +01:00
|
|
|
<a href=\"html/index.htm\">OpenJade documentation</a> (html)" > index.html
|
2008-01-18 00:02:20 +01:00
|
|
|
grep -r include %{buildroot}%{_includedir}
|
2007-01-16 00:28:07 +01:00
|
|
|
|
|
|
|
%post
|
2008-01-18 00:02:20 +01:00
|
|
|
/sbin/ldconfig
|
2007-01-16 00:28:07 +01:00
|
|
|
if [ -x %{regcat} ]; then
|
|
|
|
%{regcat} -a %{sgml_dir}/CATALOG.%{name} >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun
|
2008-01-18 00:02:20 +01:00
|
|
|
/sbin/ldconfig
|
2007-01-16 00:28:07 +01:00
|
|
|
if [ "$1" = "0" -a -x %{regcat} ]; then
|
|
|
|
%{regcat} -r %{sgml_dir}/CATALOG.%{name} >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files
|
2022-03-28 09:08:47 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README*
|
2007-01-16 00:28:07 +01:00
|
|
|
%doc index.html html
|
|
|
|
%doc dsssl develdoc testsuite
|
|
|
|
%doc japan.sgmldecl
|
|
|
|
%doc releasenotes.{html,pdf}
|
|
|
|
%{sgml_dir}/openjade
|
|
|
|
%{_bindir}/*jade*
|
2017-11-13 18:00:37 +01:00
|
|
|
# %%{_mandir}/*/*jade*
|
2007-01-16 00:28:07 +01:00
|
|
|
%{_mandir}/*/*
|
2017-11-13 18:00:37 +01:00
|
|
|
# %%config /etc/profile.d/jade_dsl.sh
|
2007-01-16 00:28:07 +01:00
|
|
|
%{sgml_dir}/CATALOG.%{name}
|
|
|
|
%config %{sgml_var_dir}/CATALOG.%{name}
|
|
|
|
#for compatibility <= 8.1
|
|
|
|
%{sgml_dir}/CATALOG.jade_dsl
|
|
|
|
%{sgml_var_dir}/CATALOG.jade_dsl
|
|
|
|
%{sgml_dir}/ISO_IEC_10179:1996
|
|
|
|
%{sgml_dir}/James_Clark
|
|
|
|
%{sgml_dir}/OpenJade
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/lib*.so
|
2008-01-18 00:02:20 +01:00
|
|
|
%exclude %{_libdir}/*a
|
2007-01-16 00:28:07 +01:00
|
|
|
|
2008-01-18 00:02:20 +01:00
|
|
|
%changelog
|