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