Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-doc-utils
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: laca
      9 #
     10 Name:			gnome-doc-utils
     11 License:		GPL
     12 Group:			System/Libraries
     13 Version:		0.8.0
     14 Release:		1
     15 Distribution:		Java Desktop System
     16 Vendor:			Sun Microsystems, Inc.
     17 Summary:		Documentation utilities for GNOME
     18 Source:			http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.8/%{name}-%{version}.tar.bz2
     19 URL:			http://www.gnome.org
     20 BuildRoot:		%{_tmppath}/%{name}-%{version}-build
     21 Docdir:			%{_defaultdocdir}/%{name}
     22 Autoreqprov:		on
     23 
     24 %define libxml2_version 2.6.12
     25 %define libxslt_version 1.1.8
     26 
     27 Requires:	libxml2 >= %{libxml2_version}
     28 Requires:	libxslt >= %{libxslt_version}
     29 
     30 BuildRequires:	libxml2-devel >= %{libxml2_version}
     31 BuildRequires:	libxslt-devel >= %{libxslt_version}
     32 
     33 %description
     34 This package contains a selection of utilities for managing documents 
     35 in the GNOME desktop.
     36 
     37 The xml2po program is used to convert between PO files and XML documents.
     38 Within gnome-doc-utils, it is used primarily to translate documentation
     39 written in the DocBook format. 
     40 
     41 The gnome-doc-prepare script is used to initialize your source tree for 
     42 using the gnome-doc-utils build utilities.  It can also be used to 
     43 create a template document and the necessary supporting files and folders.
     44 
     45 %prep
     46 %setup -q
     47 
     48 %build
     49 %ifos linux
     50 if [ -x /usr/bin/getconf ]; then
     51   CPUS=`getconf _NPROCESSORS_ONLN`
     52 fi
     53 %else
     54   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     55 %endif
     56 if test "x$CPUS" = "x" -o $CPUS = 0; then
     57   CPUS=1
     58 fi
     59 
     60 CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS \
     61         --prefix=%{_prefix} \
     62         --sysconfdir=%{_sysconfdir} \
     63 	--localstatedir=%{_localstatedir}/lib \
     64 	--disable-scrollkeeper
     65 
     66 make -j $CPUS
     67 
     68 %install
     69 make prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
     70 
     71 #man pages
     72 mv -f $RPM_BUILD_ROOT/%{_prefix}/man $RPM_BUILD_ROOT/%{_datadir}/man
     73 
     74 %clean
     75 rm -rf $RPM_BUILD_ROOT
     76 
     77 %files
     78 %defattr (-, root, root)
     79 %{_bindir}/gnome-doc-prepare
     80 %{_bindir}/xml2po
     81 %{_libdir}/pkgconfig/*
     82 %{_mandir}/man1/*
     83 %{_datadir}/aclocal/*
     84 %{_datadir}/gnome-doc-utils/*
     85 %{_datadir}/gnome/help/*
     86 %{_datadir}/omf/*
     87 %{_datadir}/xml/*
     88 %{_datadir}/xml2po/*
     89 
     90 %changelog
     91 * Tue Sep 05 2006 - damien.carbery@sun.com
     92 - Bump to 0.8.0.
     93 * Tue Aug 08 2006 - brian.cameron@sun.com
     94 - Bump to 0.7.2.
     95 * Wed Jul 21 2006 - dermot.mccluskey@sun.com
     96 - Bump to 0.7.1.
     97 * Mon Jul 10 2006 - brian.cameron@sun.com
     98 - Bump to 0.6.1.
     99 * Sun Mar 12 2006 - damien.carbery@sun.com
    100 - Bump to 0.6.0.
    101 * Mon Feb 27 2006 - damien.carbery@sun.com
    102 - Bump to 0.5.7.
    103 * Sun Feb 19 2006 - damien.carbery@sun.com
    104 - Bump to 0.5.6.
    105 * Mon Feb 13 2006 - damien.carbery@sun.com
    106 - Bump to 0.5.5.
    107 * Tue Jan 31 2006 - damien.carbery@sun.com
    108 - Bump to 0.5.4.
    109 * Thu Dec 22 2005 - damien.carbery@sun.com
    110 - Bump to 0.5.2.
    111 * Tue Nov 29 2005 - damien.carbery@sun.com
    112 - Bump to 0.4.4.
    113 * Wed Oct 26 2005 - damien.carbery@sun.com
    114 - Bump to 0.4.3.
    115 * Thu Sep 29 2005 - brian.cameron@sunc.om
    116 - Bump to 0.4.2.
    117 * Thu Sep 08 2005 - brian.cameron@sun.com
    118 - Bump to 0.4.1 since this contains some fixes that cause things
    119   to break for Solaris in 0.4.0. 
    120 * Mon Aug 15 2005 - damien.carbery@sun.com
    121 - Bump to 0.3.2.
    122 * Thu Jun 09 2005 - matt.keenan@sun.com
    123 - Update so that builds
    124 * Wed May 18 2005 - glynn.foster@sun.com
    125 - Initial spec of gnome-doc-utils
    126