Home | History | Annotate | Download | only in trunk
      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 %define owner jerrytan
     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: SUNWlibart
     25 Requires: SUNWgtk2
     26 Requires: SUNWgnome-libs
     27 Requires: SUNWgccruntime
     28 BuildRequires: SUNWgtk2-devel
     29 BuildRequires: SUNWgccruntime
     30 
     31 %if %build_l10n
     32 %package l10n
     33 Summary:                 %{summary} - l10n files
     34 SUNW_BaseDir:            %{_basedir}
     35 %include default-depend.inc
     36 Requires:                %{name}
     37 %endif
     38 
     39 %prep
     40 rm -rf %name-%version
     41 mkdir -p %name-%version
     42 %dia.prep -d %name-%version
     43 cd %{_builddir}/%name-%version
     44 gzcat %SOURCE0 | tar xf -
     45 
     46 %build
     47 %dia.build -d %name-%version
     48 
     49 %install
     50 %dia.install -d %name-%version
     51 
     52 rm -r $RPM_BUILD_ROOT%{_mandir}
     53 cd %{_builddir}/%name-%version/sun-manpages
     54 make install DESTDIR=$RPM_BUILD_ROOT
     55 
     56 %if %build_l10n
     57 %else
     58 # REMOVE l10n FILES
     59 #FIXME: really need to fix this stuff up
     60 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     61 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/eu
     62 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[a-d]*
     63 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[f-z]*
     64 %endif
     65 
     66 %clean
     67 rm -rf $RPM_BUILD_ROOT
     68 
     69 %files
     70 %defattr (-, root, bin)
     71 %dir %attr (0755, root, bin) %{_bindir}
     72 %{_bindir}/*
     73 %dir %attr (0755, root, bin) %{_libdir}
     74 %{_libdir}/*
     75 %dir %attr (0755, root, sys) %{_datadir}
     76 %dir %attr (0755, root, other) %{_datadir}/applications
     77 %{_datadir}/applications/*
     78 %dir %attr (-, root, other) %{_datadir}/icons
     79 %dir %attr (-, root, other) %{_datadir}/icons/hicolor
     80 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
     81 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
     82 %{_datadir}/icons/hicolor/16x16/apps/dia.png
     83 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
     84 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
     85 %{_datadir}/icons/hicolor/22x22/apps/dia.png
     86 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
     87 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
     88 %{_datadir}/icons/hicolor/24x24/apps/dia.png
     89 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
     90 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
     91 %{_datadir}/icons/hicolor/32x32/apps/dia.png
     92 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
     93 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
     94 %{_datadir}/icons/hicolor/48x48/apps/dia.png
     95 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
     96 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
     97 %{_datadir}/icons/hicolor/scalable/apps/dia.svg
     98 %dir %attr (0755, root, other) %{_datadir}/gnome
     99 %{_datadir}/gnome/help/dia/C
    100 %{_datadir}/gnome/help/dia/en
    101 %{_datadir}/man/*
    102 %dir %attr (0755, root, other) %{_datadir}/mime-info
    103 %{_datadir}/mime-info/*
    104 %{_datadir}/omf/*
    105 %dir %attr (0755, root, other) %{_datadir}/dia
    106 %{_datadir}/dia/*
    107 %doc -d dia-%{dia.version} AUTHORS README
    108 %doc(bzip2) -d dia-%{dia.version} COPYING ChangeLog NEWS po/ChangeLog
    109 %dir %attr (0755, root, other) %{_datadir}/doc
    110 %{_datadir}/doc/dia/*
    111 
    112 %if %build_l10n
    113 %files l10n
    114 %defattr (-, root, bin)
    115 %dir %attr (0755, root, sys) %{_datadir}
    116 %attr (-, root, other) %{_datadir}/locale
    117 %dir %attr (0755, root, other) %{_datadir}/gnome
    118 %{_datadir}/gnome/help/dia/eu
    119 # Comment this line out since no [a-d]* locale at this point
    120 #%{_datadir}/gnome/help/dia/[a-d]*
    121 %{_datadir}/gnome/help/dia/[f-z]*
    122 %endif
    123 
    124 %changelog
    125 * Wed Oct 22 2008 - matt.keenan@sun.com
    126 - Created
    127 
    128