]> git.pld-linux.org Git - packages/XmHTML.git/blame - XmHTML.spec
- move files in %prep, not in %build (breaks short-circuit builds)
[packages/XmHTML.git] / XmHTML.spec
CommitLineData
9523ae52 1Summary: Motif HTML widget
b729e34d 2Summary(pl.UTF-8): Widget do HTML-a oparty o Motif
9523ae52
JB
3Name: XmHTML
4Version: 1.1.7
e4b2d8c8 5Release: 11
9523ae52
JB
6License: LGPL
7Group: X11/Libraries
9523ae52 8Source0: http://www.xs4all.nl/~ripley/XmHTML/dist/%{name}-%{version}.tar.gz
afc04747 9# Source0-md5: 6d079435fb954bb7878f4dd0d3f7b8d8
9523ae52
JB
10Patch0: %{name}-am.patch
11Patch1: %{name}-macro.patch
12URL: http://www.xs4all.nl/~ripley/XmHTML/
9523ae52
JB
13BuildRequires: autoconf
14BuildRequires: automake
9254d4b9
JB
15BuildRequires: libjpeg-devel
16BuildRequires: libpng-devel
79e99467 17BuildRequires: libtool
b86efc75 18BuildRequires: motif-devel >= 1.2
0ba16d73 19BuildRequires: xorg-lib-libXmu-devel
d450b70b 20BuildRequires: xorg-lib-libXpm-devel
087b6c28 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9523ae52 22
9523ae52
JB
23%description
24XmHTML provides a widget capable of displaying HTML 3.2 conforming
25text.
26
31a5842d
JR
27%description -l pl.UTF-8
28XmHTML zawiera widget wyświetlający HTML w wersji 3.2.
9523ae52
JB
29
30%package devel
31Summary: Development package of XmHTML
b729e34d 32Summary(pl.UTF-8): Pliki nagłówkowe XmHTML
9523ae52 33Group: X11/Development/Libraries
2f51b005 34Requires: %{name} = %{version}-%{release}
3e8ea7b2
JB
35Requires: libjpeg-devel
36Requires: libpng-devel
b86efc75 37Requires: motif-devel >= 1.2
9523ae52
JB
38
39%description devel
40Headers needed to compile XmHTML programs.
41
31a5842d
JR
42%description devel -l pl.UTF-8
43Pliki nagłówkowe potrzebne do kompilowania programów korzystających z
5ca38e90 44XmHTML.
9523ae52
JB
45
46%package static
47Summary: Static version of XmHTML library
b729e34d 48Summary(pl.UTF-8): Statyczna biblioteka XmHTML
9523ae52 49Group: X11/Development/Libraries
2f51b005 50Requires: %{name}-devel = %{version}-%{release}
9523ae52
JB
51
52%description static
53Static version of XmHTML library.
54
31a5842d 55%description static -l pl.UTF-8
9523ae52
JB
56Statyczna wersja biblioteki XmHTML.
57
58%prep
59%setup -q
60%patch0 -p1
61%patch1 -p1
9523ae52
JB
62# Argh! automake stuff outdated, imake stuff outdated even more,
63# makefiles not outdated but don't support shared libraries :/
64# Use automake with some patches/workarounds/etc
29cf6ab9 65cd lib
9523ae52
JB
66mv -f common/*.c .
67mv -f Motif/*.c .
29cf6ab9 68cd ..
9523ae52 69
d23da5b2 70%build
44b7afad 71%{__libtoolize}
c97ef8eb 72%{__aclocal}
6b276664 73%{__autoconf}
74%{__automake}
94d0740f 75CFLAGS="%{rpmcflags} \
963dd32b 76 -I`pwd`/include/XmHTML -I`pwd`/include/common \
087b6c28 77 %{!?debug:-DNDEBUG -Dproduction} -DVERSION=1107"
b1991295 78%configure \
79 LIBS="-lm"
9523ae52
JB
80
81cd lib
82%{__make}
83
84%install
85rm -rf $RPM_BUILD_ROOT
86install -d $RPM_BUILD_ROOT%{_includedir}/XmHTML
87
29cf6ab9
PG
88%{__make} install -C lib \
89 DESTDIR=$RPM_BUILD_ROOT
9523ae52
JB
90
91install include/XmHTML/{Balloon,HTML,HTMLStrings,XCC,XmHTML}.h \
92 include/common/LZWStream.h \
93 $RPM_BUILD_ROOT%{_includedir}/XmHTML
94
95rm -f html/man/man.{map,tmpl}
96
90a67647 97%clean
9523ae52
JB
98rm -rf $RPM_BUILD_ROOT
99
100%post -p /sbin/ldconfig
101%postun -p /sbin/ldconfig
102
103%files
104%defattr(644,root,root,755)
c7ad4278 105%doc APPS BUG-REPORTING CHANGES DEBUGGING FEEDBACK FIXES
106%doc README THANKS TODO docs/{QUOTES,README.*,REASONS,progressive.txt}
ac3dc02b
JB
107%attr(755,root,root) %{_libdir}/libXmHTML.so.*.*.*
108%attr(755,root,root) %ghost %{_libdir}/libXmHTML.so.0
9523ae52
JB
109
110%files devel
111%defattr(644,root,root,755)
112%doc html/*
ac3dc02b
JB
113%attr(755,root,root) %{_libdir}/libXmHTML.so
114%{_libdir}/libXmHTML.la
9523ae52
JB
115%{_includedir}/XmHTML
116
117%files static
118%defattr(644,root,root,755)
ac3dc02b 119%{_libdir}/libXmHTML.a
This page took 0.085613 seconds and 4 git commands to generate.