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