Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for package SUNWdia
      3 #
      4 # includes module(s): dia
      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 # Owner: mattman
     11 #
     12 %include Solaris.inc
     13 %use dia = dia.spec
     14 
     15 Name:             SUNWdia
     16 Summary:          Dia Diagram Editor
     17 Source:           %{name}-manpages-0.1.tar.gz
     18 Version:          %{dia.version}
     19 SUNW_BaseDir:     %{_basedir}
     20 SUNW_Copyright:   %{name}.copyright
     21 BuildRoot:        %{_tmppath}/%{name}-%{version}-build
     22 
     23 %include default-depend.inc
     24 Requires: SUNWgnome-libs
     25 Requires: SUNWgnome-base-libs
     26 Requires: SUNWgccruntime
     27 BuildRequires: SUNWgnome-base-libs-devel
     28 BuildRequires: SUNWgccruntime
     29 
     30 %if %build_l10n
     31 %package l10n
     32 Summary:                 %{summary} - l10n files
     33 SUNW_BaseDir:            %{_basedir}
     34 %include default-depend.inc
     35 Requires:                %{name}
     36 %endif
     37 
     38 %prep
     39 rm -rf %name-%version
     40 mkdir -p %name-%version
     41 %dia.prep -d %name-%version
     42 cd %{_builddir}/%name-%version
     43 gzcat %SOURCE0 | tar xf -
     44 
     45 %build
     46 %dia.build -d %name-%version
     47 
     48 %install
     49 %dia.install -d %name-%version
     50 
     51 rm -r $RPM_BUILD_ROOT%{_mandir}
     52 cd %{_builddir}/%name-%version/sun-manpages
     53 make install DESTDIR=$RPM_BUILD_ROOT
     54 
     55 %if %build_l10n
     56 %else
     57 # REMOVE l10n FILES
     58 #FIXME: really need to fix this stuff up
     59 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     60 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/eu
     61 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[a-d]*
     62 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[f-z]*
     63 %endif
     64 
     65 %clean
     66 rm -rf $RPM_BUILD_ROOT
     67 
     68 %files
     69 %defattr (-, root, bin)
     70 %dir %attr (0755, root, bin) %{_bindir}
     71 %{_bindir}/*
     72 %dir %attr (0755, root, bin) %{_libdir}
     73 %{_libdir}/*
     74 %dir %attr (0755, root, sys) %{_datadir}
     75 %dir %attr (0755, root, other) %{_datadir}/applications
     76 %{_datadir}/applications/*
     77 %dir %attr (0755, root, other) %{_datadir}/pixmaps
     78 %{_datadir}/pixmaps/*
     79 %dir %attr (0755, root, other) %{_datadir}/gnome
     80 %{_datadir}/gnome/help/dia/C
     81 %{_datadir}/gnome/help/dia/en
     82 %{_datadir}/man/*
     83 %dir %attr (0755, root, other) %{_datadir}/mime-info
     84 %{_datadir}/mime-info/*
     85 %{_datadir}/omf/*
     86 %dir %attr (0755, root, other) %{_datadir}/dia
     87 %{_datadir}/dia/*
     88 %doc -d dia-%{dia.version} AUTHORS README
     89 %doc(bzip2) -d dia-%{dia.version} COPYING ChangeLog NEWS po/ChangeLog
     90 %dir %attr (0755, root, other) %{_datadir}/doc
     91 
     92 %if %build_l10n
     93 %files l10n
     94 %defattr (-, root, bin)
     95 %dir %attr (0755, root, sys) %{_datadir}
     96 %attr (-, root, other) %{_datadir}/locale
     97 %dir %attr (0755, root, other) %{_datadir}/gnome
     98 %{_datadir}/gnome/help/dia/eu
     99 # Comment this line out since no [a-d]* locale at this point
    100 #%{_datadir}/gnome/help/dia/[a-d]*
    101 %{_datadir}/gnome/help/dia/[f-z]*
    102 %endif
    103 
    104 %changelog
    105 * Wed Oct 22 2008 - matt.keenan@sun.com
    106 - Created
    107