File: spec.in

package info (click to toggle)
openjade 1.4devel1-22
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 5,336 kB
  • sloc: cpp: 90,092; sh: 7,479; ansic: 1,793; lisp: 894; perl: 604; makefile: 393; sed: 93
file content (78 lines) | stat: -rw-r--r-- 2,714 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright (C) 2000 Matthias Clasen
# See the file COPYING for copying permissions.

Summary: OpenJade group's DSSSL engine
Name: @PACKAGE@
Version: @VERSION@
Release: 1
BuildRoot: /tmp/@PACKAGE@-@VERSION@-buildroot
Copyright: Copyright 1997 James Clark
Group: Applications/Text
Source: http://download.sourceforge.net/openjade/@PACKAGE@-@VERSION@.tar.gz
URL: http://openjade.sourceforge.net
Vendor: The OpenJade team <jade-devel@infomansol.com>
Packager: Matthias Clasen <clasen@mathematik.uni-freiburg.de>
Requires: @PACKAGE@-lib

%description
OpenJade is an implementation of the DSSSL style language. 

The OpenJade engine is a useful tool (in conjunction with a DSSSL style sheet)
for translating SGML documents into other formats. OpenJade can currently
generate SGML, HTML, RTF, MIF and TeX. In conjunction with the "jadetex" TeX
style, it can generate quite nice output.  
     
%package lib
Summary: Runtime libraries for OpenJade group's DSSSL engine
Group: System Environment/Libraries
Requires: OpenSP-lib

%description lib 
This is the OpenJade shared library runtime support.  These C++
libraries contain the actual DSSSL engine, an abstract C++ interface to
groves and an implementation of this interface on top of OpenSP.

%package devel
Summary: Libraries and include files for developing DSSSL applications.
Group: Development/Libraries
Requires: OpenSP-devel

%description devel 
This contains include files and libraries for OpenJade.
These C++ libraries contain the actual DSSSL engine, an abstract C++ interface
to groves and an implementation of this interface on top of OpenSP.

%prep
# check that rpm is new enough to know internal macros like %{_prefix}
rpmversion=`rpm -q --queryformat '%{RPMVERSION}' rpm | cut -d. -f1`
[ ${rpmversion} -lt 3 ] && { echo "please update rpm" exit 1 ; }
# unpack source .tar.gz package
%setup

%build
# configure build system according to rpm settings
./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}
# compile and link
make CFLAGS="${RPM_OPT_FLAGS}"

%install
# install all files
make "DESTDIR=${RPM_BUILD_ROOT}" install

%clean
test "$RPM_BUILD_ROOT" = "/" || rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-, root, root)
%{_bindir}/*
%{_datadir}/@PACKAGE@/*
%doc /usr/doc/@PACKAGE@/*

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

%files devel
%defattr(-, root, root)
%{_libdir}/lib*.{so,a,la}
%{_includedir}/@PACKAGE@/*