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