diff options
author | cvsdist <cvsdist@fedoraproject.org> | 2004-09-09 05:20:44 +0000 |
---|---|---|
committer | cvsdist <cvsdist@fedoraproject.org> | 2004-09-09 05:20:44 +0000 |
commit | 1d3b4616f7a62ea0d3826a842cd01aaad3acf915 (patch) | |
tree | 9c0a723eb7987011a6d429b362a28b5a352afb4f | |
parent | 2b31fbebfb93ef4815742e1f8a851e11602d5bdd (diff) | |
download | gnome-applets-1d3b4616f7a62ea0d3826a842cd01aaad3acf915.tar.gz gnome-applets-1d3b4616f7a62ea0d3826a842cd01aaad3acf915.tar.xz gnome-applets-1d3b4616f7a62ea0d3826a842cd01aaad3acf915.zip |
auto-import changelog data from gnome-applets-1.2.1-5.src.rpmgnome-applets-1_2_1-5RHL-7_0-split
Fri Aug 11 2000 Jonathan Blandford <jrb@redhat.com>
- Update Epoch
Wed Jul 19 2000 Jonathan Blandford <jrb@redhat.com>
- Change slashapp to gnome-news app.
Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jun 19 2000 Owen Taylor <otaylor@redhat.com
- %defattr fixes
- Remove Docdir:
Thu Jun 15 2000 Havoc Pennington <hp@redhat.com>
- 1.2.1
- use %makeinstall
-rw-r--r-- | .cvsignore | 1 | ||||
-rw-r--r-- | gnome-applets.spec | 162 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 164 insertions, 0 deletions
@@ -0,0 +1 @@ +gnome-applets-1.2.1.tar.gz diff --git a/gnome-applets.spec b/gnome-applets.spec new file mode 100644 index 0000000..f36ff22 --- /dev/null +++ b/gnome-applets.spec @@ -0,0 +1,162 @@ +%define name gnome-applets +%define ver 1.2.1 +%define RELEASE 5 +%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} + +Summary: Small applications which embed themselves in the GNOME panel +Name: %name +Version: %ver +Release: %rel +Epoch: 1 +License: GPL +Group: User Interface/Desktops +Source: ftp://ftp.gnome.org/pub/GNOME/sources/unstable/%{name}/%{name}-%{ver}.tar.gz +Source1: gnotices.xpm +URL: http://www.gnome.org/ +BuildRoot: /var/tmp/%{name}-%{ver}-root + +Requires: libxml +Requires: libgtop +Requires: libghttp +Requires: gnome-core >= 1.1.2 +Requires: gdk-pixbuf >= 0.7.0 + +Patch0: gnome-applets-1.2.1-oldlogo.patch + +%description +GNOME (GNU Network Object Model Environment) is a user-friendly +set of applications and desktop tools to be used in conjunction with a +window manager for the X Window System. GNOME is similar in purpose and +scope to CDE and KDE, but GNOME is based completely on Open Source +software. The gnome-applets package provides Panel applets which +enhance your GNOME experience. + +You should install the gnome-applets package if you would like embed small +utilities in the GNOME panel. + +%prep +%setup -q +%patch -p1 -b .oldlogo +cp %{SOURCE1} slashapp/ +%build + +%configure --sysconfdir=/etc +CFLAGS="$RPM_OPT_FLAGS" +make + +%install +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT +%makeinstall + +# no binary stripping +if [ -f %{name}.files ] ; then + rm -f %{name}.files +fi +############################################################################## +## +function ProcessLang() { + # rpm provides a handy scriptlet to do the locale stuff lets use that. + if [ -f /usr/lib/rpm/find-lang.sh ] ; then + /usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %name + sed "s:(644, root, root, 755):(444, bin, bin, 555):" %{name}.lang >tmp.lang && mv tmp.lang %{name}.lang + if [ -f %{name}.files ] ; then + cat %{name}.files %{name}.lang >tmp.files && mv tmp.files %{name}.files + fi + fi +} +function ProcessBin() { + # Gather up all the executable files. Stripping if requested. + # This will not recurse. + if [ -d $RPM_BUILD_ROOT%{_prefix}/bin ] ; then + echo "%defattr (0555, bin, bin)" >>%{name}.files + find $RPM_BUILD_ROOT%{_prefix}/bin -type f -print | sed "s:^$RPM_BUILD_ROOT::g" >>%{name}.files + fi +} + +function ProcessLib() { + # Gather up any libraries. + # Usage: ProcessLib <dir> <type> <output file> + # Type is either 'runtime' or 'devel' + if [ -d $1 ] ; then + echo "%defattr (0555, bin, bin)" >>$3 + case "$2" in + runtime) + # Grab runtime libraries + find $1 -name "*.so.*" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3 + ;; + devel) + find $1 -name "*.so" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3 + find $1 -name "*.la" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3 + find $1 -name "*.a" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3 + find $1 -name "*.sh" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3 + ;; + esac + fi +} +function ProcessDir() { + # Build a list of files in the specified dir sticking + # a %defattr line as specified in front of the mess. This is intended + # for normal dirs. Use ProcessLib for library dirs + # for include dirs. Appending to <output file>. + # This will recurse. + # + # Usage: ProcessDir <dir> <output file> <attr> + # + if [ -d $1 ] ; then + if [ ! -z "$3" ] ; then + echo "%defattr ($3)" >>$2 + fi + echo "*** Processing $1" + find $1 -type f -print | sed "s:^$RPM_BUILD_ROOT::g" >>$2 + fi +} + +function BuildFiles() { + ProcessBin + ProcessLang + for i in `find $RPM_BUILD_ROOT%{_prefix}/share -maxdepth 1 -type d -print | \ + sed "s:^$RPM_BUILD_ROOT%{_prefix}/share::g"` ; do + echo $i + case $i in + /applets|/asclock|/clockmail|/geyes|/gnome|/gweather|/odometer|/sound-monitor|/pixmaps|/tickastat|/xmodmap) + + ProcessDir $RPM_BUILD_ROOT%{_prefix}/share$i %{name}.files "0444, bin, bin, 0555" + ;; + *) + ;; + esac + done + ProcessDir $RPM_BUILD_ROOT/etc %{name}.files "0444, bin, bin, 0555" + ProcessLib $RPM_BUILD_ROOT%{_prefix}/lib runtime %{name}.files +} + +BuildFiles + +%clean +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f %{name}.files +%defattr(-, root, root) + +%doc AUTHORS COPYING ChangeLog NEWS README + +%changelog +* Fri Aug 11 2000 Jonathan Blandford <jrb@redhat.com> +- Update Epoch + +* Wed Jul 19 2000 Jonathan Blandford <jrb@redhat.com> +- Change slashapp to gnome-news app. + +* Thu Jul 13 2000 Prospector <bugzilla@redhat.com> +- automatic rebuild + +* Mon Jun 19 2000 Owen Taylor <otaylor@redhat.com +- %%defattr fixes +- Remove Docdir: + +* Thu Jun 15 2000 Havoc Pennington <hp@redhat.com> +- 1.2.1 +- use %%makeinstall @@ -0,0 +1 @@ +0e4b39e2c22a5e1ff4c56f6df1773f40 gnome-applets-1.2.1.tar.gz |