Name: luma Version: 2.1.3 Release: alt1 Summary: Luma - LDAP browser, utility and more. License: GPL Group: Databases Url: http://luma.sf.net Source0: %name-%version.tar.bz2 Requires: libqt3 >= 3.2 Requires: python >= 2.3 Requires: python-module-PyQt >= 3.10 Requires: python-module-ldap >= 2.0.0 #add_python_req_skip base BuildPreReq: python >= 2.3 %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 -q -n %name-%version %build ./install.py --compile-only %install install -d $RPM_BUILD_ROOT%_prefix install -d $RPM_BUILD_ROOT%_iconsdir %__cp -R -f ./ $RPM_BUILD_ROOT%_prefix %__cp -f ./share/%name/icons/%name-32.png $RPM_BUILD_ROOT%_iconsdir %__rm -f $RPM_BUILD_ROOT%_prefix/{COPYING,LICENSE,README,install.py} # menu support install -d $RPM_BUILD_ROOT%_menudir cat << EOF > $RPM_BUILD_ROOT%_menudir/%name ?package(%name): longtitle="%summary" \ command="%_bindir/%name" title="Luma" needs="x11" \ section="Applications/Databases" \ icon="%name-32.png" EOF %post %update_menus %postun %clean_menus %files %defattr(-,root,root) %doc README COPYING LICENSE %_bindir/%name %_libdir/%name %_datadir/%name/doc %_datadir/%name/i18n %_datadir/%name/icons %_menudir/%name %_iconsdir/%name-32.png %_man1dir/%name.1.gz %changelog