Группа :: Разработка/Python
Пакет: luma
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define version 2.3
%define release alt1
Summary: LDAP browser, utility and more.
Name: luma
Version: %version
Release: %release
Source0: %name-%version.tar.bz2
License: GPL
Group: Development/Python
URL: http://luma.sourceforge.net/
BuildArch: noarch
PreReq: python = %__python_version
BuildPreReq: python-devel = %__python_version
%add_python_req_skip environment
%add_python_req_skip plugins
%add_python_req_skip base
%description
Luma is a graphical utility for accessing and managin data stored on
LDAP servers. It is written in Python, using PyQT and python-ldap.
Plugin-support is included and useful widgets with LDAP-functionality
for easy creation of plugins are delivered.
%prep
%setup -n %name-%version
%build
%install
mkdir -p %buildroot{%_bindir,%python_sitelibdir,%_menudir,%_datadir/pixmaps}
%__python install.py --prefix=%buildroot%prefix
%__install -m644 share/%name/icons/%name-32.png %buildroot/%_datadir/pixmaps/%name.png
mv %buildroot%_libdir/luma %buildroot%python_sitelibdir
%__subst 's/self.pluginBaseDir = os.path.join(environment.lumaInstallationPrefix, "lib", "luma", "plugins")/self.pluginBaseDir = os.path.join(environment.lumaInstallationPrefix, "lib", "python%__python_version", "site-packages" , "luma", "plugins")/' %buildroot%python_sitelibdir/%name/base/backend/PluginLoader.py
ln -sf ../..%python_sitelibdir/%name/%name.py %buildroot%_bindir/%name
cat <<EOF > %buildroot/%_menudir/%name
?package(luma): needs=X11 \
section="Applications/Databases" \
title="Luma" \
longtitle="LDAP browser, utility and more." \
command="%_bindir/luma" \
icon="luma.png"
EOF
%post
%update_menus
%postun
%clean_menus
%files
%_bindir/*
%python_sitelibdir/*
%_menudir/%name
%dir %_datadir/%name
%_datadir/%name/*
%_datadir/pixmaps/%name.png
%doc README LICENSE COPYING
%_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь
%define release alt1
Summary: LDAP browser, utility and more.
Name: luma
Version: %version
Release: %release
Source0: %name-%version.tar.bz2
License: GPL
Group: Development/Python
URL: http://luma.sourceforge.net/
BuildArch: noarch
PreReq: python = %__python_version
BuildPreReq: python-devel = %__python_version
%add_python_req_skip environment
%add_python_req_skip plugins
%add_python_req_skip base
%description
Luma is a graphical utility for accessing and managin data stored on
LDAP servers. It is written in Python, using PyQT and python-ldap.
Plugin-support is included and useful widgets with LDAP-functionality
for easy creation of plugins are delivered.
%prep
%setup -n %name-%version
%build
%install
mkdir -p %buildroot{%_bindir,%python_sitelibdir,%_menudir,%_datadir/pixmaps}
%__python install.py --prefix=%buildroot%prefix
%__install -m644 share/%name/icons/%name-32.png %buildroot/%_datadir/pixmaps/%name.png
mv %buildroot%_libdir/luma %buildroot%python_sitelibdir
%__subst 's/self.pluginBaseDir = os.path.join(environment.lumaInstallationPrefix, "lib", "luma", "plugins")/self.pluginBaseDir = os.path.join(environment.lumaInstallationPrefix, "lib", "python%__python_version", "site-packages" , "luma", "plugins")/' %buildroot%python_sitelibdir/%name/base/backend/PluginLoader.py
ln -sf ../..%python_sitelibdir/%name/%name.py %buildroot%_bindir/%name
cat <<EOF > %buildroot/%_menudir/%name
?package(luma): needs=X11 \
section="Applications/Databases" \
title="Luma" \
longtitle="LDAP browser, utility and more." \
command="%_bindir/luma" \
icon="luma.png"
EOF
%post
%update_menus
%postun
%clean_menus
%files
%_bindir/*
%python_sitelibdir/*
%_menudir/%name
%dir %_datadir/%name
%_datadir/%name/*
%_datadir/pixmaps/%name.png
%doc README LICENSE COPYING
%_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь