9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-doc-utils
|
|
3 |
#
|
|
4 |
# includes module(s): gucharmap
|
|
5 |
#
|
15556
|
6 |
# Copyright 2009 Sun Microsystems, Inc.
|
9397
|
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 laca
|
9397
|
11 |
#
|
|
12 |
%include Solaris.inc
|
18462
|
13 |
%define pythonver 2.4
|
9397
|
14 |
|
|
15 |
%use gnomedocutils = gnome-doc-utils.spec
|
|
16 |
|
|
17 |
Name: SUNWgnome-doc-utils
|
|
18 |
Summary: GNOME documentation utilities
|
|
19 |
Version: %{default_pkg_version}
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
12048
|
21 |
SUNW_Copyright: %{name}.copyright
|
9397
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
%include default-depend.inc
|
15650
|
24 |
Requires: SUNWlxml-python
|
9885
|
25 |
Requires: SUNWgnome-common-devel
|
9397
|
26 |
Requires: SUNWlxml
|
|
27 |
Requires: SUNWlxsl
|
|
28 |
Requires: SUNWPython
|
11197
|
29 |
BuildRequires: SUNWlxml-devel
|
|
30 |
BuildRequires: SUNWlxsl-devel
|
9397
|
31 |
|
9718
|
32 |
%if %build_l10n
|
|
33 |
%package l10n
|
|
34 |
Summary: %{summary} - l10n content
|
|
35 |
SUNW_BaseDir: %{_basedir}
|
|
36 |
%include default-depend.inc
|
|
37 |
Requires: %{name}
|
|
38 |
%endif
|
|
39 |
|
9397
|
40 |
%prep
|
|
41 |
rm -rf %name-%version
|
|
42 |
mkdir %name-%version
|
|
43 |
%gnomedocutils.prep -d %name-%version
|
|
44 |
|
|
45 |
%build
|
|
46 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
47 |
export CFLAGS="%optflags -I%{_includedir}"
|
|
48 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
49 |
export LDFLAGS="%_ldflags"
|
18462
|
50 |
export PYTHON=/usr/bin/python%{pythonver}
|
9397
|
51 |
%gnomedocutils.build -d %name-%version
|
|
52 |
|
|
53 |
%install
|
10366
|
54 |
rm -rf $RPM_BUILD_ROOT
|
9397
|
55 |
%gnomedocutils.install -d %name-%version
|
|
56 |
|
11870
|
57 |
# HACK.
|
12907
|
58 |
if [ -d $RPM_BUILD_ROOT%{_libdir}/locale ]; then
|
|
59 |
mv $RPM_BUILD_ROOT%{_libdir}/locale $RPM_BUILD_ROOT%{_datadir}
|
|
60 |
fi
|
11870
|
61 |
|
9718
|
62 |
%if %build_l10n
|
|
63 |
%else
|
|
64 |
# REMOVE l10n FILES
|
|
65 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
66 |
%endif
|
|
67 |
|
9397
|
68 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
69 |
|
|
70 |
%clean
|
|
71 |
rm -rf $RPM_BUILD_ROOT
|
|
72 |
|
|
73 |
%files
|
|
74 |
%defattr (-, root, bin)
|
|
75 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
76 |
%{_bindir}/gnome-doc-prepare
|
|
77 |
%{_bindir}/gnome-doc-tool
|
|
78 |
%{_bindir}/xml2po
|
|
79 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
80 |
%{_datadir}/gnome-doc-utils
|
|
81 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
82 |
%{_datadir}/gnome/help
|
|
83 |
%{_datadir}/omf
|
|
84 |
%{_datadir}/xml
|
|
85 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
86 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
87 |
%{_mandir}/*/*
|
|
88 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
89 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
90 |
%{_libdir}/pkgconfig/*
|
|
91 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
92 |
%{_datadir}/aclocal/*
|
15944
|
93 |
%{_datadir}/pkgconfig/gnome-doc-utils.pc
|
16028
|
94 |
%{_libdir}/python2.4/site-packages/xml2po/*.py
|
16401
|
95 |
%{_libdir}/python2.4/site-packages/xml2po/modes/*.py
|
9397
|
96 |
|
9718
|
97 |
%if %build_l10n
|
|
98 |
%files l10n
|
|
99 |
%defattr (-, root, bin)
|
|
100 |
%dir %attr (0755, root, sys) %dir %{_datadir}
|
|
101 |
%attr (-, root, other) %{_datadir}/locale
|
|
102 |
%endif
|
|
103 |
|
9397
|
104 |
%changelog
|
18462
|
105 |
* Sat Dec 05 2009 - [email protected]
|
|
106 |
- Set PYTHON(2.4)
|
16028
|
107 |
* Wed Jul 15 2009 - [email protected]
|
|
108 |
- Minor pkg'ing fix.
|
15944
|
109 |
* Thu Jun 18 2009 - [email protected]
|
|
110 |
- Minor pkg'ing fix.
|
15556
|
111 |
* Fri Apr 3 2009 - [email protected]
|
|
112 |
- stop using postrun
|
12907
|
113 |
* Wed Jul 23 2008 - [email protected]
|
|
114 |
- Modify hack because %{_libdir}/locale is installed on svn_91 but not snv_93.
|
11870
|
115 |
* Sun Mar 16 2008 - [email protected]
|
|
116 |
- Add hack back in to get build going again. Will split 'glib' out of
|
|
117 |
SUNWgnome-base-specs.spec at a later date.
|
11867
|
118 |
* Fri Mar 14 2008 - [email protected]
|
|
119 |
- Remove hack - call aclocal/automake/autoconf in the base spec file.
|
11840
|
120 |
* Tue Mar 11 2008 - [email protected]
|
|
121 |
- Add hack to move locale files from %{_libdir} to %{_datadir}.
|
11197
|
122 |
* Thu Nov 15 2007 - [email protected]
|
|
123 |
- Add BuildRequires SUNWlxml-devel and SUNWlxsl-devel.
|
10640
|
124 |
* Thu Oct 11 2007 - [email protected]
|
|
125 |
- Remove duplicate %{_datadir} line and second %defattr.
|
10637
|
126 |
* Wed Oct 10 2007 - [email protected]
|
|
127 |
- Move -devel package into base package as the module is only used during
|
|
128 |
building.
|
|
129 |
* Thu Aug 23 2007 - [email protected]
|
10366
|
130 |
- don't delete lib/locale in %install -- this is now fixed in the base spec
|
|
131 |
- delete $RPM_BUILD_ROOT in %install
|
9885
|
132 |
* Mon May 14 2007 - [email protected]
|
|
133 |
- Add SUNWgnome-common-devel dependency for pkg-config.
|
9879
|
134 |
* Fri May 11 2007 - [email protected]
|
|
135 |
- Remove unnecessary SUNWgnome-libs dependency. Builds okay without it.
|
9718
|
136 |
* Wed Apr 11 2007 - [email protected]
|
|
137 |
- Add l10n package after bumping tarball.
|
9397
|
138 |
* Tue Feb 27 2007 - [email protected]
|
|
139 |
- Add %{_bindir}/gnome-doc-tools from new tarball.
|
|
140 |
* Fri Sep 08 2006 - [email protected]
|
|
141 |
- Remove "rm" of _mandir during %install, deliver xml2po.1 community man page
|
|
142 |
* Sat Aug 12 2006 - [email protected]
|
|
143 |
- delete some unnecessary env variables
|
|
144 |
* Fri Aug 11 2006 - [email protected]
|
|
145 |
- Remove %{_libdir}/locale files because I don't want to create a l10n pkg.
|
|
146 |
* Fri Jul 14 2006 - [email protected]
|
|
147 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
148 |
part of 6448317
|
|
149 |
* Thu Jun 29 2006 - [email protected]
|
|
150 |
- update postrun scripts
|
|
151 |
* Sun Jun 11 2006 - [email protected]
|
|
152 |
- change group from other to bin/sys
|
|
153 |
* Thu May 04 2006 - [email protected]
|
|
154 |
- merge -share pkg(s) into the base pkg(s)
|
|
155 |
* Tue Nov 29 2005 - [email protected]
|
|
156 |
- remove javahelp stuff
|
|
157 |
* Wed Oct 19 2005 - [email protected]
|
|
158 |
- Add SUNWPython dependency as xml2po uses python.
|
|
159 |
* Wed Jul 06 2005 - [email protected]
|
|
160 |
- remove mandir from %files, it's not there
|
|
161 |
- remove l10n subpkg, there's no l10n content
|
|
162 |
* Mon Jul 04 2005 - [email protected]
|
|
163 |
- Initial spec file needed by SUNWgnome-help-viewer (yelp)
|
15650
|
164 |
|