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