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