Re: Sticky Notes



Ok, try these specs on for size.
from the spec's changelog:

* Thu Dec 26 2002 Chris Chabot <chabotc xs4all nl>
- Cleanup spec file
- Use rh macro's for configure and makeinstall
- Added omf and gnome help to %files list
- Cleaned up makeinstall process to prevent missing file warnings
- Added a (reasonably complete) Requires and BuildRequires list
- Made schema install on rpm-install quiet (bad form not to)
- Work-around for doc install errors
- Remove scrollkeeper generated files to prevent missing-file errors
- Removed overly used @package@ macro's from .in (makes it less readable
  and if your gonna rename it, do a search & replace please ;-)

Enjoy,

    -- Chris

ps, i notice there's no translations ? need to add %find-lang macro once it does have it

Daniel Veillard wrote:
On Wed, Dec 25, 2002 at 09:38:18PM -0800, Loban A Rahman wrote:
  
I discovered a couple of bugs, plus finished the rest of the features.
It's ready to get included into gnome-applets, if approved of course.
:-) I think all it's missing is a little more extensive documentation.
    

  The RPM don't build for me on Red Hat 8.0 :

error: File not found: /var/tmp/stickynotes_applet-root/usr/libexec/stickynotes_applet

  plus a bunch of doc installation errors.
Trying to rebuild with rpmbuild -ta stickynotes_applet-0.5.tar.gz as a
normal user.

Daniel

  
Summary:       Sticky Notes for the Gnome Desktop Environment
Name:          stickynotes_applet
Version:       0.5
Release:       1
License:       GPL
Group:         User Interface/GNOME Applets
Source:        stickynotes_applet-0.5.tar.gz
Packager:      Loban A Rahman <loban earthling net>
Buildroot:     /var/tmp/%{name}-root
Requires:      pkgconfig, libgnome, libgnomecanvas, libbonobo, atk
Requires:      libbonoboui, pango, glib2, gtk2, bonobo-activation
Requires:      gnome-panel, libgnomeui, linc, GConf2, ORBit2
BuildRequires: pkgconfig, libgnome-devel, libgnomecanvas-devel, libbonobo-devel, atk-devel
BuildRequires: libbonoboui-devel, pango-devel, glib2-devel, gtk2-devel, bonobo-activation-devel
BuildRequires: gnome-panel, libgnomeui-devel, linc-devel, GConf2-devel, ORBit2-devel

%description
An Gnome 2.0 applet that allows you to create, view and manage sticky notes on your desktop.

%prep
%setup -q
%configure

%build
make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%makeinstall

# Workaround for bad instalation target (rh uses doc/$name-$version as doc dir)
# And huh, usr/doc isn't that 'lsb' is it? ;-)
/bin/rm -rf $RPM_BUILD_ROOT/usr/doc/stickynotes_applet

# now also remove scrollkeeper generated files to prevent unpackaged file warnings
/bin/rm -rf $RPM_BUILD_ROOT/var/scrollkeeper

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS="stickynotes_applet.schemas"
for S in $SCHEMAS; do
  gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S  &>/dev/null
done

%preun

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(755,root,root,755)
%{_libexecdir}/stickynotes_applet
%defattr(644,root,root,755)
%doc AUTHORS COPYING README NEWS TODO ChangeLog ABOUT-NLS
%{_datadir}/pixmaps/stickynotes_applet
%{_datadir}/gnome/help/stickynotes_applet
%{_datadir}/omf/stickynotes_applet
%{_datadir}/gnome-2.0/ui
%{_sysconfdir}/gconf
%{_libdir}/bonobo

%changelog
* Thu Dec 26 2002 Chris Chabot <chabotc xs4all nl>
- Cleanup spec file
- Use rh macro's for configure and makeinstall
- Added omf and gnome help to %files list
- Cleaned up makeinstall process to prevent missing file warnings
- Added a (reasonably complete) Requires and BuildRequires list
- Made schema install on rpm-install quiet (bad form not to)
- Work-around for doc install errors
- Remove scrollkeeper generated files to prevent missing-file errors
- Removed overly used @package@ macro's from .in (makes it less readable
  and if your gonna rename it, do a search & replace please ;-)
  
* Sun Dec 02 2002 Loban A Rahman <loban earthling net>
- Initial specfile written
Summary:       Sticky Notes for the Gnome Desktop Environment
Name:          stickynotes_applet
Version:       @VERSION@
Release:       1
License:       GPL
Group:         User Interface/GNOME Applets
Source:        stickynotes_applet- VERSION@.tar.gz
Packager:      Loban A Rahman <loban earthling net>
Buildroot:     /var/tmp/%{name}-root
Requires:      pkgconfig, libgnome, libgnomecanvas, libbonobo, atk
Requires:      libbonoboui, pango, glib2, gtk2, bonobo-activation
Requires:      gnome-panel, libgnomeui, linc, GConf2, ORBit2
BuildRequires: pkgconfig, libgnome-devel, libgnomecanvas-devel, libbonobo-devel, atk-devel
BuildRequires: libbonoboui-devel, pango-devel, glib2-devel, gtk2-devel, bonobo-activation-devel
BuildRequires: gnome-panel, libgnomeui-devel, linc-devel, GConf2-devel, ORBit2-devel

%description
An Gnome 2.0 applet that allows you to create, view and manage sticky notes on your desktop.

%prep
%setup -q
%configure

%build
make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%makeinstall

# Workaround for bad instalation target (rh uses doc/$name-$version as doc dir)
# And huh, usr/doc isn't that 'lsb' is it? ;-)
/bin/rm -rf $RPM_BUILD_ROOT/usr/doc/stickynotes_applet

# now also remove scrollkeeper generated files to prevent unpackaged file warnings
/bin/rm -rf $RPM_BUILD_ROOT/var/scrollkeeper

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS="stickynotes_applet.schemas"
for S in $SCHEMAS; do
  gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S  &>/dev/null
done

%preun

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(755,root,root,755)
%{_libexecdir}/stickynotes_applet
%defattr(644,root,root,755)
%doc AUTHORS COPYING README NEWS TODO ChangeLog ABOUT-NLS
%{_datadir}/pixmaps/stickynotes_applet
%{_datadir}/gnome/help/stickynotes_applet
%{_datadir}/omf/stickynotes_applet
%{_datadir}/gnome-2.0/ui
%{_sysconfdir}/gconf
%{_libdir}/bonobo

%changelog
* Thu Dec 26 2002 Chris Chabot <chabotc xs4all nl>
- Cleanup spec file
- Use rh macro's for configure and makeinstall
- Added omf and gnome help to %files list
- Cleaned up makeinstall process to prevent missing file warnings
- Added a (reasonably complete) Requires and BuildRequires list
- Made schema install on rpm-install quiet (bad form not to)
- Work-around for doc install errors
- Remove scrollkeeper generated files to prevent missing-file errors
- Removed overly used @package@ macro's from .in (makes it less readable
  and if your gonna rename it, do a search & replace please ;-)

* Sun Dec 02 2002 Loban A Rahman <loban earthling net>
- Initial specfile written


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]