3 Summary: OpenJade - DSSSL parser
4 Summary(pl.UTF-8): OpenJade - parser DSSSL
7 Release: 0.%{_pre}.%{_rel}
9 License: Free (Copyright (C) 1999 The OpenJade group)
10 Group: Applications/Publishing/SGML
11 Source0: http://dl.sourceforge.net/openjade/%{name}-%{version}-%{_pre}.tar.gz
12 # Source0-md5: cbf3d8be3e3516dcb12b751de822b48c
13 Patch0: %{name}-nls-from-1.4.patch
14 Patch1: %{name}-as-needed.patch
15 Patch2: %{name}-gcc4.patch
16 Patch3: perl-getopts.patch
17 URL: http://openjade.sourceforge.net/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: gettext-tools
21 BuildRequires: libtool
22 BuildRequires: opensp-devel >= 2:1.5.1
23 BuildRequires: perl-base
24 Requires(post,postun): /sbin/ldconfig
25 Requires(post,postun): sgml-common
26 Requires: opensp >= 1.5-2
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define sgmldir /usr/share/sgml
35 %define _datadir %{sgmldir}/%{name}-%{version}
38 Jade (James' DSSSL Engine) is an implementation of the DSSSL style
39 language. OpenJade is successor of Jade.
41 %description -l pl.UTF-8
42 Jade (James' DSSSL Engine) jest implementacją parsera DSSSL. OpenJade
46 Summary: OpenJade header files
47 Summary(pl.UTF-8): Pliki nagłówkowe do bibliotek OpenJade
48 Group: Development/Libraries
49 Requires: %{name} = %{epoch}:%{version}-%{release}
50 Requires: /sbin/ldconfig
53 Openjade header files.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe do bibliotek OpenJade.
59 Summary: OpenJade static libraries
60 Summary(pl.UTF-8): Biblioteki statyczne OpenJade
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
65 OpenJade static libraries.
67 %description static -l pl.UTF-8
68 Biblioteki statyczne OpenJade.
71 %setup -q -n %{name}-%{version}-%{_pre}
78 LDFLAGS=""; export LDFLAGS
79 ln -sf config/configure.in .
80 # smr_SWITCH and OJ_SIZE_T_IS_UINT
81 tail -n +3349 config/aclocal.m4 | head -n 64 > acinclude.m4
87 --enable-default-catalog=%{_sysconfdir}/sgml/catalog \
88 --enable-default-search-path=%{_prefix}/share/sgml \
92 --enable-splibdir=%{_libdir}
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT%{_datadir}
101 DESTDIR=$RPM_BUILD_ROOT \
102 localedir=%{_prefix}/share/locale
105 ln -sf openjade $RPM_BUILD_ROOT%{_bindir}/jade
107 # files present in openjade 1.4
108 install dsssl/{catalog,dsssl.dtd,extensions.dsl,fot.dtd,style-sheet.dtd} \
109 $RPM_BUILD_ROOT%{_datadir}
110 install -d $RPM_BUILD_ROOT%{_includedir}/OpenJade
111 install include/*.h grove/Node.h spgrove/{GroveApp,GroveBuilder}.h \
112 style/{DssslApp,FOTBuilder}.h $RPM_BUILD_ROOT%{_includedir}/OpenJade
117 rm -rf $RPM_BUILD_ROOT
121 if ! grep -q %{_sysconfdir}/sgml/openjade.cat %{_sysconfdir}/sgml/catalog ; then
122 %{_bindir}/install-catalog --add %{_sysconfdir}/sgml/openjade.cat \
124 elif grep -sq %{_prefix}/share/OpenJade/catalog %{_sysconfdir}/sgml/openjade.cat ; then
126 %{_bindir}/install-catalog --remove %{_sysconfdir}/sgml/openjade.cat \
127 %{_prefix}/share/OpenJade/catalog
128 %{_bindir}/install-catalog --add %{_sysconfdir}/sgml/openjade.cat \
134 if [ "$1" = "0" ] ; then
135 %{_bindir}/install-catalog --remove %{_sysconfdir}/sgml/openjade.cat \
140 %defattr(644,root,root,755)
141 %doc COPYING ChangeLog NEWS README doc/*.htm jadedoc
142 %attr(755,root,root) %{_bindir}/*
143 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
144 %attr(755,root,root) %{_libdir}/lib*.so.*.*
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/lib*.so
151 %{_includedir}/OpenJade
154 %defattr(644,root,root,755)