Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > c8572e0878666905a1ebab7acf61df8e > files > 6

openjade-1.3.3-0.pre1.10.mga1.src.rpm

%define name openjade
%define version 1.3.3
%define prerel pre1
%define release %mkrel 0.%prerel.10
%define sgmlbase %{_datadir}/sgml
%define major 0
%define libname %mklibname %{name} %{major}
%define libnamedev %mklibname %{name} %{major} -d

Summary: Parser and tools for SGML + DSSSL
Name: %{name}
Version: %{version}
Release: %{release}
Url: http://openjade.sourceforge.net/
Source: http://download.sourceforge.net/openjade/openjade-%{version}-%prerel.tar.bz2
# (gb) libtool fixes, don't bother with either aclocal nor autoconf
# NOTE: this directly applies to configure
Patch0: openjade-1.3.2-libtool.patch
Patch1: openjade-gcc43.diff
Patch2: openjade-deplibs.patch
Patch3: openjade-ppc64.patch
License: BSD
Group: Publishing
BuildRoot: %{_tmppath}/%{name}-buildroot
Obsoletes: jade
Provides: jade = %version-%release
Requires: sgml-common, %libname = %version-%release
BuildRequires: OpenSP-devel
Requires: OpenSP

%description
 Jade (James' DSSSL Engine) is an implementation of the DSSSL style
language -- Document Style Semantics and Specification Language -- 
an ISO standard for formatting SGML (and XML) documents.

%package -n %libname
Group:          Publishing
Summary:        Shared library files for openjade

%description -n %libname
Shared library files for openjade.

%package -n %libnamedev
Group:          Development/C
Summary:        Development files for openjade
Requires:       %name = %version-%release, %libname = %version-%release
Provides:       lib%{name}-devel, openjade-devel

%description -n %libnamedev
Files for development from the openjade package.


%prep

%setup -q -n %name-%version-%prerel
%patch0 -p1 -b .libtool
%patch1 -p1 -b .gcc43
%patch2 -p1
%patch3 -p1

%build
cp config/configure.in .
%configure2_5x --enable-static --enable-http \
 --enable-default-catalog=%{_sysconfdir}/sgml/catalog  \
 --enable-default-search-path=%{sgmlbase} \
 --datadir=%{sgmlbase}/%{name}-%{version} \
 --enable-splibdir=%{_libdir}

%make

%install
# NOTE: in installing I am also copying a bunch of .h files into
# $(prefix)/include/sp/{generic,include,lib}.  This is so that the
# library API can be used.  It's an ugly kludge, and the best way
# would be for James Clark to tell us what the appropriate list of
# files to be included is.

[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/sp/generic,%{_includedir}/sp/include,%{_includedir}/sp/lib}
mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/%{name}-%{version}/{pubtext,unicode}

%makeinstall install-man datadir=$RPM_BUILD_ROOT/%{sgmlbase}

# Why do this file gets installed here ???
rm -f $RPM_BUILD_ROOT%{sgmlbase}/builtins.dsl

# oMy, othis ois osilly.
ln -s openjade $RPM_BUILD_ROOT/%{_bindir}/jade
for file in nsgmls sgmlnorm spam spent sx ; do
  ln -s o$file $RPM_BUILD_ROOT/%{_bindir}/$file
done

mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml
install generic/*.h $RPM_BUILD_ROOT%{_includedir}/sp/generic/
install include/*.h $RPM_BUILD_ROOT%{_includedir}/sp/include/
cp dsssl/builtins.dsl dsssl/catalog $RPM_BUILD_ROOT%{sgmlbase}/%{name}-%{version}/
install pubtext/* $RPM_BUILD_ROOT%{sgmlbase}/%{name}-%{version}/pubtext
#install unicode/* $RPM_BUILD_ROOT%{sgmlbase}/%{name}-%{version}/unicode
cp dsssl/dsssl.dtd dsssl/style-sheet.dtd dsssl/fot.dtd $RPM_BUILD_ROOT%{sgmlbase}/%{name}-%{version}/

cd $RPM_BUILD_ROOT%{sgmlbase}
ln -s %{name}-%{version} %{name}

ln -s %{name}-%{version}/pubtext/xml.dcl xml.dcl
ln -s %{name}-%{version}/pubtext/xml.soc xml.soc
ln -s %{name}-%{version}/pubtext/html.dcl html.dcl
ln -s %{name}-%{version}/pubtext/html.soc html.soc

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sgml
touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/dsssl-%{version}.cat \
 $RPM_BUILD_ROOT%{_sysconfdir}/sgml/dsssl.cat \
 $RPM_BUILD_ROOT%{_sysconfdir}/sgml/catalog

# Remove unpackaged symlink
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sgml/openjade

%post

# remove openjade-1.3 catalog if referenced
bads=`find %{_sysconfdir}/sgml -type f -exec grep -l %{name}-1.3 {} \;`
for f in $bads; do 
	%{_bindir}/xmlcatalog --sgml --noout --del $f %{sgmlbase}/%{name}-1.3/catalog;
done
if [ -e %{_sysconfdir}/sgml/catalog ] && [ "$(grep 'sgml-docbook-*.cat' %{_sysconfdir}/sgml/catalog)" != "" ]; then \
%{_bindir}/xmlcatalog --sgml --noout --del %{_sysconfdir}/sgml/catalog '%{_sysconfdir}/sgml/sgml-docbook-*.cat'; fi

# Add new catalogs
touch %{_sysconfdir}/sgml/dsssl-%{version}.cat
for i in %{_sysconfdir}/sgml/dsssl-%{version}.cat %{_sysconfdir}/sgml/{x,sg}ml-docbook-*.cat; do
  [ -e $i ] && %{_bindir}/xmlcatalog --sgml --noout --add \
  	$i %{sgmlbase}/%{name}/catalog
done
ln -s -f %{_sysconfdir}/sgml/dsssl-%{version}.cat %{_sysconfdir}/sgml/dsssl.cat

%pre
cd %{sgmlbase}
if [ -L %{name} ]; then
 rm -f %{name}
fi
ln -sf %{name}-%{version} %{name}

%postun
# Do not remove if upgrade
if [ "$1" = "0" ]; then 
  if [ -x %{_bindir}/xmlcatalog ]; then
    for i in %{_sysconfdir}/sgml/dsssl-%{version}.cat %{_sysconfdir}/sgml/sgml-docbook-*.cat %{_sysconfdir}/sgml/xml-docbook-*.cat; do
        [ -e $i ] && %{_bindir}/xmlcatalog --sgml --noout --del \
		  $i %{sgmlbase}/%{name}/catalog
    done
  fi
    rm -f %{_sysconfdir}/sgml/dsssl.cat %{sgmlbase}/%{name}
# Is it last docbook catalog?
    if [ ! -e %{_sysconfdir}/sgml/dsssl-%{version}.cat ]; then 
	rm -f %{_sysconfdir}/sgml/sgml-docbook.cat
	OTHERCAT=`ls %{_sysconfdir}/sgml/dsssl-?.?.cat 2> /dev/null | head --lines 1`
	if [ -n "$OTHERCAT" ]; then ln -sf $OTHERCAT %{_sysconfdir}/sgml/dsssl.cat; fi
    fi
fi


%clean 
rm -rf $RPM_BUILD_ROOT 

%files
%defattr(-,root,root)
%doc doc/ jadedoc/ dsssl/ pubtext/  README VERSION
%ghost %config(noreplace) %{_sysconfdir}/sgml/dsssl*.cat
%ghost %config(noreplace) %{_sysconfdir}/sgml/catalog
%{_bindir}/*
%{sgmlbase}/%{name}-%{version}
%{sgmlbase}/*.dcl
%{sgmlbase}/*.soc
%{_mandir}/*/*

%files -n %libname
%defattr(-,root,root)
%{_libdir}/lib*.so.*

%files -n %libnamedev
%defattr(-,root,root)
%{_includedir}/sp
%{_libdir}/lib*.so
%{_libdir}/lib*a




%changelog
* Sun Jan 09 2011 blino <blino> 1.3.3-0.pre1.10.mga1
+ Revision: 2796
- remove old version in comment
- remove old version check, file migration, ldconfig scriptlets
- imported package openjade


* Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 1.3.3-0.pre1.9mdv2011.0
+ Revision: 607017
- rebuild

* Tue Mar 16 2010 Oden Eriksson <oeriksson@mandriva.com> 1.3.3-0.pre1.8mdv2010.1
+ Revision: 521154
- rebuilt for 2010.1

* Sun Sep 27 2009 Olivier Blin <oblin@mandriva.com> 1.3.3-0.pre1.7mdv2010.0
+ Revision: 450178
- specify by hand opensp libdir, openjade is overriding the default
  opensp libdir due to ppc64: this hack is broken and breaks build
  when mips64 glibc binaries are installed, moreover there's no sane
  reason for overriding it (from Arnaud Patard)

* Sat Mar 07 2009 Antoine Ginies <aginies@mandriva.com> 1.3.3-0.pre1.6mdv2009.1
+ Revision: 351649
- rebuild

* Mon Jul 14 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3.3-0.pre1.5mdv2009.0
+ Revision: 234917
- added a gcc43 patch (P1)
- fix linkage (P2, fedora)
- fix ppc64 stuff (P3, fedora)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Mon Feb 04 2008 Thierry Vignaud <tv@mandriva.org> 1.3.3-0.pre1.4mdv2008.1
+ Revision: 162434
- stop using prereq
- kill re-definition of %%buildroot on Pixel's request
- fix summary

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Fri Jun 22 2007 Christiaan Welvaart <spturtle@mandriva.org> 1.3.3-0.pre1.3mdv2008.0
+ Revision: 42897
- rebuild to link against new opensp on ppc

* Wed Jun 13 2007 Götz Waschk <waschk@mandriva.org> 1.3.3-0.pre1.2mdv2008.0
+ Revision: 38534
- rebuild

* Fri Jun 08 2007 Götz Waschk <waschk@mandriva.org> 1.3.3-0.pre1.1mdv2008.0
+ Revision: 37288
- new version
- unpack patch
- fix installation
- Import openjade



* Sun Sep 10 2006 Stefan van der Eijk <stefan@mandriva.org> 1.3.2-13
- %%mkrel

* Tue Aug 16 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.2-12mdk
- built-in libtool 1.4 fixes

* Mon Jun  7 2004 Götz Waschk <waschk@linux-mandrake.com> 1.3.2-11mdk
- rebuild for new g++

* Thu Apr 22 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.3.2-10mdk
- Don't complain when xmlcatalog is not available at uninstall

* Tue Jan  6 2004 Stefan van der Eijk <stefan@eijk.nu> 1.3.2-9mdk
- remove unpackaged symlink

* Thu Aug 21 2003  <camille@ke.mandrakesoft.com> 1.3.2-8mdk
- include xml.dcl link in files list

* Wed Jul 30 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.3.2-7mdk
- Provides: openjade-devel

* Mon Jul 21 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 1.3.2-6mdk
- Own some generated config files
- now, unregister from xml catalog too

* Tue Jul  1 2003 Götz Waschk <waschk@linux-mandrake.com> 1.3.2-5mdk
- require OpenSP, unbreaks the /usr/bin/nsgmls symlink (Troels Liebe Bentsen)

* Thu Jun 26 2003 Götz Waschk <waschk@linux-mandrake.com> 1.3.2-4mdk
- buildrequires fix

* Thu Jun 26 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.2-3mdk
- do not obsolete sgml-tools

* Tue Jun 24 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 1.3.2-2mdk
- Fix pre script : we need to create openjade symlink on upgrade too..

* Tue Jun 10 2003 Warly <warly@mandrakesoft.com> 1.3.2-1mdk
- new version (main changes):
  - Build against OpenSP 1.5.
  - Minor fixes to MIF backend.
  - Fix quoted of ampersand in XML/SGML transformations.

* Wed May 21 2003 Götz Waschk <waschk@linux-mandrake.com> 1.3.1-16mdk
- add a versioned provides for jade

* Fri Apr 25 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 1.3.1-15mdk
- Remove openjade symlink when uninstalling
- symlink html.dcl and xml.dcl in sgml dir
- fix trigger when uninstalling

* Fri Jan 17 2003  <camille@ke.mandrakesoft.com> 1.3.1-14mdk
- add catalog to docbook xml too 

* Fri Jan 17 2003  <camille@ke.mandrakesoft.com> 1.3.1-13mdk
- rebuild

* Tue Nov 19 2002  <camille@ke.mandrakesoft.com> 1.3.1-12mdk
- Fix /etc/sgml/dsssl-1.3.1.cat not there and ln openjade bug 

* Sat Aug 17 2002 Jeff Garzik <jgarzik@mandrakesoft.com> 1.3.1-11mdk
- clean up, kill lots of rpmlint-caught warnings:
- remove alpha-specific cflags
- remove mention of non-existent patch1
- remove addition of -j to %%make macro
- remove COPYING file from %%doc, redundant to package common-licenses
- libify: move libs and includes into new pkgs libopenjade0 and
  libopenjade0-devel
- use %%configure2_5x
- remove call to libtoolize, redundant now with %%configure2_5x

* Thu Aug 15 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.1-10mdk
- rebuild for new g++-3.2 ABI
- fix invalid-license

* Wed Aug 14 2002  <camille@ke.mandrakesoft.com> 1.3.1-9mdk
- Fix catalog when no docbook installed

* Thu Jul 25 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.3.1-8mdk
- Automated rebuild with gcc3.2

* Sun Jul  7 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.3.1-7mdk
- rpmlint fixes: hardcoded-library-path, strange-permission

* Wed May 15 2002 Frederic Lepied <flepied@mandrakesoft.com> 1.3.1-6mdk
- corrected upgrade

* Mon Apr 22 2002  <camille@mandrakesoft.com> 1.3.1-4mdk
- get lt patch from RH
- some spec update

* Mon Jan 28 2002  <camille@mandrakesoft.com> 1.3.1-3mdk
- Fix paths in post scripts
- owns /usr/share/sgml/openjade/

* Mon Jan 28 2002  <camille@mandrakesoft.com> 1.3.1-2mdk
- install in /usr/share/sgml/openjade/ not /usr/share/sgml/openjade-1.3/

* Mon Jan 28 2002  <camille@mandrakesoft.com> 1.3.1-1mdk
- 1.3.1

* Thu Oct 25 2001  <camille@mandrakesoft.com> 1.3-16mdk
- Following Gwenole suggestions, remove patches 3 & 6 
  to allow compilation on IA-64

* Fri Aug 24 2001  <camille@mandrakesoft.com> 1.3-15mdk
- add 2 patches for correct pages numbering with docbook
  from Ian Castle and Francis J. Lacoste

* Mon Jul 16 2001  <camille@mandrakesoft.com> 1.3-14mdk
- fix address in changelog....

* Mon Jul 16 2001  <camille@mandrakesoft.com> 1.3-13mdk
- oops, add catalog in right file...
- apply again needed openjade-builtins.patch (why did it disappear?)

* Mon Jul 16 2001  <camille@mandrakesoft.com> 1.3-12mdk
- Add catalog in sgml-docbook.cat

* Wed Jun 20 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3-11mdk
- s|Requires|Prereq|;sgml-common (fcrozat).
- Fix compilations.

* Mon Nov 27 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3-10mdk
- Don't compile with optimisations.

* Wed Nov 08 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3-9mdk
- RH patch merge.
- Compile with gcc2.96.

* Sun Sep 03 2000 Christopher Molnar <molnarc@mandrakesoft.com> 1.3-8mdk
- Rebuilt as jade is not finding the new version of docbook-style-dsssl it is
  still looking for the old one.

* Mon Aug 28 2000 Camille Begnis <camille@mandrakesoft.com> 1.3-7mdk
- relocate builtins.dsl

* Thu Aug 24 2000 Camille Begnis <camille@mandrakesoft.com> 1.3-6mdk
- Requires: sgml-common >= 0.2

* Wed Aug 23 2000 Camille Begnis <camille@mandrakesoft.com> 1.3-5mdk
- Pre-LSB compliance

* Mon Jul 03 2000 Camille Begnis <camille@mandrakesoft.com> 1.3-4mdk
- Add %%post -p ldconfig and %%postun -p ldconfig

* Fri Jun 30 2000 Camille Begnis <camille@mandrakesoft.com> 1.3-3mdk
- recompile with newer libstdc++

* Tue Jun 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3-2mdk
- User makeinstall macros.

* Tue May 23 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3-1mdk
- Set -fexecpltions to CFLAGS when compiling on ia32.
- Rename package to openjade (add Provides: Obsoletes: jade).
- compile with egcs.
- Clean up specs.

* Tue Mar 21 2000 Camille Begnis <camille@mandrakesoft.com> 1.2.1-9mdk
- major spec update 
- remove sources from rpm
- fixed doc

* Sun Dec 19 1999 John Buswell <johnb@mandrakesoft.com>
- Fixed docs

* Tue Dec 14 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Fix build with gcc2.95.

* Sun Nov 07 1999 John Buswell <johnb@mandrakesoft.com>
- Added Url and updated source url
- Build Release

* Tue Jul 13 1999 Thierry Vignaud <tvignaud@mandrakesoft.com>
- bzip2 source


* Thu Jul 08 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- First version with the help of author.