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.
6 %bcond_without xft # Xft support
8 Summary: Motif HTML widget
9 Summary(pl.UTF-8): Widget do HTML-a oparty o Motif
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)
33 XmHTML provides a widget capable of displaying HTML 3.2 conforming
36 %description -l pl.UTF-8
37 XmHTML zawiera widget wyświetlający HTML w wersji 3.2.
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}
50 Headers needed to compile XmHTML programs.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe potrzebne do kompilowania programów korzystających z
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}
63 Static version of XmHTML library.
65 %description static -l pl.UTF-8
66 Statyczna wersja biblioteki XmHTML.
79 %{!?debug:CPPFLAGS="%{rpmcppflags} -DNDEBUG -Dproduction"}
81 %{?with_xft:--with-xft}
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
91 %{__rm} html/man/man.{map,tmpl}
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
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
106 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libXmHTML.so
109 %{_libdir}/libXmHTML.la
110 %{_includedir}/XmHTML
113 %defattr(644,root,root,755)
114 %{_libdir}/libXmHTML.a