author | hawklu |
Fri, 26 Feb 2010 03:26:31 +0000 | |
branch | gnome-2-28 |
changeset 18643 | 8c2f88f3d983 |
parent 16434 | f21f22550fe9 |
child 17070 | 1e3fda68c84c |
permissions | -rw-r--r-- |
12590 | 1 |
# |
2 |
# spec file for packages SUNWw3m |
|
3 |
# |
|
4 |
# includes module(s): w3m |
|
5 |
# |
|
6 |
# Copyright 2008 Sun Microsystems, Inc. |
|
7 |
# This file and all modifications and additions to the pristine |
|
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner yuntong.jin |
12590 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use w3m = w3m.spec |
|
15 |
||
16 |
Name: SUNWw3m |
|
13422 | 17 |
Summary: A text-based web browser |
12590 | 18 |
Version: %{default_pkg_version} |
14493 | 19 |
Source: %{name}-manpages-0.1.tar.gz |
12590 | 20 |
SUNW_BaseDir: %{_basedir} |
21 |
SUNW_Copyright: %{name}.copyright |
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
23 |
||
24 |
%include default-depend.inc |
|
15650 | 25 |
Requires: SUNWgtk2 |
13050 | 26 |
Requires: SUNWlibms |
12590 | 27 |
Requires: SUNWlibgc |
28 |
Requires: SUNWperl584core |
|
29 |
Requires: SUNWfirefox |
|
30 |
Requires: SUNWopenssl-libraries |
|
15650 | 31 |
BuildRequires: SUNWgtk2-devel |
13050 | 32 |
BuildRequires: SUNWlibm |
12590 | 33 |
BuildRequires: SUNWlibgc-devel |
34 |
BuildRequires: SUNWopenssl-include |
|
35 |
||
12591 | 36 |
%if %build_l10n |
37 |
%package l10n |
|
38 |
Summary: %{summary} - l10n files |
|
39 |
SUNW_BaseDir: %{_basedir} |
|
40 |
%include default-depend.inc |
|
41 |
Requires: %{name} |
|
42 |
%endif |
|
43 |
||
12590 | 44 |
%prep |
45 |
rm -rf %name-%version |
|
46 |
mkdir %name-%version |
|
47 |
%w3m.prep -d %name-%version |
|
14493 | 48 |
cd %{_builddir}/%name-%version |
49 |
gzcat %SOURCE0 | tar xf - |
|
12590 | 50 |
|
51 |
%build |
|
15176 | 52 |
export CFLAGS="%optflags `pkg-config --cflags bdw-gc`" |
53 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib `pkg-config --libs bdw-gc` " |
|
12590 | 54 |
export RPM_OPT_FLAGS="$CFLAGS" |
55 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
56 |
||
57 |
%w3m.build -d %name-%version |
|
58 |
||
59 |
%install |
|
60 |
rm -rf $RPM_BUILD_ROOT |
|
61 |
||
62 |
%w3m.install -d %name-%version |
|
63 |
||
64 |
#remove man page and help file for ja |
|
65 |
rm -rf $RPM_BUILD_ROOT%{_mandir}/ja |
|
66 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl |
|
67 |
||
12591 | 68 |
%if %build_l10n |
69 |
%else |
|
70 |
# REMOVE l10n FILES |
|
71 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
72 |
%endif |
|
73 |
||
14493 | 74 |
# install man page |
75 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
76 |
cd %{_builddir}/%name-%version/sun-manpages |
|
77 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
78 |
||
12590 | 79 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
80 |
||
81 |
%clean |
|
82 |
rm -rf $RPM_BUILD_ROOT |
|
83 |
||
84 |
%files |
|
85 |
%defattr (-, root, bin) |
|
86 |
%dir %attr (0755, root, bin) %{_bindir} |
|
87 |
%{_bindir}/* |
|
88 |
%dir %attr (0755, root, bin) %{_libdir} |
|
89 |
%{_libdir}/w3m |
|
90 |
%dir %attr (0755, root, sys) %{_datadir} |
|
91 |
%{_datadir}/w3m/* |
|
92 |
%dir %attr(0755, root, bin) %{_mandir} |
|
93 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
94 |
%{_mandir}/man1/* |
|
13670 | 95 |
%doc -d w3m-%{w3m.version} ChangeLog NEWS README |
96 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
12590 | 97 |
|
12591 | 98 |
%if %build_l10n |
99 |
%files l10n |
|
100 |
%defattr (-, root, bin) |
|
101 |
%dir %attr (0755, root, sys) %{_datadir} |
|
102 |
%attr (-, root, other) %{_datadir}/locale |
|
103 |
%endif |
|
104 |
||
12590 | 105 |
%changelog |
15523
f500d935ed80
change the owner of SUNWw3n.spec and SUNWgnome-hex-editor.spec to yuntong.jin
jouby
parents:
15297
diff
changeset
|
106 |
* Mon Mar 30 2009 - [email protected] |
f500d935ed80
change the owner of SUNWw3n.spec and SUNWgnome-hex-editor.spec to yuntong.jin
jouby
parents:
15297
diff
changeset
|
107 |
- change the owner to yuntong.jin |
13670 | 108 |
* Fri Sep 19 2008 - [email protected] |
109 |
- Add %doc for copyright files |
|
13050 | 110 |
* Thu Aug 06 2008 - [email protected] |
111 |
- fix a libm dependency issue #6733315 |
|
12590 | 112 |
* Thu Jun 05 2008 - [email protected] |
12591 | 113 |
- renamed to SUNWw3m.spec |
114 |
* Wed Jun 04 2008 - [email protected] |
|
115 |
- Add l10n packages with w3m fix. |
|
12590 | 116 |
* Mon May 26 2008 - [email protected] |
117 |
- Add openssl dependency |
|
118 |
* Tue Apr 15 2008 - [email protected] |
|
119 |
- Remove l10n package as the libgsf files were the only l10n files. |
|
120 |
* Mon Apr 14 2008 - [email protected] |
|
121 |
- Move libgsf part into SUNWlibgsf. Remove -root and devel pkgs too. |
|
122 |
* Thu Mar 27 2008 - [email protected] |
|
123 |
- Add copyright file |
|
124 |
* Wed Feb 27 2008 - [email protected] |
|
125 |
- Remove man pages for ja |
|
126 |
- Add Requires:{name} for -devel pkg |
|
127 |
* Tue Feb 26 2008 - [email protected] |
|
128 |
- Remove Requires: SUNWpostrun, Add Requires: SUNWdesktop-search-libs-root |
|
129 |
- Move %{_mandir}/ja into -l1n pkg |
|
130 |
- Use gconf-install.script for %post root |
|
131 |
* Wed Feb 20 2008 - [email protected] |
|
132 |
- Remove unused SOURCE0 |
|
133 |
* Tue Jan 29 2008 - [email protected] |
|
134 |
- Add Build/Requires SUNWgnome-python-libs/-devel. |
|
135 |
* Thu Jan 24 2008 - [email protected] |
|
136 |
- Move libgc out. |
|
137 |
* Wed Jan 02 2008 - [email protected] |
|
138 |
- Initial spec-file created |
|
15650 | 139 |