14861
|
1 |
%include default-depend.inc
|
|
2 |
%include Solaris.inc
|
|
3 |
|
|
4 |
%use gtkdoc = gtk-doc.spec
|
|
5 |
|
|
6 |
Name: SUNWgtk-doc
|
16735
|
7 |
Summary: GTK+ DocBook Documentation Generator
|
14861
|
8 |
Version: %{default_pkg_version}
|
|
9 |
SUNW_BaseDir: %{_basedir}
|
|
10 |
SUNW_Copyright: %{name}.copyright
|
|
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
12 |
|
15650
|
13 |
Requires: SUNWPython26
|
14861
|
14 |
Requires: SUNWgnome-xml-root
|
|
15 |
Requires: SUNWgnome-common-devel
|
15566
|
16 |
BuildRequires: SUNWPython26-devel
|
|
17 |
BuildRequires: SUNWgnome-doc-utils
|
14861
|
18 |
|
17206
|
19 |
%if %build_l10n
|
|
20 |
%package l10n
|
|
21 |
Summary: %{summary} - l10n files
|
|
22 |
SUNW_BaseDir: %{_basedir}
|
|
23 |
%include default-depend.inc
|
|
24 |
Requires: %{name}
|
|
25 |
%endif
|
|
26 |
|
14861
|
27 |
%prep
|
|
28 |
rm -rf %name-%version
|
|
29 |
mkdir %name-%version
|
|
30 |
|
|
31 |
%gtkdoc.prep -d %name-%version
|
|
32 |
cd %{_builddir}/%name-%version
|
|
33 |
|
|
34 |
%build
|
|
35 |
cd %{_builddir}
|
15470
|
36 |
export PYTHON="/usr/bin/python2.6"
|
14861
|
37 |
export CXXFLAGS="%{cxx_optflags}"
|
|
38 |
export ACLOCAL_FLAGS="-I /usr/share/gnome-doc-utils -I./m4"
|
|
39 |
%gtkdoc.build -d %name-%version
|
|
40 |
|
|
41 |
%install
|
|
42 |
rm -rf $RPM_BUILD_ROOT
|
|
43 |
%gtkdoc.install -d %name-%version
|
|
44 |
|
|
45 |
# Normally we build this package before we build scrollkeeper, but
|
|
46 |
# remove any scrollkeeper files if user happens to rebuild this
|
|
47 |
# package after scrollkeeper is already on the system.
|
|
48 |
#
|
|
49 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/var
|
|
50 |
|
|
51 |
# Remove /usr/share/info/dir, it's a generated file and shared by multiple
|
|
52 |
# packages
|
|
53 |
rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
|
|
54 |
|
17206
|
55 |
%if %build_l10n
|
|
56 |
%else
|
|
57 |
# REMOVE l10n FILES
|
|
58 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
59 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
|
|
60 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf
|
|
61 |
%endif
|
|
62 |
|
14861
|
63 |
%clean
|
|
64 |
rm -rf $RPM_BUILD_ROOT
|
|
65 |
|
|
66 |
%files
|
|
67 |
%defattr (-, root, bin)
|
|
68 |
%dir %attr (0755, root, sys) %{_datadir}
|
16729
|
69 |
%doc -d gtk-doc-%{gtkdoc.version} README MAINTAINERS
|
|
70 |
%doc(bzip2) -d gtk-doc-%{gtkdoc.version} COPYING COPYING-DOCS NEWS ChangeLog
|
16736
|
71 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
14861
|
72 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
73 |
%{_datadir}/aclocal/gtk-doc.m4
|
|
74 |
%dir %attr (0755, root, bin) %{_datadir}/omf
|
|
75 |
%{_datadir}/sgml/gtk-doc/gtk-doc.cat
|
|
76 |
%{_datadir}/gtk-doc/data/*
|
|
77 |
%{_datadir}/pkgconfig/gtk-doc.pc
|
|
78 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
79 |
%{_datadir}/gnome/help/gtk-doc-manual/C/fdl-appendix.xml
|
|
80 |
%{_bindir}/gtkdoc*
|
17265
|
81 |
%{_datadir}/omf/gtk-doc-manual/gtk-doc-manual-*.omf
|
|
82 |
%{_datadir}/gnome/help/gtk-doc-manual/*/gtk-doc-manual.xml
|
|
83 |
|
14861
|
84 |
|
17206
|
85 |
%if %build_l10n
|
|
86 |
%files l10n
|
|
87 |
%defattr (-, root, bin)
|
|
88 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
89 |
%endif
|
|
90 |
|
15454
|
91 |
%changelog
|
16735
|
92 |
* Tue Oct 13 2009 - [email protected]
|
|
93 |
- Correct Summary line(doo9505).
|
15470
|
94 |
* Mon Mar 23 2009 - [email protected]
|
15566
|
95 |
* Add 'BuildRequires: SUNWgnome-doc-utils'.
|
|
96 |
* Mon Mar 23 2009 - [email protected]
|
15470
|
97 |
- Change BuildRequires to SUNWPython26-devel.
|
15449
|
98 |
* Thu Mar 19 2009 - [email protected]
|
|
99 |
- Add BuildRequires: SUNWPython-devel
|
15650
|
100 |
|