]> git.pld-linux.org Git - packages/XmHTML.git/blob - XmHTML.spec
- spec adapterized.
[packages/XmHTML.git] / XmHTML.spec
1 Summary:        Motif HTML widget
2 Summary(pl):    Widget do HTML oparty o Motif
3 Name:           XmHTML
4 Version:        1.1.7
5 Release:        1
6 License:        LGPL
7 Group:          X11/Libraries
8 Group(de):      X11/Libraries
9 Group(es):      X11/Bibliotecas
10 Group(fr):      X11/Librairies
11 Group(pl):      X11/Biblioteki
12 Source0:        http://www.xs4all.nl/~ripley/XmHTML/dist/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-am.patch
14 Patch1:         %{name}-macro.patch
15 URL:            http://www.xs4all.nl/~ripley/XmHTML/
16 BuildRequires:  libjpeg-devel
17 BuildRequires:  libpng-devel
18 BuildRequires:  lesstif-devel
19 BuildRequires:  XFree86-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _prefix         /usr/X11R6
25 %define         _mandir         %{_prefix}/man
26
27 %description
28 XmHTML provides a widget capable of displaying HTML 3.2 conforming
29 text.
30
31 %description -l pl
32 XmHTML zawiera widget wy¶wietlaj±cy HTML w wersji 3.2.
33
34 %package devel
35 Summary:        Development package of XmHTML
36 Summary(pl):    Pliki nag³ówkowe XmHTML
37 Group:          X11/Development/Libraries
38 Group(de):      X11/Entwicklung/Libraries
39 Group(pl):      X11/Programowanie/Biblioteki
40 Requires:       %{name} = %{version}
41
42 %description devel
43 Headers needed to compile XmHTML programs.
44
45 %description devel -l pl
46 Pliki nag³ówkowe potrzebne do kompilowania programów korzystaj±cych z
47 XmHTML.
48
49 %package static
50 Summary:        Static version of XmHTML library
51 Summary(pl):    Statyczna biblioteka XmHTML
52 Group:          X11/Development/Libraries
53 Group(de):      X11/Entwicklung/Libraries
54 Group(pl):      X11/Programowanie/Biblioteki
55 Requires:       %{name}-devel = %{version}
56
57 %description static
58 Static version of XmHTML library.
59
60 %description static -l pl
61 Statyczna wersja biblioteki XmHTML.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66 %patch1 -p1
67
68 %build
69 # Argh! automake stuff outdated, imake stuff outdated even more,
70 # makefiles not outdated but don't support shared libraries :/
71 # Use automake with some patches/workarounds/etc
72 (cd lib
73 mv -f common/*.c .
74 mv -f Motif/*.c .
75 )
76
77 libtoolize --copy --force
78 aclocal
79 autoconf
80 automake -a -c
81 CFLAGS="%{rpmcflags} \
82         -I`pwd`/include/XmHTML -I`pwd`/include/common \
83         %{!?debug:-DNDEBUG -Dproduction} -DVERSION=1107"
84 %configure
85
86 cd lib
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{_includedir}/XmHTML
92
93 %{__make} install -C lib DESTDIR=$RPM_BUILD_ROOT
94
95 install include/XmHTML/{Balloon,HTML,HTMLStrings,XCC,XmHTML}.h \
96         include/common/LZWStream.h \
97         $RPM_BUILD_ROOT%{_includedir}/XmHTML
98
99 rm -f html/man/man.{map,tmpl}
100
101 gzip -9nf APPS BUG-REPORTING CHANGES DEBUGGING FEEDBACK FIXES \
102         README THANKS TODO docs/{QUOTES,README.*,REASONS,progressive.txt}
103
104 %clean 
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc *.gz docs/*.gz
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %doc html/*
118 %attr(755,root,root) %{_libdir}/lib*.so
119 %attr(755,root,root) %{_libdir}/lib*.la
120 %{_includedir}/XmHTML
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/lib*.a
This page took 0.030536 seconds and 4 git commands to generate.