]>
Commit | Line | Data |
---|---|---|
9523ae52 | 1 | Summary: Motif HTML widget |
b729e34d | 2 | Summary(pl.UTF-8): Widget do HTML-a oparty o Motif |
9523ae52 JB |
3 | Name: XmHTML |
4 | Version: 1.1.7 | |
e4b2d8c8 | 5 | Release: 11 |
9523ae52 JB |
6 | License: LGPL |
7 | Group: X11/Libraries | |
9523ae52 | 8 | Source0: http://www.xs4all.nl/~ripley/XmHTML/dist/%{name}-%{version}.tar.gz |
afc04747 | 9 | # Source0-md5: 6d079435fb954bb7878f4dd0d3f7b8d8 |
9523ae52 JB |
10 | Patch0: %{name}-am.patch |
11 | Patch1: %{name}-macro.patch | |
12 | URL: http://www.xs4all.nl/~ripley/XmHTML/ | |
9523ae52 JB |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
9254d4b9 JB |
15 | BuildRequires: libjpeg-devel |
16 | BuildRequires: libpng-devel | |
79e99467 | 17 | BuildRequires: libtool |
b86efc75 | 18 | BuildRequires: motif-devel >= 1.2 |
0ba16d73 | 19 | BuildRequires: xorg-lib-libXmu-devel |
d450b70b | 20 | BuildRequires: xorg-lib-libXpm-devel |
087b6c28 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9523ae52 | 22 | |
9523ae52 JB |
23 | %description |
24 | XmHTML provides a widget capable of displaying HTML 3.2 conforming | |
25 | text. | |
26 | ||
31a5842d JR |
27 | %description -l pl.UTF-8 |
28 | XmHTML zawiera widget wyświetlający HTML w wersji 3.2. | |
9523ae52 JB |
29 | |
30 | %package devel | |
31 | Summary: Development package of XmHTML | |
b729e34d | 32 | Summary(pl.UTF-8): Pliki nagłówkowe XmHTML |
9523ae52 | 33 | Group: X11/Development/Libraries |
2f51b005 | 34 | Requires: %{name} = %{version}-%{release} |
3e8ea7b2 JB |
35 | Requires: libjpeg-devel |
36 | Requires: libpng-devel | |
b86efc75 | 37 | Requires: motif-devel >= 1.2 |
9523ae52 JB |
38 | |
39 | %description devel | |
40 | Headers needed to compile XmHTML programs. | |
41 | ||
31a5842d JR |
42 | %description devel -l pl.UTF-8 |
43 | Pliki nagłówkowe potrzebne do kompilowania programów korzystających z | |
5ca38e90 | 44 | XmHTML. |
9523ae52 JB |
45 | |
46 | %package static | |
47 | Summary: Static version of XmHTML library | |
b729e34d | 48 | Summary(pl.UTF-8): Statyczna biblioteka XmHTML |
9523ae52 | 49 | Group: X11/Development/Libraries |
2f51b005 | 50 | Requires: %{name}-devel = %{version}-%{release} |
9523ae52 JB |
51 | |
52 | %description static | |
53 | Static version of XmHTML library. | |
54 | ||
31a5842d | 55 | %description static -l pl.UTF-8 |
9523ae52 JB |
56 | Statyczna wersja biblioteki XmHTML. |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | %patch0 -p1 | |
61 | %patch1 -p1 | |
9523ae52 JB |
62 | # Argh! automake stuff outdated, imake stuff outdated even more, |
63 | # makefiles not outdated but don't support shared libraries :/ | |
64 | # Use automake with some patches/workarounds/etc | |
29cf6ab9 | 65 | cd lib |
9523ae52 JB |
66 | mv -f common/*.c . |
67 | mv -f Motif/*.c . | |
29cf6ab9 | 68 | cd .. |
9523ae52 | 69 | |
d23da5b2 | 70 | %build |
44b7afad | 71 | %{__libtoolize} |
c97ef8eb | 72 | %{__aclocal} |
6b276664 | 73 | %{__autoconf} |
74 | %{__automake} | |
94d0740f | 75 | CFLAGS="%{rpmcflags} \ |
963dd32b | 76 | -I`pwd`/include/XmHTML -I`pwd`/include/common \ |
087b6c28 | 77 | %{!?debug:-DNDEBUG -Dproduction} -DVERSION=1107" |
b1991295 | 78 | %configure \ |
79 | LIBS="-lm" | |
9523ae52 JB |
80 | |
81 | cd lib | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | install -d $RPM_BUILD_ROOT%{_includedir}/XmHTML | |
87 | ||
29cf6ab9 PG |
88 | %{__make} install -C lib \ |
89 | DESTDIR=$RPM_BUILD_ROOT | |
9523ae52 JB |
90 | |
91 | install include/XmHTML/{Balloon,HTML,HTMLStrings,XCC,XmHTML}.h \ | |
92 | include/common/LZWStream.h \ | |
93 | $RPM_BUILD_ROOT%{_includedir}/XmHTML | |
94 | ||
95 | rm -f html/man/man.{map,tmpl} | |
96 | ||
90a67647 | 97 | %clean |
9523ae52 JB |
98 | rm -rf $RPM_BUILD_ROOT |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
c7ad4278 | 105 | %doc APPS BUG-REPORTING CHANGES DEBUGGING FEEDBACK FIXES |
106 | %doc README THANKS TODO docs/{QUOTES,README.*,REASONS,progressive.txt} | |
ac3dc02b JB |
107 | %attr(755,root,root) %{_libdir}/libXmHTML.so.*.*.* |
108 | %attr(755,root,root) %ghost %{_libdir}/libXmHTML.so.0 | |
9523ae52 JB |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %doc html/* | |
ac3dc02b JB |
113 | %attr(755,root,root) %{_libdir}/libXmHTML.so |
114 | %{_libdir}/libXmHTML.la | |
9523ae52 JB |
115 | %{_includedir}/XmHTML |
116 | ||
117 | %files static | |
118 | %defattr(644,root,root,755) | |
ac3dc02b | 119 | %{_libdir}/libXmHTML.a |