author | Jon Tibble <meths@btinternet.com> |
Sat, 06 Oct 2012 16:11:50 +0100 | |
branch | s11express-2010-11 |
changeset 22109 | db10202d5f6d |
parent 20090 | 437564f99ab5 |
child 20169 | 269b1e9ef64e |
permissions | -rw-r--r-- |
14861 | 1 |
%include default-depend.inc |
2 |
%include Solaris.inc |
|
3 |
||
4 |
%use gtkdoc = gtk-doc.spec |
|
5 |
||
6 |
Name: SUNWgtk-doc |
|
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
7 |
IPS_package_name: developer/documentation-tool/gtk-doc |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
8 |
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Libraries |
16735 | 9 |
Summary: GTK+ DocBook Documentation Generator |
14861 | 10 |
Version: %{default_pkg_version} |
11 |
SUNW_BaseDir: %{_basedir} |
|
12 |
SUNW_Copyright: %{name}.copyright |
|
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
14 |
||
15650 | 15 |
Requires: SUNWPython26 |
20090 | 16 |
Requires: SUNWgnome-xml-share |
14861 | 17 |
Requires: SUNWgnome-common-devel |
15566 | 18 |
BuildRequires: SUNWPython26-devel |
18119 | 19 |
BuildRequires: SUNWgnome-xml-share |
18099 | 20 |
BuildRequires: SUNWPython26 |
15566 | 21 |
BuildRequires: SUNWgnome-doc-utils |
18099 | 22 |
BuildRequires: SUNWdesktop-cache |
23 |
Requires: SUNWlxml |
|
24 |
Requires: SUNWlxml-python26 |
|
14861 | 25 |
|
17206 | 26 |
%if %build_l10n |
27 |
%package l10n |
|
28 |
Summary: %{summary} - l10n files |
|
29 |
SUNW_BaseDir: %{_basedir} |
|
30 |
%include default-depend.inc |
|
31 |
Requires: %{name} |
|
32 |
%endif |
|
33 |
||
14861 | 34 |
%prep |
35 |
rm -rf %name-%version |
|
36 |
mkdir %name-%version |
|
37 |
||
38 |
%gtkdoc.prep -d %name-%version |
|
39 |
cd %{_builddir}/%name-%version |
|
40 |
||
41 |
%build |
|
42 |
cd %{_builddir} |
|
15470 | 43 |
export PYTHON="/usr/bin/python2.6" |
14861 | 44 |
export CXXFLAGS="%{cxx_optflags}" |
45 |
export ACLOCAL_FLAGS="-I /usr/share/gnome-doc-utils -I./m4" |
|
46 |
%gtkdoc.build -d %name-%version |
|
47 |
||
48 |
%install |
|
49 |
rm -rf $RPM_BUILD_ROOT |
|
50 |
%gtkdoc.install -d %name-%version |
|
51 |
||
52 |
# Normally we build this package before we build scrollkeeper, but |
|
53 |
# remove any scrollkeeper files if user happens to rebuild this |
|
54 |
# package after scrollkeeper is already on the system. |
|
55 |
# |
|
56 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/var |
|
57 |
||
58 |
# Remove /usr/share/info/dir, it's a generated file and shared by multiple |
|
59 |
# packages |
|
60 |
rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
|
61 |
||
17206 | 62 |
%if %build_l10n |
63 |
%else |
|
64 |
# REMOVE l10n FILES |
|
65 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
66 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
67 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf |
|
68 |
%endif |
|
69 |
||
14861 | 70 |
%clean |
71 |
rm -rf $RPM_BUILD_ROOT |
|
72 |
||
73 |
%files |
|
74 |
%defattr (-, root, bin) |
|
75 |
%dir %attr (0755, root, sys) %{_datadir} |
|
16729 | 76 |
%doc -d gtk-doc-%{gtkdoc.version} README MAINTAINERS |
77 |
%doc(bzip2) -d gtk-doc-%{gtkdoc.version} COPYING COPYING-DOCS NEWS ChangeLog |
|
16736 | 78 |
%dir %attr (0755, root, other) %{_datadir}/doc |
14861 | 79 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
80 |
%{_datadir}/aclocal/gtk-doc.m4 |
|
81 |
%dir %attr (0755, root, bin) %{_datadir}/omf |
|
82 |
%{_datadir}/sgml/gtk-doc/gtk-doc.cat |
|
83 |
%{_datadir}/gtk-doc/data/* |
|
84 |
%{_datadir}/pkgconfig/gtk-doc.pc |
|
85 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
86 |
%{_datadir}/gnome/help/gtk-doc-manual/C/fdl-appendix.xml |
|
87 |
%{_bindir}/gtkdoc* |
|
17265 | 88 |
%{_datadir}/omf/gtk-doc-manual/gtk-doc-manual-*.omf |
89 |
%{_datadir}/gnome/help/gtk-doc-manual/*/gtk-doc-manual.xml |
|
90 |
||
14861 | 91 |
|
17206 | 92 |
%if %build_l10n |
93 |
%files l10n |
|
94 |
%defattr (-, root, bin) |
|
95 |
%dir %attr (0755, root, sys) %{_datadir} |
|
96 |
%endif |
|
97 |
||
15454 | 98 |
%changelog |
18099 | 99 |
* Tue Jun 08 2010 - [email protected] |
100 |
- Updated BuildRequires to fit SourceJuicer. |
|
16735 | 101 |
* Tue Oct 13 2009 - [email protected] |
102 |
- Correct Summary line(doo9505). |
|
15470 | 103 |
* Mon Mar 23 2009 - [email protected] |
15566 | 104 |
* Add 'BuildRequires: SUNWgnome-doc-utils'. |
105 |
* Mon Mar 23 2009 - [email protected] |
|
15470 | 106 |
- Change BuildRequires to SUNWPython26-devel. |
15449 | 107 |
* Thu Mar 19 2009 - [email protected] |
108 |
- Add BuildRequires: SUNWPython-devel |
|
15650 | 109 |