Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWplanner
      3 #
      4 # includes module(s): planner 
      5 #
      6 # Copyright 2009 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 jat
     11 #
     12 %include Solaris.inc
     13 %use planner = planner.spec
     14 
     15 Name:                    SUNWplanner
     16 Summary:                 Planner is a project managment tool for the GNOME desktop
     17 Version:                 %{planner.version}
     18 SUNW_BaseDir:            %{_basedir}
     19 SUNW_Copyright:          %{name}.copyright
     20 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     21 %include default-depend.inc
     22 Requires:                SUNWlibgnomecanvas
     23 Requires:                SUNWdesktop-cache
     24 Requires:                %{name}-root
     25                                                                                 
     26 # GLIB GTK LIBGNOMECANVAS LIBGLADE
     27 BuildRequires: SUNWlibgnomecanvas-devel
     28 # LIBGNOMEUI LIBGNOMEUI
     29 BuildRequires: SUNWgnome-libs-devel
     30 # LIBGNOMEPRINTUI
     31 BuildRequires: SUNWgnome-print-devel
     32 # GNOME_VFS
     33 BuildRequires: SUNWgnome-vfs-devel
     34 # GCONF
     35 BuildRequires: SUNWgnome-config-devel
     36 # LIBXML
     37 BuildRequires: SUNWlxml-devel
     38 # LIBXSLT
     39 BuildRequires: SUNWlxsl-devel
     40 # PYGTK
     41 BuildRequires: SUNWgnome-python-libs-devel
     42 BuildRequires: SUNWpython-setuptools
     43 
     44 # GLIB GTK LIBGNOMECANVAS LIBGLADE
     45 # LIBGNOMEUI LIBGNOMEUI
     46 Requires: SUNWgnome-libs
     47 # LIBGNOMEPRINTUI
     48 Requires: SUNWgnome-print
     49 # GNOME_VFS
     50 Requires: SUNWgnome-vfs
     51 # GCONF
     52 Requires: SUNWgnome-config
     53 # LIBXML
     54 Requires: SUNWlxml
     55 # LIBXSLT
     56 Requires: SUNWlxsl
     57 # PYGTK
     58 Requires: SUNWgnome-python-libs
     59 
     60 %package devel
     61 Summary:      %{summary} - development files
     62 SUNW_BaseDir: %{_basedir}
     63 %include default-depend.inc
     64 Requires:     %{name}
     65 
     66 %package root
     67 Summary:      %{summary} - / filesystem
     68 SUNW_BaseDir: /
     69 %include default-depend.inc
     70 
     71 %if %build_l10n
     72 %package l10n
     73 Summary:      %{summary} - l10n files
     74 SUNW_BaseDir: %{_basedir}
     75 %include default-depend.inc
     76 Requires:     %{name}
     77 %endif
     78 
     79 %prep
     80 rm -rf %name-%version
     81 mkdir %name-%version
     82 %planner.prep -d %name-%version
     83 
     84 %build
     85 export LDFLAGS="%_ldflags"
     86 export CFLAGS="%optflags"
     87 %planner.build -d %name-%version
     88                                                                                 
     89 %install
     90 %planner.install -d %name-%version
     91 rm -rf $RPM_BUILD_ROOT%{_libdir}/python2.4/vendor-packages
     92 mv $RPM_BUILD_ROOT%{_libdir}/python2.4/site-packages \
     93 	$RPM_BUILD_ROOT%{_libdir}/python2.4/vendor-packages
     94 
     95 # generated in the postinstall scripts (update-mime-database)
     96 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/aliases
     97 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/globs
     98 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/magic
     99 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/mime.cache
    100 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/subclasses
    101 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/XMLnamespaces
    102 
    103 %if %build_l10n
    104 %else
    105 # REMOVE l10n FILES
    106 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    107 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
    108 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf
    109 %endif
    110 
    111 # Clean up unpackaged files
    112 rm -fr $RPM_BUILD_ROOT%{_datadir}/gtk-doc
    113 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
    114                                                                                 
    115 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    116 
    117 %clean
    118 rm -rf $RPM_BUILD_ROOT
    119 
    120 %post
    121 %restart_fmri desktop-mime-cache mime-types-cache gconf-cache
    122 
    123 %postun
    124 %restart_fmri desktop-mime-cache mime-types-cache
    125 
    126 %files
    127 #	%dir %attr (0755, root, other) %{_datadir}/doc
    128 #	%defattr (-, root, bin)
    129 #	%doc -d planner-%{planner.version} README AUTHORS
    130 #	%doc(bzip2) -d planner-%{planner.version} COPYING NEWS ChangeLog
    131 %defattr (-, root, bin)
    132 %dir %attr (0755, root, sys) %{_datadir}
    133 %dir %attr (0755, root, bin) %{_bindir}
    134 %{_bindir}/*
    135 %dir %attr (0755, root, bin) %{_libdir}
    136 %{_libdir}/libplanner*.so*
    137 %dir %attr (0755, root, bin) %{_libdir}/planner
    138 %dir %attr (0755, root, bin) %{_libdir}/planner/file-modules
    139 %attr(755,root,root) %{_libdir}/planner/file-modules/*
    140 %dir %attr (0755, root, bin) %{_libdir}/planner/plugins
    141 %attr(755,root,root) %{_libdir}/planner/plugins/*
    142 %dir %attr (0755, root, bin) %{_libdir}/planner/storage-modules
    143 %attr(755,root,root) %{_libdir}/planner/storage-modules/*
    144 %dir %attr (0755, root, bin) %{_libdir}/python2.4
    145 %dir %attr (0755, root, bin) %{_libdir}/python2.4/vendor-packages
    146 %{_libdir}/python2.4/vendor-packages/*
    147 %dir %attr(0755, root, bin) %{_mandir}
    148 %dir %attr(0755, root, bin) %{_mandir}/man1
    149 %{_mandir}/man1/*
    150 %dir %attr (0755, root, other) %{_datadir}/applications
    151 %{_datadir}/applications/planner.desktop
    152 %dir %attr (0755, root, other) %{_datadir}/gnome
    153 %{_datadir}/gnome/help/planner/C
    154 %dir %attr (0755, root, other) %{_datadir}/icons
    155 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor
    156 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48
    157 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/mimetypes
    158 %attr (0644, root, bin) %{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-planner.png
    159 %dir %attr (0755, root, root) %{_datadir}/mime
    160 %dir %attr (0755, root, root) %{_datadir}/mime/packages
    161 %attr(644,root,bin) %{_datadir}/mime/packages/planner.xml
    162 %{_datadir}/omf/planner/*-C.omf
    163 %dir %attr (0755, root, other) %{_datadir}/pixmaps
    164 %attr(644,root,root) %{_datadir}/pixmaps/gnome-planner.png
    165 %dir %attr (0755, root, bin) %{_datadir}/planner
    166 %dir %attr (0755, root, bin) %{_datadir}/planner/dtd
    167 %{_datadir}/planner/dtd/*
    168 %dir %attr (0755, root, bin) %{_datadir}/planner/glade
    169 %{_datadir}/planner/glade/*
    170 %dir %attr (0755, root, bin) %{_datadir}/planner/images
    171 %{_datadir}/planner/images/*
    172 %dir %attr (0755, root, bin) %{_datadir}/planner/stylesheets
    173 %{_datadir}/planner/stylesheets/*
    174 %dir %attr (0755, root, bin) %{_datadir}/planner/sql
    175 %{_datadir}/planner/sql/*
    176 %dir %attr (0755, root, bin) %{_datadir}/planner/ui
    177 %{_datadir}/planner/ui/*
    178 
    179 %files root
    180 %defattr (-, root, sys)
    181 %attr (0755, root, sys) %dir %{_sysconfdir}
    182 %{_sysconfdir}/gconf/schemas/planner.schemas
    183 
    184 %files devel
    185 %defattr (-, root, bin)
    186 %dir %attr (0755, root, bin) %{_libdir}
    187 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    188 %{_libdir}/pkgconfig/*
    189 %dir %attr (0755, root, bin) %{_includedir}
    190 %{_includedir}/*
    191 %dir %attr (0755, root, sys) %{_datadir}
    192 %dir %attr (0755, root, other) %{_datadir}/doc
    193 %{_datadir}/doc/*
    194 
    195 %if %build_l10n
    196 %files l10n
    197 %defattr (-, root, bin)
    198 %dir %attr (0755, root, sys) %{_datadir}
    199 %attr (-, root, other) %{_datadir}/locale
    200 %dir %attr (0755, root, other) %{_datadir}/gnome
    201 %{_datadir}/gnome/help/*/[a-z]*
    202 %{_datadir}/omf/*/*-[a-z]*.omf
    203 %endif
    204 
    205 %changelog
    206 * Fri Apr  3 2009 - laca@sun.com
    207 - use desktop-cache instead of postrun
    208 * Tue Mar 03 2009 - brian.cameron@sun.com
    209 - Use find command to remove .la files.
    210 * Tue Sep 23 2008 - takao.fujiwara@sun.com
    211 - Fixed wrong files and permissions.
    212 * Monday, June 30, 2008 - joseph.townsend@sun.com
    213 - Initial spec-file created
    214 
    215