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