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