Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWcups-manager
      3 #
      4 # Copyright 2008 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 %define owner gheet
      9 #
     10 
     11 %include Solaris.inc 
     12 
     13 %use scp = system-config-printer.spec
     14 
     15 Name:                    SUNWcups-manager
     16 License:  		 GPL v2
     17 Summary:                 Print Manager for CUPS
     18 Version:                 %{default_pkg_version}
     19 SUNW_BaseDir:            %{_basedir}
     20 SUNW_Copyright:          %{name}.copyright
     21 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     22 Requires:                SUNWdbus-python24
     23 Requires:                SUNWPython
     24 Requires:                SUNWpycups
     25 Requires:                SUNWcupsu
     26 BuildRequires:           SUNWgnome-desktop-prefs
     27 BuildRequires:           SUNWcupsu
     28 
     29 %include default-depend.inc
     30 
     31 %package root
     32 Summary:		 %{summary} - / filesystem
     33 SUNW_BaseDir:		 /
     34 %include default-depend.inc
     35 Requires: SUNWPython
     36 
     37 %if %build_l10n
     38 %package l10n
     39 Summary:                 %{summary} - l10n files
     40 SUNW_BaseDir:            %{_basedir}
     41 %include default-depend.inc
     42 Requires:                %{name}
     43 %endif
     44 
     45 %prep
     46 rm -rf %name-%version
     47 mkdir -p %name-%version
     48 %scp.prep -d %name-%version
     49 
     50 %build
     51 %scp.build -d %name-%version
     52 
     53 %install
     54 %scp.install -d %name-%version
     55 
     56 %if %build_l10n
     57 %else
     58 # REMOVE l10n FILES
     59 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     60 %endif
     61 
     62 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     63 
     64 %clean
     65 rm -rf $RPM_BUILD_ROOT
     66 
     67 %files
     68 %defattr(-, root, bin)
     69 %dir %attr (0755, root, bin) %{_bindir}
     70 %{_bindir}/*
     71 %dir %attr (0755, root, bin) %{_libdir}
     72 %{_libdir}/*
     73 %dir %attr (0755, root, sys) %{_datadir}
     74 %{_datadir}/%{scp.name}/icons/*
     75 %{_datadir}/%{scp.name}/*.glade
     76 %doc -d %scp.name-%{scp.version} AUTHORS README NEWS
     77 %doc(bzip2) -d %scp.name-%{scp.version} COPYING ChangeLog
     78 %dir %attr (0755, root, other) %{_datadir}/doc
     79 
     80 %files root
     81 %defattr (-, root, sys)
     82 %attr (0755, root, sys) %dir %{_sysconfdir}
     83 %attr(0755, root, bin) %dir %{_sysconfdir}/dbus-1
     84 %attr(0755, root, bin) %dir %{_sysconfdir}/dbus-1/system.d
     85 %{_sysconfdir}/dbus-1/system.d/*
     86 
     87 %if %build_l10n
     88 %files l10n
     89 %defattr (-, root, bin)
     90 %dir %attr (0755, root, sys) %{_datadir}
     91 %attr (-, root, other) %{_datadir}/locale
     92 %endif
     93 
     94 %changelog
     95 * Tue Dec 09 2008 - takao.fujiwara@sun.com
     96 - Add l10n package.
     97 * Thu Dec 04 2008 - dave.lin@sun.com
     98 - Add BuildRequires on SUNWgnome-desktop-prefs(desktop-file-install)
     99 * Tues Nov 18 2008 - ghee.teo@sun.com
    100 - Initial version.
    101 
    102