]> git.pld-linux.org Git - packages/XmHTML.git/blame_incremental - XmHTML.spec
- tabs in preamble
[packages/XmHTML.git] / XmHTML.spec
... / ...
CommitLineData
1Summary: Motif HTML widget
2Summary(pl.UTF-8): Widget do HTML-a oparty o Motif
3Name: XmHTML
4Version: 1.1.7
5Release: 4
6License: LGPL
7Group: X11/Libraries
8Source0: http://www.xs4all.nl/~ripley/XmHTML/dist/%{name}-%{version}.tar.gz
9# Source0-md5: 6d079435fb954bb7878f4dd0d3f7b8d8
10Patch0: %{name}-am.patch
11Patch1: %{name}-macro.patch
12URL: http://www.xs4all.nl/~ripley/XmHTML/
13BuildRequires: autoconf
14BuildRequires: automake
15BuildRequires: libjpeg-devel
16BuildRequires: libpng-devel
17BuildRequires: libtool
18BuildRequires: motif-devel >= 1.2
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22XmHTML provides a widget capable of displaying HTML 3.2 conforming
23text.
24
25%description -l pl.UTF-8
26XmHTML zawiera widget wyświetlający HTML w wersji 3.2.
27
28%package devel
29Summary: Development package of XmHTML
30Summary(pl.UTF-8): Pliki nagłówkowe XmHTML
31Group: X11/Development/Libraries
32Requires: %{name} = %{version}-%{release}
33Requires: libjpeg-devel
34Requires: libpng-devel
35Requires: motif-devel >= 1.2
36
37%description devel
38Headers needed to compile XmHTML programs.
39
40%description devel -l pl.UTF-8
41Pliki nagłówkowe potrzebne do kompilowania programów korzystających z
42XmHTML.
43
44%package static
45Summary: Static version of XmHTML library
46Summary(pl.UTF-8): Statyczna biblioteka XmHTML
47Group: X11/Development/Libraries
48Requires: %{name}-devel = %{version}-%{release}
49
50%description static
51Static version of XmHTML library.
52
53%description static -l pl.UTF-8
54Statyczna 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
65cd lib
66mv -f common/*.c .
67mv -f Motif/*.c .
68cd ..
69
70%{__libtoolize}
71%{__aclocal}
72%{__autoconf}
73%{__automake}
74CFLAGS="%{rpmcflags} \
75 -I`pwd`/include/XmHTML -I`pwd`/include/common \
76 %{!?debug:-DNDEBUG -Dproduction} -DVERSION=1107"
77%configure
78
79cd lib
80%{__make}
81
82%install
83rm -rf $RPM_BUILD_ROOT
84install -d $RPM_BUILD_ROOT%{_includedir}/XmHTML
85
86%{__make} install -C lib \
87 DESTDIR=$RPM_BUILD_ROOT
88
89install include/XmHTML/{Balloon,HTML,HTMLStrings,XCC,XmHTML}.h \
90 include/common/LZWStream.h \
91 $RPM_BUILD_ROOT%{_includedir}/XmHTML
92
93rm -f html/man/man.{map,tmpl}
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
100
101%files
102%defattr(644,root,root,755)
103%doc APPS BUG-REPORTING CHANGES DEBUGGING FEEDBACK FIXES
104%doc README THANKS TODO docs/{QUOTES,README.*,REASONS,progressive.txt}
105%attr(755,root,root) %{_libdir}/lib*.so.*.*
106
107%files devel
108%defattr(644,root,root,755)
109%doc html/*
110%attr(755,root,root) %{_libdir}/lib*.so
111%{_libdir}/lib*.la
112%{_includedir}/XmHTML
113
114%files static
115%defattr(644,root,root,755)
116%{_libdir}/lib*.a
This page took 0.099278 seconds and 4 git commands to generate.