]>
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 | |
62 | ||
63 | %build | |
64 | # Argh! automake stuff outdated, imake stuff outdated even more, | |
65 | # makefiles not outdated but don't support shared libraries :/ | |
66 | # Use automake with some patches/workarounds/etc | |
29cf6ab9 | 67 | cd lib |
9523ae52 JB |
68 | mv -f common/*.c . |
69 | mv -f Motif/*.c . | |
29cf6ab9 | 70 | cd .. |
9523ae52 | 71 | |
44b7afad | 72 | %{__libtoolize} |
c97ef8eb | 73 | %{__aclocal} |
6b276664 | 74 | %{__autoconf} |
75 | %{__automake} | |
94d0740f | 76 | CFLAGS="%{rpmcflags} \ |
963dd32b | 77 | -I`pwd`/include/XmHTML -I`pwd`/include/common \ |
087b6c28 | 78 | %{!?debug:-DNDEBUG -Dproduction} -DVERSION=1107" |
b1991295 | 79 | %configure \ |
80 | LIBS="-lm" | |
9523ae52 JB |
81 | |
82 | cd lib | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | install -d $RPM_BUILD_ROOT%{_includedir}/XmHTML | |
88 | ||
29cf6ab9 PG |
89 | %{__make} install -C lib \ |
90 | DESTDIR=$RPM_BUILD_ROOT | |
9523ae52 JB |
91 | |
92 | install include/XmHTML/{Balloon,HTML,HTMLStrings,XCC,XmHTML}.h \ | |
93 | include/common/LZWStream.h \ | |
94 | $RPM_BUILD_ROOT%{_includedir}/XmHTML | |
95 | ||
96 | rm -f html/man/man.{map,tmpl} | |
97 | ||
90a67647 | 98 | %clean |
9523ae52 JB |
99 | rm -rf $RPM_BUILD_ROOT |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
c7ad4278 | 106 | %doc APPS BUG-REPORTING CHANGES DEBUGGING FEEDBACK FIXES |
107 | %doc README THANKS TODO docs/{QUOTES,README.*,REASONS,progressive.txt} | |
ac3dc02b JB |
108 | %attr(755,root,root) %{_libdir}/libXmHTML.so.*.*.* |
109 | %attr(755,root,root) %ghost %{_libdir}/libXmHTML.so.0 | |
9523ae52 JB |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %doc html/* | |
ac3dc02b JB |
114 | %attr(755,root,root) %{_libdir}/libXmHTML.so |
115 | %{_libdir}/libXmHTML.la | |
9523ae52 JB |
116 | %{_includedir}/XmHTML |
117 | ||
118 | %files static | |
119 | %defattr(644,root,root,755) | |
ac3dc02b | 120 | %{_libdir}/libXmHTML.a |