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