]> git.pld-linux.org Git - packages/XmHTML.git/blame - XmHTML.spec
- rebuild without libjpeg.la
[packages/XmHTML.git] / XmHTML.spec
CommitLineData
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 8Summary: Motif HTML widget
b729e34d 9Summary(pl.UTF-8): Widget do HTML-a oparty o Motif
9523ae52 10Name: XmHTML
706df2f9 11Version: 1.1.10
a47be62f 12Release: 2
74732fb3 13License: LGPL v2+
9523ae52 14Group: X11/Libraries
706df2f9
JB
15Source0: http://downloads.sourceforge.net/xmhtml/%{name}-%{version}.tgz
16# Source0-md5: fd339d59d020da2ccf6e92bf65b810e2
9523ae52 17Patch0: %{name}-am.patch
706df2f9
JB
18Patch1: %{name}-build.patch
19Patch2: %{name}-xft.patch
20URL: https://sourceforge.net/projects/xmhtml/
9523ae52
JB
21BuildRequires: autoconf
22BuildRequires: automake
9254d4b9
JB
23BuildRequires: libjpeg-devel
24BuildRequires: libpng-devel
79e99467 25BuildRequires: libtool
b86efc75 26BuildRequires: motif-devel >= 1.2
706df2f9 27%{?with_xft:BuildRequires: xorg-lib-libXft-devel}
0ba16d73 28BuildRequires: xorg-lib-libXmu-devel
d450b70b 29BuildRequires: xorg-lib-libXpm-devel
087b6c28 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9523ae52 31
9523ae52
JB
32%description
33XmHTML provides a widget capable of displaying HTML 3.2 conforming
34text.
35
31a5842d
JR
36%description -l pl.UTF-8
37XmHTML zawiera widget wyświetlający HTML w wersji 3.2.
9523ae52
JB
38
39%package devel
40Summary: Development package of XmHTML
b729e34d 41Summary(pl.UTF-8): Pliki nagłówkowe XmHTML
9523ae52 42Group: X11/Development/Libraries
2f51b005 43Requires: %{name} = %{version}-%{release}
3e8ea7b2
JB
44Requires: libjpeg-devel
45Requires: libpng-devel
b86efc75 46Requires: motif-devel >= 1.2
706df2f9 47%{?with_xft:Requires: xorg-lib-libXft-devel}
9523ae52
JB
48
49%description devel
50Headers needed to compile XmHTML programs.
51
31a5842d
JR
52%description devel -l pl.UTF-8
53Pliki nagłówkowe potrzebne do kompilowania programów korzystających z
5ca38e90 54XmHTML.
9523ae52
JB
55
56%package static
57Summary: Static version of XmHTML library
b729e34d 58Summary(pl.UTF-8): Statyczna biblioteka XmHTML
9523ae52 59Group: X11/Development/Libraries
2f51b005 60Requires: %{name}-devel = %{version}-%{release}
9523ae52
JB
61
62%description static
63Static version of XmHTML library.
64
31a5842d 65%description static -l pl.UTF-8
9523ae52
JB
66Statyczna 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
86rm -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
94rm -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
This page took 0.045136 seconds and 4 git commands to generate.