Репозиторий Sisyphus
Последнее обновление: 18 ноября 2019 | Пакетов: 17519 | Посещений: 15776364
en ru br
Репозитории ALT
S:7.0-alt1.r2102
5.1: 5.0.0-alt1
www.altlinux.org/Changes

Группа :: Офис
Пакет: openerp-client

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

%define  rev 2102
%define  branch stable

Name:    openerp-client
Version: 7.0
Release: alt1.r%rev
Summary: Python-based desktop client, based on the Gnome Toolkit, giving you fast access to any OpenERP Server

License: GPL
Group:   Office
Url:     https://launchpad.net/openobject-client

Packager: Andrey Cherepanov <cas at altlinux.ru>

Source:   %name-%version.tar
Source1:  %name.desktop

Patch1:   %name-build-translations.patch

BuildArch: noarch

%py_requires libglade
%py_requires pytz

#add_python_req_skip common modules options printer rpc service tools widget observator screen signal_event widget_search

%add_python_req_skip win32con win32ui

BuildRequires: python-module-egenix-mx-base python-module-paste python-module-peak python-module-pygobject-devel python-module-pygtk-libglade python-modules-encodings
BuildRequires: python-module-pytz

BuildPreReq: rpm-build-python

Provides:  tinyerp-client = %version
Obsoletes: tinyerp-client

%description
OpenERP is an open source suite of business applications. OpenERP GTK
Client (openobject-client) is the Python-based desktop client, based on
the Gnome Toolkit, giving you fast access to any OpenERP Server.

%prep
%setup
%patch1 -p2
subst "s/^version.*$/version = '%version'/g" bin/release.py


# disable library checking due gtk issues

#__subst "s/^check_modules//" ./setup.py
subst "s|\('path.share':\).*|\1 '%_datadir/%name',|g" bin/options.py
subst "s|\('path.pixmaps':\).*|\1 '%_pixmapsdir/%name',|g" bin/options.py
subst "s|'lib'|'%_lib'|g" bin/options.py
subst 's|self.install_libbase|"%python_sitelibdir"|g' mydistutils.py


%build
%python_build
# Build translations
make -f Makefile.translation translate_set

%install
%python_install

# BUG: is not installed (due DISPLAY?)

install %name %buildroot%_bindir/

#mkdir -p %buildroot%_datadir/%name/themes/

#cp -a bin/themes/* %buildroot%_datadir/%name/themes/

ln -s openerp-client/openerp-icon.png %buildroot%_pixmapsdir/openerp-icon.png
install -D -m 0644 %SOURCE1 %buildroot/%_desktopdir/openerp-client.desktop

%find_lang %name

%files -f %name.lang
%_bindir/%name
%doc %_docdir/%name-%version/
%_datadir/%name/
%python_sitelibdir/%name/
%python_sitelibdir/*.egg-info
%_desktopdir/*
%_pixmapsdir/*
%doc %_man1dir/*

%changelog

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

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