]> git.pld-linux.org Git - packages/openjade.git/blob - openjade.spec
- fixing problem with table in pdf, ps and dvi
[packages/openjade.git] / openjade.spec
1 Summary:        OpenJade -- DSSSL parser
2 Summary(pl):    OpenJade -- parser DSSSL
3 Name:           openjade
4 Version:        1.4
5 Release:        8.20020409
6 License:        Free (Copyright (C) 1999 The OpenJade group)
7 Group:          Applications/Publishing/SGML
8 Source0:        %{name}-20020409.tar.gz
9 #Patch0:                %{name}-DESTDIR.patch
10 Patch1:         %{name}-table.patch
11 URL:            http://openjade.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  libtool
15 BuildRequires:  gettext-devel
16 BuildRequires:  opensp-devel
17 BuildRequires:  perl
18 Provides:       jade
19 Provides:       dssslparser
20 Requires:       sgmlparser
21 Requires:       opensp >= 1.4-9
22 Prereq:         sgml-common
23 Prereq:         /sbin/ldconfig
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Obsoletes:      jade
26
27 %description
28 Jade (James' DSSSL Engine) is an implementation of the DSSSL style
29 language. OpenJade is successor of Jade.
30
31 %description -l pl
32 Jade (James' DSSSL Engine) jest implementacj± parsera DSSSL. OpenJade
33 jest nastêpc± Jade.
34
35 %package devel
36 Summary:        OpenJade header files
37 Summary(pl):    Pliki nag³ówkowe do bibliotek OpenJade
38 Group:          Development/Libraries
39 Prereq:         /sbin/ldconfig
40 Requires:       %{name} = %{version}
41
42 %description devel
43 Openjade header files.
44
45 %description devel -l pl
46 Pliki nag³ówkowe do bibliotek OpenJade.
47
48 %package static
49 Summary:        OpenJade static libraries
50 Summary(pl):    Biblioteki statyczne OpenJade
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}
53
54 %description static
55 OpenJade static libraries.
56
57 %description static -l pl
58 Biblioteki statyczne OpenJade.
59
60 %prep
61 %setup -q -n %{name}-20020409
62 %patch1 -p0
63
64 %build
65 #missing files required by Makefile.am
66 >ChangeLog
67 >INSTALL
68 gettextize --copy --force
69 libtoolize --copy --force
70 aclocal
71 echo "#undef SIZEOF_WCHAR_T" >> acconfig.h
72 autoheader
73 automake -a -c -f
74 #aclocal
75 autoconf
76 %ifarch alpha
77 CXXFLAGS="-O0"
78 export CXXFLAGS
79 %endif
80 %configure \
81         --enable-default-catalog=/etc/sgml/catalog \
82         --enable-default-search-path=/usr/share/sgml \
83
84
85 # it has /usr/share/Openjade hardcoded somewhere so it des not work
86         # --datadir=%{_datadir}/sgml
87
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT%{_datadir}/sgml
93
94 %{__make} install DESTDIR=$RPM_BUILD_ROOT
95
96 cp -a unicode $RPM_BUILD_ROOT%{_datadir}/sgml
97 ln -sf "../OpenJade" $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}-%{version}
98
99 ##ln -s "../OpenJade" $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}
100 #install dsssl/catalog \
101 #       dsssl/builtins.dsl dsssl/extensions.dsl \
102 #       dsssl/dsssl.dtd dsssl/fot.dtd dsssl/spec.dtd dsssl/style-sheet.dtd \
103 #       $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}-%{version}/
104 #grep -v SYSTEM $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}/catalog > \
105 #       $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}/%{name}.cat
106
107
108 # simulate jade
109 ln -sf openjade $RPM_BUILD_ROOT%{_bindir}/jade
110
111 gzip -9nf COPYING README
112
113 %find_lang OpenJade
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %post
119 /sbin/ldconfig
120 /usr/bin/install-catalog --add /etc/sgml/dsssl-%{version}.cat \
121         %{_datadir}/sgml/%{name}-%{version}/catalog
122
123 %postun
124 /sbin/ldconfig
125 # Do not remove if upgrade
126 if [ "$1" = "0" ]; then
127         /usr/bin/install-catalog --remove /etc/sgml/dsssl-%{version}.cat \
128                 %{_datadir}/sgml/%{name}-%{version}/catalog
129 fi
130
131 %files -f OpenJade.lang
132 %defattr(644,root,root,755)
133 %doc jadedoc/ dsssl/ README.gz COPYING.gz
134 %attr(755,root,root) %{_bindir}/*
135 %attr(755,root,root) %{_libdir}/lib*.so.*.*
136 %{_datadir}/sgml/*
137 %{_datadir}/OpenJade
138
139 %files devel
140 %defattr(644,root,root,755)
141 %{_includedir}/OpenJade
142 %attr(755,root,root) %{_libdir}/lib*.so
143 %attr(755,root,root) %{_libdir}/lib*.la
144
145 %files static
146 %defattr(644,root,root,755)
147 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.069518 seconds and 3 git commands to generate.