Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWcontact-lookup-applet
      3 #
      4 # includes module(s): contact-lookup-applet
      5 #
      6 %define owner jedy
      7 #
      8 # Copyright 2008 Sun Microsystems, Inc.
      9 # This file and all modifications and additions to the pristine
     10 # package are under the same license as the package itself.
     11 #
     12 
     13 %include Solaris.inc
     14 
     15 %define OSR 9206:0.x
     16 
     17 Name:                    SUNWcontact-lookup-applet
     18 Summary:                 Contact lookup applet
     19 Version:                 0.16
     20 URL:                     http://burtonini.com
     21 License:                 GPL v2
     22 Source:                  http://burtonini.com/computing/contact-lookup-applet-%{version}.tar.gz
     23 %if %build_l10n
     24 Source1:                 l10n-configure.sh
     25 %endif
     26 # date:2008-06-25 owner:jedy type:branding
     27 Patch1:                  contact-lookup-applet-01-suncc.diff
     28 SUNW_BaseDir:            %{_basedir}
     29 SUNW_Copyright:          %{name}.copyright
     30 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     31 %include default-depend.inc
     32 Requires:               SUNWlibglade
     33 Requires:               SUNWgnome-libs
     34 Requires:               SUNWevolution-data-server
     35 Requires:               SUNWgnome-panel
     36 BuildRequires:          SUNWlibglade-devel
     37 BuildRequires:          SUNWgnome-libs-devel
     38 BuildRequires:          SUNWevolution-data-server-devel
     39 BuildRequires:          SUNWgnome-panel-devel
     40 
     41 %if %build_l10n
     42 %package l10n
     43 Summary:                 %{summary} - l10n files
     44 SUNW_BaseDir:            %{_basedir}
     45 %include default-depend.inc
     46 Requires:                %{name}
     47 %endif
     48 
     49 %prep
     50 %setup -q -n contact-lookup-applet-%version
     51 %patch1 -p1
     52 
     53 %build
     54 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     55 if test "x$CPUS" = "x" -o $CPUS = 0; then
     56      CPUS=1
     57 fi
     58 
     59 export CFLAGS="%optflags" 
     60 export LDFLAGS="%_ldflags"
     61 
     62 libtoolize --copy --force
     63 intltoolize --force --copy --automake
     64 
     65 %if %build_l10n
     66 sh %SOURCE1 --enable-copyright
     67 %endif
     68 
     69 aclocal
     70 automake -a -f
     71 autoconf -f
     72 
     73 ./configure --prefix=%{_prefix}  \
     74             --libexecdir=%{_libexecdir}
     75 
     76 make -j$CPUS
     77 
     78 %install
     79 rm -rf $RPM_BUILD_ROOT
     80 make install DESTDIR=$RPM_BUILD_ROOT
     81 %if %build_l10n
     82 %else
     83 # REMOVE l10n FILES
     84 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     85 %endif
     86 
     87 %clean
     88 rm -rf $RPM_BUILD_ROOT
     89 
     90 %files
     91 %doc AUTHORS
     92 %doc(bzip2) ChangeLog COPYING
     93 %dir %attr (0755, root, other) %{_datadir}/doc
     94 %defattr (-, root, bin)
     95 %dir %attr (0755,root,bin) %{_libdir}
     96 %{_libdir}/*
     97 %dir %attr(0755, root, sys) %{_datadir}
     98 %{_datadir}/lookup-applet
     99 
    100 %if %build_l10n
    101 %files l10n
    102 %defattr (-, root, bin)
    103 %dir %attr (0755, root, sys) %{_datadir}
    104 %attr (-, root, other) %{_datadir}/locale
    105 %endif
    106 
    107 %changelog
    108 * Wed Nov 05 2008 - Jedy Wang (jedy.wang@sun.com)
    109 - Update license.
    110 * Tue Sep 16 2008 - Jedy Wang (jedy.wang@sun.com)
    111 - Add copyright files.
    112 * Mon Jun 30 2008 - Jedy Wang (jedy.wang@sun.com)
    113 - Updated patch comment
    114 * Wed Jun 25 2008 - Jedy Wang (jedy.wang@sun.com)
    115 - Moved from spec-files-extra
    116 * Fri May 30 2008 - Jedy Wang (jedy.wang@sun.com)
    117 - Initial spec
    118 
    119