]> git.pld-linux.org Git - packages/XmHTML.git/blob - XmHTML.spec
- spec taken from redhat-contrib, partially rewritten, updated to 1.1.7
[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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 BuildRequires:  libjpeg-devel
17 BuildRequires:  libpng-devel
18 BuildRequires:  lesstif-devel
19 BuildRequires:  XFree86-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
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 CFLAGS="$CFLAGS -I`pwd`/include/XmHTML -I`pwd`/include/common"
82 CFLAGS="$CFLAGS -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 (cd lib
93 %{__make} install DESTDIR=$RPM_BUILD_ROOT
94 )
95
96 install include/XmHTML/{Balloon,HTML,HTMLStrings,XCC,XmHTML}.h \
97         include/common/LZWStream.h \
98         $RPM_BUILD_ROOT%{_includedir}/XmHTML
99
100 rm -f html/man/man.{map,tmpl}
101
102 gzip -9nf APPS BUG-REPORTING CHANGES DEBUGGING FEEDBACK FIXES \
103         LICENSE README THANKS TODO \
104         docs/{QUOTES,README.*,REASONS,progressive.txt}
105
106 %clean 
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc *.gz docs/*.gz
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116
117 %files devel
118 %defattr(644,root,root,755)
119 %doc html/*
120 %{_libdir}/lib*.so
121 %attr(755,root,root) %{_libdir}/lib*.la
122 %{_includedir}/XmHTML
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/lib*.a
This page took 0.081909 seconds and 4 git commands to generate.