1 # Copyright (C) 2000 Matthias Clasen
2 # See the file COPYING for copying permissions.
4 Summary: The OpenJade Group's SGML and XML parsing tools
8 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10 Group: Applications/Text
11 Source: http://download.sourceforge.net/openjade/@PACKAGE@-@VERSION@.tar.gz
12 URL: http://openjade.sourceforge.net/
13 Requires: @PACKAGE@-lib
16 This package is a collection of SGML/XML tools called OpenSP. It is a fork from
17 James Clark's SP suite. These tools are used to parse, validate, and normalize
21 Summary: Runtime library for the OpenJade group's SP suite
22 Group: System Environment/Libraries
25 This is the SP suite's shared library runtime support. This C++
26 library contains entity management functions, parsing functions, and
27 other functions useful for SGML/XML/DSSSL development.
30 Summary: Libraries and include files for developing OpenSP applications.
31 Group: Development/Libraries
34 This contains include files and libraries for OpenSP.
35 This C++ library contains entity management functions, parsing functions,
36 and other functions useful for SGML/XML/DSSSL development.
39 # check that rpm is new enough to know internal macros like %{_prefix}
40 rpmversion=`rpm -q --queryformat '%{RPMVERSION}' rpm | cut -d. -f1`
41 [ ${rpmversion} -lt 3 ] && { echo "please update rpm" exit 1 ; }
42 # unpack source .tar.gz package
46 # configure build system according to rpm settings
47 ./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --libexecdir=%{_libexecdir} --datadir=%{_datadir} --sysconfdir=%{_sysconfdir} --sharedstatedir=%{_sharedstatedir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --includedir=%{_includedir} --oldincludedir=%{_oldincludedir} --infodir=%{_infodir} --mandir=%{_mandir}
49 make CFLAGS="${RPM_OPT_FLAGS}"
53 make "DESTDIR=${RPM_BUILD_ROOT}" install
56 test "$RPM_BUILD_ROOT" = "/" || rm -rf "$RPM_BUILD_ROOT"
59 %defattr(-, root, root)
61 %{_datadir}/@PACKAGE@/*
62 %doc %{_datadir}/doc/@PACKAGE@/*
63 %doc %{_mandir}/man1/*
66 %defattr(-, root, root)
68 %{_datadir}/locale/*/LC_MESSAGES/sp4.mo
71 %defattr(-, root, root)
75 %{_includedir}/@PACKAGE@/*
78 * Fri Aug 26 2005 Terje Bless <link@pobox.com>
79 - Slightly tweak spec towards Fedora guidelines;
80 for Vendor, Packager, Copyright vs. License, and BuildRoot.
82 * Fri Apr 09 2004 Terje Bless <link@pobox.com>
83 - Add man pages to the "files" section for OpenSP.
84 - Use _datadir macro for doc files (Karl Eichwalder and Ville Skytta).
85 - Tweak name of l10n files; they get the lib's major rev appended.
87 * Wed Feb 21 2001 Terje Bless <link@pobox.com>
88 - Fixed name of l10n message files ("OpenSP" -> "sp").
90 * Tue Feb 20 2001 Terje Bless <link@pobox.com>
91 - Tweaked strings, moved to Sourceforge.