]>
Commit | Line | Data |
---|---|---|
706df2f9 JB |
1 | # Note: upstream automake stuff is outdated, imake stuff outdated even more, |
2 | # plain Makefiles not outdated but messy. | |
3 | # Use automake with some patches. | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without xft # Xft support | |
7 | ||
9523ae52 | 8 | Summary: Motif HTML widget |
b729e34d | 9 | Summary(pl.UTF-8): Widget do HTML-a oparty o Motif |
9523ae52 | 10 | Name: XmHTML |
706df2f9 | 11 | Version: 1.1.10 |
a47be62f | 12 | Release: 2 |
74732fb3 | 13 | License: LGPL v2+ |
9523ae52 | 14 | Group: X11/Libraries |
706df2f9 JB |
15 | Source0: http://downloads.sourceforge.net/xmhtml/%{name}-%{version}.tgz |
16 | # Source0-md5: fd339d59d020da2ccf6e92bf65b810e2 | |
9523ae52 | 17 | Patch0: %{name}-am.patch |
706df2f9 JB |
18 | Patch1: %{name}-build.patch |
19 | Patch2: %{name}-xft.patch | |
20 | URL: https://sourceforge.net/projects/xmhtml/ | |
9523ae52 JB |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
9254d4b9 JB |
23 | BuildRequires: libjpeg-devel |
24 | BuildRequires: libpng-devel | |
79e99467 | 25 | BuildRequires: libtool |
b86efc75 | 26 | BuildRequires: motif-devel >= 1.2 |
706df2f9 | 27 | %{?with_xft:BuildRequires: xorg-lib-libXft-devel} |
0ba16d73 | 28 | BuildRequires: xorg-lib-libXmu-devel |
d450b70b | 29 | BuildRequires: xorg-lib-libXpm-devel |
087b6c28 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9523ae52 | 31 | |
9523ae52 JB |
32 | %description |
33 | XmHTML provides a widget capable of displaying HTML 3.2 conforming | |
34 | text. | |
35 | ||
31a5842d JR |
36 | %description -l pl.UTF-8 |
37 | XmHTML zawiera widget wyświetlający HTML w wersji 3.2. | |
9523ae52 JB |
38 | |
39 | %package devel | |
40 | Summary: Development package of XmHTML | |
b729e34d | 41 | Summary(pl.UTF-8): Pliki nagłówkowe XmHTML |
9523ae52 | 42 | Group: X11/Development/Libraries |
2f51b005 | 43 | Requires: %{name} = %{version}-%{release} |
3e8ea7b2 JB |
44 | Requires: libjpeg-devel |
45 | Requires: libpng-devel | |
b86efc75 | 46 | Requires: motif-devel >= 1.2 |
706df2f9 | 47 | %{?with_xft:Requires: xorg-lib-libXft-devel} |
9523ae52 JB |
48 | |
49 | %description devel | |
50 | Headers needed to compile XmHTML programs. | |
51 | ||
31a5842d JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki nagłówkowe potrzebne do kompilowania programów korzystających z | |
5ca38e90 | 54 | XmHTML. |
9523ae52 JB |
55 | |
56 | %package static | |
57 | Summary: Static version of XmHTML library | |
b729e34d | 58 | Summary(pl.UTF-8): Statyczna biblioteka XmHTML |
9523ae52 | 59 | Group: X11/Development/Libraries |
2f51b005 | 60 | Requires: %{name}-devel = %{version}-%{release} |
9523ae52 JB |
61 | |
62 | %description static | |
63 | Static version of XmHTML library. | |
64 | ||
31a5842d | 65 | %description static -l pl.UTF-8 |
9523ae52 JB |
66 | Statyczna wersja biblioteki XmHTML. |
67 | ||
68 | %prep | |
69 | %setup -q | |
70 | %patch0 -p1 | |
71 | %patch1 -p1 | |
f1628199 | 72 | %patch2 -p1 |
9523ae52 | 73 | |
d23da5b2 | 74 | %build |
44b7afad | 75 | %{__libtoolize} |
c97ef8eb | 76 | %{__aclocal} |
6b276664 | 77 | %{__autoconf} |
78 | %{__automake} | |
706df2f9 | 79 | %{!?debug:CPPFLAGS="%{rpmcppflags} -DNDEBUG -Dproduction"} |
b1991295 | 80 | %configure \ |
706df2f9 | 81 | %{?with_xft:--with-xft} |
9523ae52 | 82 | |
9523ae52 JB |
83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
9523ae52 | 87 | |
706df2f9 | 88 | %{__make} install \ |
29cf6ab9 | 89 | DESTDIR=$RPM_BUILD_ROOT |
9523ae52 | 90 | |
706df2f9 | 91 | %{__rm} html/man/man.{map,tmpl} |
9523ae52 | 92 | |
90a67647 | 93 | %clean |
9523ae52 JB |
94 | rm -rf $RPM_BUILD_ROOT |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
706df2f9 | 101 | %doc APPS BUG-REPORTING CHANGES Changelog.txt DEBUGGING FEEDBACK FIXES LICENSE README THANKS TODO docs/{QUOTES,README.*,REASONS,progressive.txt} |
ac3dc02b JB |
102 | %attr(755,root,root) %{_libdir}/libXmHTML.so.*.*.* |
103 | %attr(755,root,root) %ghost %{_libdir}/libXmHTML.so.0 | |
9523ae52 JB |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %doc html/* | |
ac3dc02b JB |
108 | %attr(755,root,root) %{_libdir}/libXmHTML.so |
109 | %{_libdir}/libXmHTML.la | |
9523ae52 JB |
110 | %{_includedir}/XmHTML |
111 | ||
112 | %files static | |
113 | %defattr(644,root,root,755) | |
ac3dc02b | 114 | %{_libdir}/libXmHTML.a |