18110
|
1 |
#
|
|
2 |
# spec file for package SUNWlynx
|
|
3 |
#
|
|
4 |
# Copyright 2010 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
%define owner dermot
|
|
9 |
#
|
|
10 |
|
|
11 |
%include Solaris.inc
|
|
12 |
|
|
13 |
%define OSR 9837:2.8.6
|
|
14 |
|
|
15 |
Name: SUNWlynx
|
|
16 |
IPS_package_name: web/browser/lynx
|
|
17 |
Meta(info.classification): %{classification_prefix}:Applications/Internet
|
|
18 |
Summary: Text-mode web browser
|
|
19 |
Vendor: lynx.browser.org
|
|
20 |
License: LGPL v2
|
|
21 |
Version: 2.8.7
|
|
22 |
URL: http://lynx.browser.org/
|
|
23 |
Source: http://lynx.isc.org/lynx%{version}/lynx%{version}.tar.bz2
|
|
24 |
# date:2009-02-20 owner:mattman type:feature
|
|
25 |
Patch1: lynx-01-manpage.diff
|
|
26 |
# date:2010-01-27 owner:yippi type:bug
|
|
27 |
Patch2: lynx-02-locale.diff
|
|
28 |
SUNW_BaseDir: %{_basedir}
|
|
29 |
SUNW_Copyright: %{name}.copyright
|
|
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
31 |
%include default-depend.inc
|
|
32 |
Requires: %{name}-root
|
|
33 |
Requires: SUNWopenssl-libraries
|
|
34 |
Requires: SUNWncurses
|
|
35 |
|
|
36 |
%package root
|
|
37 |
Summary: %{summary} - / filesystem
|
|
38 |
SUNW_BaseDir: /
|
|
39 |
%include default-depend.inc
|
|
40 |
|
|
41 |
%if %build_l10n
|
|
42 |
%package l10n
|
|
43 |
Summary: %{summary} - l10n files
|
|
44 |
SUNW_BaseDir: %{_basedir}
|
|
45 |
%include default-depend.inc
|
|
46 |
Requires: %{name}
|
|
47 |
%endif
|
|
48 |
|
|
49 |
%prep
|
|
50 |
%setup -q -n lynx2-8-7
|
|
51 |
%patch1 -p1
|
|
52 |
%patch2 -p1
|
|
53 |
|
|
54 |
%build
|
|
55 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
57 |
CPUS=1
|
|
58 |
fi
|
|
59 |
|
|
60 |
export CFLAGS="-I/usr/include/ncurses -D_XPG6 %optflags"
|
|
61 |
export CPPFLAGS="-I/usr/include/ncurses -D_XPG6 %optflags"
|
|
62 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/gnu/lib -R/usr/gnu/lib"
|
|
63 |
|
|
64 |
./configure --prefix=/usr \
|
|
65 |
--enable-nls \
|
|
66 |
--enable-japanese-utf8 \
|
|
67 |
--enable-widec \
|
|
68 |
--sysconfdir=%{_sysconfdir}/lynx \
|
|
69 |
--mandir=%{_mandir} \
|
|
70 |
--with-ssl \
|
|
71 |
--with-screen=ncurses
|
|
72 |
|
|
73 |
make -j$CPUS
|
|
74 |
|
|
75 |
%install
|
|
76 |
rm -rf $RPM_BUILD_ROOT
|
|
77 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
78 |
|
|
79 |
%if %build_l10n
|
|
80 |
%else
|
|
81 |
# REMOVE l10n FILES
|
|
82 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
83 |
%endif
|
|
84 |
|
|
85 |
%clean
|
|
86 |
rm -rf $RPM_BUILD_ROOT
|
|
87 |
|
|
88 |
%files
|
|
89 |
%defattr (-, root, bin)
|
|
90 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
91 |
%{_bindir}/*
|
|
92 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
93 |
%dir %attr (0755, root, bin) %{_mandir}
|
|
94 |
%dir %attr (0755, root, bin) %{_mandir}/man1
|
|
95 |
%{_mandir}/man1/*
|
|
96 |
%doc AUTHORS
|
|
97 |
%doc COPYHEADER
|
|
98 |
%doc COPYING
|
|
99 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
100 |
|
|
101 |
%files root
|
|
102 |
%defattr (-, root, sys)
|
|
103 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
104 |
%attr (0755, root, sys) %dir %{_sysconfdir}/lynx
|
|
105 |
%{_sysconfdir}/lynx/*
|
|
106 |
|
|
107 |
%if %build_l10n
|
|
108 |
%files l10n
|
|
109 |
%defattr (-, root, bin)
|
|
110 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
111 |
%attr (-, root, other) %{_datadir}/locale
|
|
112 |
%endif
|
|
113 |
|
|
114 |
%changelog
|
|
115 |
* Wed Jan 27 2010 - [email protected]
|
|
116 |
- Bump to 2.8.7.
|
|
117 |
* Mon Dec 22 2008 - [email protected]
|
|
118 |
- Add patch g11n-iconv.diff to use Solaris iconv.
|
|
119 |
- Add patch g11n-use-local-char.diff. The default charset is the current encoding.
|
|
120 |
- Add patch g11n-utf8-bookmark.diff so that input method works on UTF-8.
|
|
121 |
- Add configure option --enable-japanese-utf8 --enable-widec
|
|
122 |
- Add l10n package.
|
|
123 |
* Tue Dec 16 2008 - [email protected]
|
|
124 |
- ssl is now in /usr, not /usr/sfw
|
|
125 |
* Mon Nov 24 2008 - [email protected]
|
|
126 |
- fix default permissions for -root
|
|
127 |
* Fri Nov 21 2008 - [email protected]
|
|
128 |
- use ncurses and add openssl support
|
|
129 |
* Thu nov 20 2008 - [email protected]
|
|
130 |
- initial version
|