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