# File: umigumi.spec # # Umigumi # # "Umigumi is the Universal Meta Installer for Un*x Meta Installers" # %define PRODUCT_DIRECTORY /home/jp/ %define USER jp Name: umigumi Summary: The Universal Meta Installer for Un*x Meta Installers Version: 0.3 Release: 1nxd Group: Development/Python Requires: PyQt kdebase fdutils util-linux python libsip-devel Copyright: GPL Vendor: Nexedi URL: http://www.openbrick.org/umigumi Packager: Jean-Paul Smets BuildRoot: /var/tmp/%{name}-%{version}-rootdir Source0: http://www.openbrick.org/umigumi/%{name}-%{version}.tar.bz2 Source1: %{name}-%{version}.tar.bz2 Source10: %{name}.16.png.bz2 Source11: %{name}.32.png.bz2 Source12: %{name}.48.png.bz2 #---------------------------------------------------------------------- %description Umigumi is the universal Meta Installer for Un*x Meta Installers. It has been designed initially for the OpenBrick micro-server (www.openbrick.org) but can also be used for many other applications. Umigumi manages a list of meta installer files and installs them on compact flash device (CF, USB Stick, etc.). This way, it only takes 10 seconds to install a complete solution for the OpenBrick. Solutions include: firewall, VPN, mandrake automates installers, thin clients, etc. http://www.openbrick.org/umigumi #---------------------------------------------------------------------- %prep #Create the source code from the local Zope rm -rf /home/%{USER}/rpm/BUILD/%{name}-%{version} cp -ur %{PRODUCT_DIRECTORY}/%{name} /home/%{USER}/rpm/BUILD/%{name}-%{version} cd /home/%{USER}/rpm/BUILD/ rm -rf *.pyc tar cjf /home/%{USER}/rpm/SOURCES/%{name}-%{version}.tar.bz2 %{name}-%{version} rm -rf /home/%{USER}/rpm/BUILD/%{name}-%{version} rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT %setup -q #---------------------------------------------------------------------- %build #---------------------------------------------------------------------- %install install -d $RPM_BUILD_ROOT/usr/lib/%{name} install *.qm $RPM_BUILD_ROOT/usr/lib/%{name} install *.py $RPM_BUILD_ROOT/usr/lib/%{name} install *.html* $RPM_BUILD_ROOT/usr/lib/%{name} install linuxrc $RPM_BUILD_ROOT/usr/lib/%{name} install linux-specific/syslinux $RPM_BUILD_ROOT/usr/lib/%{name} install linux-specific/mbr.bin $RPM_BUILD_ROOT/usr/lib/%{name} install linux-specific/ldlinux.sys $RPM_BUILD_ROOT/usr/lib/%{name} install *.list $RPM_BUILD_ROOT/usr/lib/%{name}/ install -d $RPM_BUILD_ROOT/usr/share/%{name}/config install -d $RPM_BUILD_ROOT/usr/share/%{name}/custom install config/*.py $RPM_BUILD_ROOT/usr/share/%{name}/config cp -a custom/vpn $RPM_BUILD_ROOT/usr/share/%{name}/custom install -d $RPM_BUILD_ROOT/usr/lib/%{name}/leaf install leaf/*.dpy $RPM_BUILD_ROOT/usr/lib/%{name}/leaf/ install leaf/*.lrp $RPM_BUILD_ROOT/usr/lib/%{name}/leaf/ install leaf/*.py $RPM_BUILD_ROOT/usr/lib/%{name}/leaf/ install leaf/readme $RPM_BUILD_ROOT/usr/lib/%{name}/leaf/ install leaf/linux $RPM_BUILD_ROOT/usr/lib/%{name}/leaf/ install -d $RPM_BUILD_ROOT/usr/bin install -d $RPM_BUILD_ROOT/usr/sbin install umigumi $RPM_BUILD_ROOT/usr/bin/ install kumigumi $RPM_BUILD_ROOT/usr/bin/ install -m 0755 umibuilder $RPM_BUILD_ROOT/usr/sbin/ install -d $RPM_BUILD_ROOT/etc/umigumi install config.py $RPM_BUILD_ROOT/etc/umigumi/ install -d $RPM_BUILD_ROOT/mnt/cf install -d $RPM_BUILD_ROOT/%{_menudir} cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name} ?package(%{name}): command="kdesu umigumi %i %m -caption \"%c\"" icon="umigumi.png" \ needs="kde" section="Configuration/Other" title="Umigumi" \ longtitle="The Universal Meta Installer for Un*x Meta Installers" EOF install -d $RPM_BUILD_ROOT/%{_miconsdir} install -d $RPM_BUILD_ROOT/%{_liconsdir} bzcat %{SOURCE10} > $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png bzcat %{SOURCE11} > $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png bzcat %{SOURCE12} > $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png #---------------------------------------------------------------------- %clean rm -rf $RPM_BUILD_ROOT #---------------------------------------------------------------------- %files %defattr(-,root,root,0755) %doc README.txt CREDITS.txt GPL.txt /usr/lib/%{name}/*.py /usr/lib/%{name}/*.qm /usr/lib/%{name}/*.list /usr/lib/%{name}/*.html* /usr/lib/%{name}/syslinux /usr/lib/%{name}/mbr.bin /usr/lib/%{name}/ldlinux.sys /usr/lib/%{name}/linuxrc /usr/lib/%{name}/leaf/* /usr/share/%{name}/* /%{_miconsdir}/%{name}.png /%{_iconsdir}/%{name}.png /%{_liconsdir}/%{name}.png %{_menudir}/%{name} /usr/bin/umigumi /usr/bin/kumigumi /usr/sbin/umibuilder /etc/umigumi/config.py /mnt/cf #---------------------------------------------------------------------- %post %{update_menus} #---------------------------------------------------------------------- %postun %{clean_menus} #---------------------------------------------------------------------- %changelog * Mon Jan 5 2004 Jean-Paul Smets 0.3-1nxd - Added umibuilder by Yoshinori Okuji * Sun Sep 7 2003 Jean-Paul Smets 0.2-11nxd - Install bootloader twice to fix issue on strange USB systems * Sun Sep 7 2003 Jean-Paul Smets 0.2-10nxd - Fixed config.py I/O bugs * Fri Jul 25 2003 Jean-Paul Smets 0.2-9nxd - Upgraded for MDK 9.1 and PyQt 3.6 * Thu Mar 20 2003 Jean-Paul Smets 0.2-8nxd - Fixed libsip * Thu Mar 20 2003 Jean-Paul Smets 0.2-7nxd - Fixed python in umigumi command line * Sun Mar 16 2003 Jean-Paul Smets 0.2-6nxd - Added basic LEAF setup * Sun Mar 16 2003 Jean-Paul Smets 0.2-5nxd - Fixed error in root_device / reader_partition - Added translation hook for windows * Sun Mar 16 2003 Jean-Paul Smets 0.2-4nxd - Updated floppy and root_device * Sun Mar 16 2003 Jean-Paul Smets 0.2-3nxd - Windows compatibility, files clean up and floppy * Sat Mar 15 2003 Jean-Paul Smets 0.2-2nxd - Added KDE menu icon * Fri Mar 15 2003 Jean-Paul Smets 0.2-1nxd - Sat code upstream * Fri Feb 28 2003 Jean-Paul Smets 0.1-6nxd - added /mnt/cf * Tue Jan 20 2003 Jean-Paul Smets 0.1-5nxd - New version * Mon Dec 30 2002 Jean-Paul Smets 0.1-4nxd - New version * Thu Dec 28 2002 Jean-Paul Smets 0.1-3nxd - Added etc files * Thu Dec 28 2002 Jean-Paul Smets 0.1-2nxd - Added html help * Thu Dec 28 2002 Jean-Paul Smets 0.1-1nxd - Initial release