Hi all, Updated spec files for libnotify/notification are attached. Now they are shipped with gnome-panel. Please review them.
Regards, Jedy Wang -------------- next part -------------- # # spec file for package libnotify # # Copyright (c) 2006 Sun Microsystems, Inc. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # #Owner: jedy # Name: libnotify Version: 0.4.4 Release: 1 Summary: libnotify is a notification system for the GNOME desktop environment. Group: System/Libraries License: LGPL URL: http://www.galago-project.org/news/index.php Distribution: java-desktop-system Vendor: Sun Microsystems, Inc. Source: http://www.galago-project.org/files/releases/source/libnotify/libnotify-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %define gtk2_version 2.6.0 %define dbus_version 0.36 BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: dbus-devel >= %{dbus_version} Requires: gtk2 >= %{gtk2_version} Requires: dbus >= %{dbus_version} %description Libnotify is a notification system for the GNOME desktop environment. %prep %setup -q %build %ifos linux CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` if test "x$CPUS" = "x" -o $CPUS = 0; then CPUS=1 fi %else CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` %endif if test "x$CPUS" = "x" -o $CPUS = 0; then CPUS=1 fi libtoolize --copy --force aclocal $ACLOCAL_FLAGS autoheader automake -a -c -f autoconf ./configure --prefix=%{_prefix} \ --libdir=%{_libdir} make -j $CPUS %install make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';' find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) %doc README AUTHORS COPYING %{_bindir}/* %{_libdir}/*.so* %{_libdir}/pkgconfig/* %{_includedir}/libnotify/* %{_datadir}/gtk-doc/* %changelog * Thu Mar 22 2007 - jedy.wang at sun.com - Initial spec -------------- next part -------------- # # spec file for package notificatioin-daemon # # Copyright (c) 2006 Sun Microsystems, Inc. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # #Owner: jedy # Name: notification-daemon Version: 0.3.7 Release: 1 Summary: A notification daemon for the GNOME desktop environment. Group: System/Libraries License: GPL URL: http://www.galago-project.org/news/index.php URL: http://www.galago-project.org/news/index.php Distribution: java-desktop-system Source: http://www.galago-project.org/files/releases/source/notification-daemon/notification-daemon-%{version}.tar.bz2 #date:2007-03-22 owner:jedy type: branding Patch1: notification-daemon-01-no-libsexy.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gtk2 >= 2.4 BuildRequires: dbus-devel >= 0.36 BuildRequires: gnome-panel-devel BuildRequires: libpopt-devel BuildRequires: libsexy-devel >= 0.1.3 Requires: gtk2 Requires: dbus Requires: gnome-panel Requires: libpopt Requires: libsexy %package root Summary: %{summary} - / filesystem SUNW_BaseDir: / %include default-depend.inc %prep %setup -q %patch1 -p1 %build %ifos linux CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` if test "x$CPUS" = "x" -o $CPUS = 0; then CPUS=1 fi %else CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` %endif if test "x$CPUS" = "x" -o $CPUS = 0; then CPUS=1 fi libtoolize --copy --force aclocal $ACLOCAL_FLAGS autoheader automake -a -c -f autoconf ./configure --prefix=%{_prefix} \ --libexecdir=%{_libexecdir} \ --sysconfdir=%{_sysconfdir} \ --libdir=%{_libdir} make -j $CPUS %install make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';' find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) %doc README AUTHORS COPYING %{_sysconfdir}/gconf/schemas/notification-daemon.schemas %{_libdir}/notification-daemon-1.0/engines/*.so* %{_libexecdir}/notification-daemon %{_datadir}/dbus-1/services/org.freedesktop.Notifications.service %{_datadir}/locale/nl %changelog * Thu Mar 22 2007 - jedy.wang at sun.com - Initial spec -------------- next part -------------- A non-text attachment was scrubbed... Name: notification-daemon-01-no-libsexy.diff Type: text/x-patch Size: 1720 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/jds-review/attachments/20070322/5c3096f2/attachment.bin> -------------- next part -------------- <!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [ <!--ArborText, Inc., 1988-1999, v.4002--> <!ENTITY cmd "notify-send"> <!ENTITY % commonents SYSTEM "smancommon.ent"> %commonents; <!ENTITY % booktitles SYSTEM "booktitles.ent"> %booktitles; <!ENTITY suncopy "Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved."> ]> <?Pub UDT _bookmark _target> <?Pub Inc> <refentry id="notify-send-1"> <!-- %Z%%M% %I% %E% SMI; --> <refmeta><refentrytitle>notify-send</refentrytitle><manvolnum>1</manvolnum> <refmiscinfo class="date">28 Feb 2007</refmiscinfo> <refmiscinfo class="sectdesc">&man1;</refmiscinfo> <refmiscinfo class="software">&release;</refmiscinfo> <refmiscinfo class="arch">generic</refmiscinfo> <refmiscinfo class="copyright">&suncopy;</refmiscinfo> </refmeta> <refnamediv id="notify-send-1-name"><refname>notify-send</refname><refpurpose>a CLI program to send desktop notifications</refpurpose> </refnamediv> <refsynopsisdiv id="notify-send-1-synp"><title>&synp-tt;</title> <cmdsynopsis> <command>&cmd;</command> <arg choice="opt"><option>-help </option></arg> <arg choice="opt"><option>-urgency=<replaceable>level</replaceable></option></arg> <arg choice="opt"><option>-expire-time=<replaceable>time</replaceable></option></arg> <arg choice="opt"><option>-icon=<replaceable>icon,icon...</replaceable></option></arg> <arg choice="opt"><option>-category=<replaceable>type,type...</replaceable></option></arg> <arg choice="opt"><option>-hint=<replaceable>type:name:value</replaceable></option></arg> <arg choice="opt"><replaceable>summary</replaceable></arg> <arg choice="opt"><replaceable>body</replaceable></arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="notify-send-1-desc"><title>&desc-tt;</title> <para>Using notify-send, you can send desktop notifications to the user via a notification daemon from the command line. The notifications are used to inform the user about an asynchronous event or display some useful information without getting in the user's way.</para> </refsect1> <refsect1 id="notify-1-opts"><title>&opts-tt;</title> <para>The following options are supported:</para> <variablelist termlength="medium"> <varlistentry><term><option>?</option>, <option>-help</option></term><listitem><para>Display help text.</para> </listitem></varlistentry> <varlistentry><term><option>u</option>, <option>-urgency=<replaceable>level</replaceable></option></term><listitem><para>Specifies the urgency level, including low, normail and ciritical.</para> </listitem></varlistentry> <varlistentry><term><option>t</option>, <option>-expire-time=<replaceable>time</replaceable></option></term><listitem><para>Specifies the timeout in milliseconds at which to expire the notification.</para> </listitem></varlistentry> <varlistentry><term><option>i</option>, <option>-icon=<replaceable>icons</replaceable></option></term><listitem><para>Specifies an icon filename or stock icon to display.</para> </listitem></varlistentry> <varlistentry><term><option>c</option>, <option>-category=<replaceable>types</replaceable></option></term><listitem><para>Specifies the notification category.</para> </listitem></varlistentry> <varlistentry><term><option>h</option>, <option>-hint=<replaceable>hint</replaceable></option></term><listitem><para>Specifies basic extra data to pass. The format is type:name:value and valid types are int, double, string and byte</para> </listitem></varlistentry> <varlistentry><term><option>v</option>, <option>-version</option></term><listitem><para>Display version information.</para> </listitem></varlistentry> </variablelist> </refsect1> <refsect1 id="notify-send-1-exit"><title>&exit-tt;</title> <para> 0 All information was written successfully. >0 An error occurred. </para> </refsect1> <refsect1 id="notify-send-1-attr"><title>&attr-tt;</title> <para>See <olink targetdocent="REFMAN2" localinfo="attributes-5"><citerefentry> <refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink> for descriptions of the following attributes:</para> <informaltable frame="all"> <tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*"> <colspec colname="COLSPEC1" colwidth="1*"> <thead> <row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center" valign="middle">ATTRIBUTE VALUE</entry></row> </thead> <tbody> <row><entry><para>Availability</para></entry><entry><para>SUNWgnome-panel</para></entry> </row> <row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry colname="COLSPEC1"><para>Volatile</para></entry></row> </tbody> </tgroup> </informaltable> </refsect1> <refsect1 id="notify-send-1-also"><title>&also-tt;</title> <!--Reference to another man page--> <!--Reference to a Help manual--> <!--Reference to a book.--> <para>The Desktop Notification Spec on http://www.galago-project.org/specs/notification/.</para> </refsect1> <refsect1 id="notify-send-1-note"><title>¬e-tt;</title> <para> Written by Jedy Wang, Sun Microsystems Inc., 2007. </para> </refsect1> </refentry> <?Pub *0000009607> -------------- next part -------------- A non-text attachment was scrubbed... Name: patch.diff Type: text/x-patch Size: 5152 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/jds-review/attachments/20070322/5c3096f2/attachment-0001.bin>
