Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37513428
en ru br
Репозитории ALT

Группа :: Графические оболочки/GNOME
Пакет: gdesklets

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _name gDesklets
%define menu_group Applications/Monitoring/%_name

Name: gdesklets
Version: 0.36.1
Release: alt1

Packager: Vladimir Scherbaev <vladimir at altlinux dot org>

Summary: gDesklets - an advanced architecture for desktop applets
License: GPL
Group: Graphical desktop/GNOME
Url: http://%name.gnomedesktop.org
Source0: http://www.gdesklets.org/releases/gDesklets-%version.tar.bz2
Source1: %name-16.png
Source2: %name-32.png

Patch1: gdesklets-0.36-alt-desktopfile.patch
Patch2: gdesklets-0.36-alt-desktopfilein.patch

%define gdesklets_dir %_libdir/%name
#%define gdesklets_displays_dir %gdesklets_dir/Displays
#%define gdesklets_themes_dir %gdesklets_dir/Themes

%add_python_lib_path gdesklets_dir
# provided by libdesklets/system/_glibtopmodule.so
%add_python_req_skip _glibtop
# provided by utils/_systraymodule.so
%add_python_req_skip _systray

# temporarely

Autoreq: yes, nopython
Requires: python%__python_version(libglade)
Requires: python%__python_version(bonobo)
Requires: python%__python_version(gnomecanvas)
Requires: python%__python_version(gconf)
Requires: python%__python_version(ORBit)


# Typical environment for GNOME program

#Requires(post): GConf2
Requires(post,postun): scrollkeeper
Requires(post,postun): desktop-file-utils
BuildPreReq: GConf2
BuildPreReq: desktop-file-utils
BuildPreReq: menu-devel

# to avoid rpm-build-python/hasher/apt bug (#4795)

BuildPreReq: python-module-pygnome

# manually removed: eric gcc-g77 gdesklets

# Automatically added by buildreq on Mon Sep 19 2005 (-bi)
BuildRequires: GConf2 ORBit2-devel fontconfig-devel freetype2-devel gcc-c++ glib2-devel gnome-vfs2-devel libGConf2-devel
BuildRequires: libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libcairo-devel libg2c-devel libglitz-devel libgnome-devel
BuildRequires: libgnome-keyring-devel libgnomecanvas-devel libgnomeui-devel libgtk+2-devel libgtop2-devel libpango-devel libpng-devel libpopt-devel
BuildRequires: librsvg2-devel libxml2-devel menu-devel perl-XML-Parser pkg-config python-base python-dev python-module-pygnome-devel
BuildRequires: python-module-pygtk-devel python-module-pyorbit-devel python-modules-compiler python-modules-encodings  xorg-x11-devel
BuildRequires: zlib-devel

%description
gDesklets provides an advanced architecture for desktop applets -- tiny
displays sitting on your desktop in a symbiotic relationship of eye
candy and usefulness.

#%package devel

#Summary: Development files for %_name
#Group: Development/C
#Requires: %name = %version-%release

#%description devel

#This package contains files needed to develop desklets and sensors for %_name.


%prep
%setup -q -n gDesklets-%version
%patch1
%patch2
# fix schemas install
%__subst "s|.*DATABASE.*||g" configure.in
# install *.mo files in proper location
#%__subst 's,\(installdir = \)${coredir},\1$(datadir),' locale/Makefile*
# fix path to locale directory
#%__subst 's at \(Translator(NAME.lower(), \).*$ at \1"/usr/share/locale") at ' main/__init__.py

%build
#autoreconf -fisv
%configure
##--disable-schemas-install
%make_build

%install
#export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
#%__mkdir -p %buildroot{%gdesklets_displays_dir,%gdesklets_themes_dir/{Displays,Themes}}
%make_install DESTDIR=%buildroot install
#unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
%__mkdir_p %buildroot%_liconsdir/ %buildroot%_niconsdir/ %buildroot%_miconsdir/
%__cp  %buildroot%_datadir/pixmaps/%name.png %buildroot%_liconsdir/
%__install -m 0644 %SOURCE1 %buildroot%_miconsdir/%name.png
%__install -m 0644 %SOURCE2 %buildroot%_niconsdir/%name.png

# menu

%__mkdir_p %buildroot%_menudir
%__cat <<__MENU__ > %buildroot%_menudir/%_name
?package(%name): needs="x11" title="%_name" \
longtitle="A desktop applet system for GNOME" \
section="Applications/Monitoring" icon="%name.png"
__MENU__

freedesktop2menu.pl %name "%menu_group" \
%buildroot%_datadir/applications/%name.desktop \
%buildroot%_menudir/%name "gnome"

%find_lang --with-gnome %name

%define schemas gdesklets-display-thumbnail

%preun
if [$1 = 0]; then
%gconf2_uninstall %name
fi

%files -f %name.lang
%_bindir/*
%_datadir/applications/*
#%_datadir/application-registry/*
%gdesklets_dir
%_datadir/mime/packages/*
#%_libdir/%name/*
%_iconsdir/gnome/48x48/mimetypes/*
%_liconsdir/*
%_niconsdir/*
%_miconsdir/*
%_datadir/pixmaps/*
%_man1dir/*
%_menudir/*
##%config %_sysconfdir/gconf/schemas/*
%doc README AUTHORS NEWS ChangeLog

#%files devel

#%_pkgconfigdir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin