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