TIVI-153: Add as dependency for iputils
[profile/ivi/opensp.git] / spec.in
1 # Copyright (C) 2000 Matthias Clasen
2 # See the file COPYING for copying permissions.
3
4 Summary: The OpenJade Group's SGML and XML parsing tools
5 Name: @PACKAGE@
6 Version: @VERSION@
7 Release: 1
8 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9 License: GPL
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
14
15 %description
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
18 SGML and XML files.  
19      
20 %package lib
21 Summary: Runtime library for the OpenJade group's SP suite
22 Group: System Environment/Libraries
23
24 %description lib 
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.
28
29 %package devel
30 Summary: Libraries and include files for developing OpenSP applications.
31 Group: Development/Libraries
32
33 %description devel 
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.
37
38 %prep
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
43 %setup
44
45 %build
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}
48 # compile and link
49 make CFLAGS="${RPM_OPT_FLAGS}"
50
51 %install
52 # install all files
53 make "DESTDIR=${RPM_BUILD_ROOT}" install
54
55 %clean
56 test "$RPM_BUILD_ROOT" = "/" || rm -rf "$RPM_BUILD_ROOT"
57
58 %files
59 %defattr(-, root, root)
60 %{_bindir}/*
61 %{_datadir}/@PACKAGE@/*
62 %doc %{_datadir}/doc/@PACKAGE@/*
63 %doc %{_mandir}/man1/*
64
65 %files lib
66 %defattr(-, root, root)
67 %{_libdir}/*.so.*
68 %{_datadir}/locale/*/LC_MESSAGES/sp4.mo
69
70 %files devel
71 %defattr(-, root, root)
72 %{_libdir}/lib*.so
73 %{_libdir}/lib*.a
74 %{_libdir}/lib*.la
75 %{_includedir}/@PACKAGE@/*
76
77 %changelog
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.
81
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.
86
87 * Wed Feb 21 2001 Terje Bless <link@pobox.com>
88 - Fixed name of l10n message files ("OpenSP" -> "sp").
89
90 * Tue Feb 20 2001 Terje Bless <link@pobox.com>
91 - Tweaked strings, moved to Sourceforge.