File: spec.in

package info (click to toggle)
opensp 1.5.2-13
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 8,932 kB
  • ctags: 10,036
  • sloc: cpp: 65,784; ansic: 17,124; sh: 11,503; xml: 2,704; makefile: 926; perl: 561; yacc: 288; sed: 16
file content (91 lines) | stat: -rw-r--r-- 3,092 bytes parent folder | download | duplicates (6)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright (C) 2000 Matthias Clasen
# See the file COPYING for copying permissions.

Summary: The OpenJade Group's SGML and XML parsing tools
Name: @PACKAGE@
Version: @VERSION@
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPL
Group: Applications/Text
Source: http://download.sourceforge.net/openjade/@PACKAGE@-@VERSION@.tar.gz
URL: http://openjade.sourceforge.net/
Requires: @PACKAGE@-lib

%description
This package is a collection of SGML/XML tools called OpenSP. It is a fork from
James Clark's SP suite. These tools are used to parse, validate, and normalize
SGML and XML files.  
     
%package lib
Summary: Runtime library for the OpenJade group's SP suite
Group: System Environment/Libraries

%description lib 
This is the SP suite's shared library runtime support.  This C++
library contains entity management functions, parsing functions, and
other functions useful for SGML/XML/DSSSL development.

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

%description devel 
This contains include files and libraries for OpenSP.
This C++ library contains entity management functions, parsing functions,
and other functions useful for SGML/XML/DSSSL development.

%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 %{_datadir}/doc/@PACKAGE@/*
%doc %{_mandir}/man1/*

%files lib
%defattr(-, root, root)
%{_libdir}/*.so.*
%{_datadir}/locale/*/LC_MESSAGES/sp4.mo

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

%changelog
* Fri Aug 26 2005 Terje Bless <link@pobox.com>
- Slightly tweak spec towards Fedora guidelines;
  for Vendor, Packager, Copyright vs. License, and BuildRoot.

* Fri Apr 09 2004 Terje Bless <link@pobox.com>
- Add man pages to the "files" section for OpenSP.
- Use _datadir macro for doc files (Karl Eichwalder and Ville Skytta).
- Tweak name of l10n files; they get the lib's major rev appended.

* Wed Feb 21 2001 Terje Bless <link@pobox.com>
- Fixed name of l10n message files ("OpenSP" -> "sp").

* Tue Feb 20 2001 Terje Bless <link@pobox.com>
- Tweaked strings, moved to Sourceforge.