Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWlibgoffice
      3 #
      4 # includes module(s): goffice
      5 #
      6 # Copyright 2008 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 %define owner halton
     11 #
     12 
     13 %include Solaris.inc
     14 
     15 %use goffice = goffice.spec
     16 
     17 Name:                    SUNWlibgoffice
     18 Summary:                 goffice - Document centric set of APIs
     19 Version:                 %{goffice.version}
     20 SUNW_Copyright:          %{name}.copyright
     21 SUNW_BaseDir:            %{_basedir}
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23 Source1:                 %{name}-manpages-0.1.tar.gz
     24 
     25 %include default-depend.inc
     26 Requires:       SUNWlibglade
     27 Requires:       SUNWlxml
     28 Requires:       SUNWzlib
     29 Requires:       SUNWlibgsf
     30 Requires:       SUNWlibms
     31 Requires:       SUNWgnome-libs
     32 Requires:       SUNWgnome-python-libs
     33 BuildRequires:  SUNWlibglade-devel
     34 BuildRequires:  SUNWlxml-devel
     35 BuildRequires:  SUNWgnome-libs-devel
     36 BuildRequires:  SUNWgnome-python-libs-devel
     37 %if %option_with_gnu_iconv
     38 Requires:       SUNWgnu-libiconv
     39 Requires:       SUNWgnu-gettext
     40 %else
     41 Requires:       SUNWuiu8
     42 %endif
     43 
     44 %package devel
     45 Summary:                 %{summary} - development files
     46 SUNW_BaseDir:            %{_basedir}
     47 %include default-depend.inc
     48 Requires: %name
     49 BuildRequires: SUNWgnome-libs-devel
     50 
     51 %if %build_l10n
     52 %package l10n
     53 Summary:                 %{summary} - l10n files
     54 SUNW_BaseDir:            %{_basedir}
     55 %include default-depend.inc
     56 Requires:                %{name}
     57 %endif
     58 
     59 %prep
     60 rm -rf %name-%version
     61 mkdir -p %name-%version
     62 %goffice.prep -d %name-%version
     63 cd %{_builddir}/%name-%version
     64 gzcat %SOURCE1 | tar xf -
     65 
     66 %build
     67 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
     68 export CFLAGS="%optflags"
     69 %if %option_with_gnu_iconv
     70 export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
     71 %endif
     72 export RPM_OPT_FLAGS="$CFLAGS"
     73 export LDFLAGS="%_ldflags"
     74 
     75 %goffice.build -d %name-%version
     76 
     77 %install
     78 rm -rf $RPM_BUILD_ROOT
     79 %goffice.install -d %name-%version
     80 
     81 # install man page
     82 rm -rf $RPM_BUILD_ROOT%{_mandir}
     83 cd %{_builddir}/%name-%version/sun-manpages
     84 make install DESTDIR=$RPM_BUILD_ROOT
     85 
     86 %if %build_l10n
     87 %else
     88 # REMOVE l10n FILES
     89 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     90 %endif
     91 
     92 %clean
     93 rm -rf $RPM_BUILD_ROOT
     94 
     95 %files
     96 %doc -d goffice-%{goffice.version} README AUTHORS
     97 %doc(bzip2) -d goffice-%{goffice.version} COPYING ChangeLog po/ChangeLog tools/ChangeLog NEWS
     98 %dir %attr (0755, root, other) %{_datadir}/doc
     99 %defattr(-, root, bin)
    100 %dir %attr (0755, root, bin) %{_libdir}
    101 %{_libdir}/libgoffice*.so*
    102 %{_libdir}/goffice
    103 %dir %attr (0755, root, sys) %{_datadir}
    104 %{_datadir}/goffice
    105 %dir %attr (0755, root, other) %{_datadir}/pixmaps
    106 %{_datadir}/pixmaps/*
    107 %dir %attr(0755, root, bin) %{_mandir}
    108 %dir %attr(0755, root, bin) %{_mandir}/*
    109 %{_mandir}/*/*
    110 
    111 %files devel
    112 %defattr (-, root, bin)
    113 %dir %attr (0755, root, bin) %{_includedir}
    114 %{_includedir}/*
    115 %dir %attr (0755, root, bin) %{_libdir}
    116 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    117 %{_libdir}/pkgconfig/*
    118 %dir %attr (0755, root, sys) %dir %{_datadir}
    119 %{_datadir}/gtk-doc
    120 
    121 %if %build_l10n
    122 %files l10n
    123 %defattr (-, root, bin)
    124 %dir %attr (0755, root, sys) %{_datadir}
    125 %attr (-, root, other) %{_datadir}/locale
    126 %endif
    127 
    128 %changelog
    129 * Wed Nov 05 2008 - halton.huo@sun.com
    130 - Add po/ChangeLog to %files
    131 * Wed Sep 10 2008 - halton.huo@sun.com
    132 - Add %doc to %files for new copyright
    133 * Wed Aug 06 2008 - halton.huo@sun.com
    134 - Use sgml format instead for man pages.
    135 * Tue Aug 05 2008 - halton.huo@sun.com
    136 - Add man page for libgoffice
    137 * Tue Jul 01 2008 - halton.huo@sun.com
    138 - Add copyright
    139 * Mon Jun 30 2008 - halton.huo@sun.com
    140 - Copied from SFEgoffice and rename to SUNWlibgoffice
    141 * Tue Jun 24 2008 - nonsea@users.sourceforge.net
    142 - Split base part to base/goffice.spec
    143 - Bump to 0.6.4
    144 * Mon Apr 14 2008 - trisk@acm.jhu.edu
    145 - Bump to 0.6.2, update dependencies
    146 * Tue Sep 04 2007  - Thomas Wagner
    147 - bump to 0.15.1, add %{version} to Download-Dir (might change again)
    148 - conditional !%build_l10n rmdir $RPM_BUILD_ROOT/%{_datadir}/locale
    149 * Sat May 26 2007  - Thomas Wagner
    150 - bump to 0.15.0
    151 - set compiler to gcc
    152 - builds with Avahi, if present
    153 * Thu Apr 06 2007  - Thomas Wagner
    154 - Initial spec
    155 
    156