1: Name:           zyx-liveinstaller
     2: Version:        0.2.6
     3: Release:        1
     4: Summary:        Install a running LiveOS rebootlessly
     5: 
     6: Group:          Applications/System
     7: License:        GPLv3
     8: URL:            http://cloudsession.com/dawg/projects/zyx-liveinstaller
     9: Source0:        http://cloudsession.com/dawg/downloads/%{name}/%{name}-%{version}.tar.bz2
    10: #Patch0:        zyx-liveinstaller-0.1-random.patch
    11: 
    12: %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
    13: 
    14: BuildArch:      noarch
    15: BuildRequires:  desktop-file-utils
    16: BuildRequires:  python-devel
    17: Requires:       usermode
    18: 
    19: #
    20: # dmc
    21: #
    22: Buildroot:	 %{_tmppath}/%{name}-%{version}-%{release}-root
    23: Requires:	 python
    24: #Prereq: 
    25: BuildPrereq:	 make
    26: # XXX: author's build infrastructure (f10 for f11+,centos,soas)
    27: # ???: can anyone tell me a more appropriate way to build a package
    28: #      for systems with python 2.4 vs 2.5 vs 2.6, than all the XXXs?
    29: AutoReq: 0
    30: 
    31: 
    32: %description
    33: ZyX-LiveInstaller will perfrom a traditional LiveOS installation,
    34: however instead of installing a fresh copy of the LiveOS to disk
    35: to be used on the next reboot, it live migrates the running LiveOS's
    36: root filesystem to disk.  In this fashion it does not require a
    37: reboot to begin using the installed system.
    38: 
    39: 
    40: %prep
    41: %setup -q
    42: 
    43: 
    44: %build
    45: make %{?_smp_mflags}
    46: 
    47: 
    48: %install
    49: rm -rf $RPM_BUILD_ROOT
    50: make install DESTDIR=$RPM_BUILD_ROOT
    51: desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/zyx-liveinstaller.desktop
    52: 
    53: # XXX: for centos
    54: if [ "$RPM_BUILD_ROOT/%{python_sitelib}" != "$RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages" ]; then
    55:     mkdir -p $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/rli
    56:     for file in $( ls -1A "$RPM_BUILD_ROOT/%{python_sitelib}/rli" ); do
    57:         ln -s "%{python_sitelib}/rli/${file}" \
    58:             "$RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/rli/" 
    59:     done
    60: fi
    61: 
    62: # XXX: for soas
    63: if [ "$RPM_BUILD_ROOT/%{python_sitelib}" != "$RPM_BUILD_ROOT/%{_libdir}/python2.6/site-packages" ]; then
    64:     mkdir -p $RPM_BUILD_ROOT/%{_libdir}/python2.6/site-packages/rli
    65:     for file in $( ls -1A "$RPM_BUILD_ROOT/%{python_sitelib}/rli" ); do
    66:         ln -s "%{python_sitelib}/rli/${file}" \
    67:             "$RPM_BUILD_ROOT/%{_libdir}/python2.6/site-packages/rli/" 
    68:     done
    69: fi
    70: 
    71: 
    72: %clean
    73: rm -rf $RPM_BUILD_ROOT
    74: 
    75: 
    76: %post
    77: 
    78: # if this is a runtime install, copy .desktop file into place since
    79: # clearly the user is interested in this experimental software
    80: #
    81: # note, unlike fedora/anaconda/liveinst, this is not done by default
    82: # if the package was installed during LiveOS mastering, due to the
    83: # experimental nature.  Also for zyx I don't start nautilus on the
    84: # desktop by default anyway
    85: if [ -d /home/liveuser/Desktop ]; then
    86:     cp /usr/share/applications/zyx-liveinstaller.desktop \
    87:         /home/liveuser/Desktop \
    88: 	> /dev/null 2>&1
    89:     chown liveuser:liveuser \
    90:         /home/liveuser/Desktop/zyx-liveinstaller.desktop \
    91: 	> /dev/null 2>&1
    92:     chmod 755 \
    93:         /home/liveuser/Desktop/zyx-liveinstaller.desktop \
    94: 	> /dev/null 2>&1
    95: fi
    96: 
    97: # and for CentOS
    98: if [ -d /home/centos/Desktop ]; then
    99:     cp /usr/share/applications/zyx-liveinstaller.desktop \
   100:         /home/centos/Desktop \
   101: 	> /dev/null 2>&1
   102:     chown centos:centos \
   103:         /home/centos/Desktop/zyx-liveinstaller.desktop \
   104: 	> /dev/null 2>&1
   105:     chmod 755 \
   106:         /home/centos/Desktop/zyx-liveinstaller.desktop \
   107: 	> /dev/null 2>&1
   108: fi
   109:       
   110: 
   111: %preun
   112: 
   113: 
   114: %postun
   115: 
   116: 
   117: %files
   118: %defattr(-,root,root,-)
   119: %doc AUTHORS COPYING README
   120: %{_bindir}/%{name}
   121: %{_datadir}/%{name}/
   122: %{_sbindir}/*
   123: %{python_sitelib}/rli/
   124: %attr(0644,root,root) %{_datadir}/applications/%{name}.desktop
   125: %attr(0644,root,root) %config(noreplace) /etc/pam.d/%{name}
   126: %attr(0644,root,root) %config(noreplace) /etc/security/console.apps/%{name}
   127: # maybe someday, but probably not
   128: #/etc/X11/xinit/xinitrc.d/zz-zyx-liveinstaller.sh
   129: # XXX: for centos
   130: %{_libdir}/python2.4/site-packages/rli/
   131: # XXX: for f12/soas
   132: %{_libdir}/python2.6/site-packages/rli/
   133: 
   134: 
   135: %changelog
   136: 
   137: * Sat Dec 25 2010 Douglas McClendon <dmc@cloudsession.com> - 0.2.6-1
   138: - el6: new rc.d/halt semantics
   139: 
   140: * Wed Dec 15 2010 Douglas McClendon <dmc@cloudsession.com> - 0.2.5-1
   141: - handle new ZyX-Live-OS/zyx-live(trait) method of alternate init.d/functions
   142: - handle el6 /dev/mapper/ entry temporarily (todo: maybe better udev configs)
   143: 
   144: * Thu May 06 2010 Douglas McClendon <dmc@cloudsession.com> - 0.2.4-1
   145: - newer kernels require a new procedure for snapshot handling
   146: 
   147: * Fri Feb 12 2010 Douglas McClendon <dmc@viros.org> - 0.2.3-1
   148: - enhancement: use /etc/zyx-liveinstaller.banner.png if it exists
   149: - bugfix: tmpfs symlinks now owned by owner of their target
   150: - update: mkinitramfs new syntax
   151: - zyx: no tmpfs mounts like ancestor anymore
   152: 
   153: * Tue Jan 19 2010 Douglas McClendon <dmc@viros.org> - 0.2.2-1
   154: - fix permissions on /tmp (had lost 777+t prior to subsequent reboot)
   155: - zyx: copy music from livemedia to /usr/share/music
   156: - zyx: leave autojam off of possible installed bootloader args/append
   157: 
   158: * Mon Dec 21 2009 Douglas McClendon <dmc@viros.org> - 0.2.1-1
   159: - f11 based *zyx for the moment will do the extra tmpfs cruftage as well
   160: 
   161: * Tue Nov  9 2009 Douglas McClendon <dmc@viros.org> - 0.1.17-1
   162: - bugfix: fstype-flag was not being set when target was sole partition
   163: - bugfix: add recently required execute permission on .desktop file
   164: 
   165: * Tue Oct 27 2009 Douglas McClendon <dmc@viros.org> - 0.1.16-1
   166: - build: incorporate several changes, noarch, from Sebastian Dziallas
   167: - build: improve python version compatability tricks
   168:   - bugfix: now upgrade from fedora build works
   169: - typo: 'boot-(/)' -> 'boot-(/boot)'
   170: - aesthetic: add installation choice information to install progress page
   171: - aesthetic: remove unusable buttons for unfinished features
   172: - aesthetic: don't show terminal output of partitioner
   173: - bugfix: yes, there seems to have indeed been a bug with no-swap installs
   174:   - bug reported by Tom Gilliard, fedora-bz-530787
   175: - bugfix: centos: fixed failure to reboot when rootfs was on non-lvm 
   176: 
   177: * Sat Oct 24 2009 Douglas McClendon <dmc@viros.org> - 0.1.15-1
   178: - enhancement: centos-5.4 support: py2.4, new distrotype, misc...
   179: - enhancement: untested initial support for /dev/vd* devices
   180: - bugfix: enforce target install volume size minimums
   181: 
   182: * Tue Oct 13 2009 Douglas McClendon <dmc@viros.org> - 0.1.14-1
   183: - bugfix: handle nondefault kernel cmdline args
   184: - debug: backend failure exception propogation tested and working
   185: - bugfix: catch exception for situation with no /dev/disk/by-id
   186: - bugfix: yes, there seems to have indeed been a bug with no-swap installs
   187: 
   188: * Thu Oct  8 2009 Douglas McClendon <dmc@viros.org> - 0.1.13-1
   189: - bugfix: extra space caused problem with mitigating automounter
   190: - bugfix: missed a few things related to v0.1.12 f12 udev config
   191:   - should now be able to eject LiveCD after install of f12 based distro
   192: - bugfix: randomize initial UUID to allow multiple concurrent installs
   193: - bugfix: use blkid instead of deprecated vol_id (absent in f12)
   194: - bugfix: newer udev path_id needs non /sys prefixed argument
   195: - debug: catching more errors, and giving user better directions for feedback
   196: - use rootfs type for bootfs unless f11 special case (that needs ext3)
   197: 
   198: * Mon Sep 21 2009 Douglas McClendon <dmc@viros.org> - 0.1.12-1
   199: - cli: handle new lack of liveos udev rules in f12
   200: - cli: handle dracut for initramfs in f12
   201: 
   202: * Thu Sep 03 2009 Douglas McClendon <dmc@viros.org> - 0.1.11-1
   203: - cli: fix /boot partition boot and type flags not being set
   204:   - thanks to feedback from Tom Gilliard
   205: - cli: move to a consistent bash quoting style
   206: - gui: correctly narrow check for f11 seperate /boot requirement
   207: - gui: correctly disallow /boot on lvm
   208: - gui: use /etc/zyx-liveinstaller.install.txt if available
   209: - gui: abort after intro if already installed, with error page
   210: 
   211: * Sat Aug 15 2009 Douglas McClendon <dmc@viros.org> - 0.1.10-1
   212: - move gui python to site-packages, for rpmlint
   213: - renamed rliveinst.zyx to /usr/sbin/zyx-liveinstaller-cli
   214: - e2label rootfs after installation to non-LiveOS label
   215: - remove seperate boot requirement for f10/zyx
   216: - UUID for /boot in fstab too, helps with hibernate
   217: 
   218: * Fri Jul 31 2009 Douglas McClendon <dmc@viros.org> - 0.1.9-1
   219: - tweak stupid .present delay workaround (for Guitar-ZyX-0.3)
   220: - catch stderr in /var/log/zyx-liveinstaller.log, and more debug output
   221: - attempt to unmount targets that have been automounted under /media
   222: - genericize attempted unmount of live-osimg-min automounted under /media
   223: 
   224: * Tue Jul 28 2009 Douglas McClendon <dmc@viros.org> - 0.1.8-1
   225: - zyx only: minor typo, remove liveos lvm devices from list
   226: - rework internal device representation, fixing pre-f11 lvm problem
   227: - add temporary special case for soas live-osimg-min mounting oddity
   228: - more info added to BUGS/FAQ/README
   229: 
   230: * Mon Jul 27 2009 Douglas McClendon <dmc@viros.org> - 0.1.7-1
   231: - vastly improve FAQ
   232: 
   233: * Sat Jul 25 2009 Douglas McClendon <dmc@viros.org> - 0.1.6-1
   234: - remove zyx special lvm names from list (like for f11)
   235: - use UUID= in fstab and grub.config, primarily to make 
   236:   grubby happy, but also for consistency with anaconda.
   237: - remove attempted workaround of issue with pre-first-reboot 
   238:   hibernate.  Until grub(?) bug fixed, user must work around 
   239:   at the grub-prompt-instead-of-unhibernation by typing e.g.
   240:   # assuming /boot is on /dev/sda1
   241:   grub> root (hd0,0)
   242:   grub> setup (hd0)
   243:   grub> reboot
   244:   :( sigh...
   245: 
   246: * Fri Jul 17 2009 Douglas McClendon <dmc@viros.org> - 0.1.5-1
   247: - trying harder to deal with /tmp tmpfs
   248: - noted grubby problems in BUGS
   249: 
   250: * Fri Jul 17 2009 Douglas McClendon <dmc@viros.org> - 0.1.4-1
   251: - removed facility for launcher desktop icon from xinit,
   252:   but changed .desktop so it is shown under System Tools.
   253: - better/fixed freeing of livemedia resources
   254: - desensitized incompletely implemented installation abort
   255: - try to migrate f11 live-only tmpfs's to rootfs
   256: - support rootfs and swap on lvm
   257: - support wholedisk targets (still need choice exclusion logic)
   258: - top review text now uses long device names rather than short
   259: - output is now logged to /var/log/rliveinst.log
   260: - support ZyX LiveOS again, for now, with same backend
   261: - misc bugfixes and refactorings
   262: 
   263: * Mon Jul 13 2009 Douglas McClendon <dmc@viros.org> - 0.1.3-1
   264: - workaround fedora/grub problem by disabling hibernate autoboot
   265:   - which I never liked anyway
   266: 
   267: * Mon Jul 13 2009 Douglas McClendon <dmc@viros.org> - 0.1.2-1
   268: - really fix the grub configuration
   269: 
   270: * Sun Jul 12 2009 Douglas McClendon <dmc@viros.org> - 0.1.1-1
   271: - fixed bugs with grub configuration
   272: - better banner png compression
   273: - red highlights for unselectable volumes (due to prior selection)
   274: - misc cleanups
   275: 
   276: * Mon Jul 06 2009 Douglas McClendon <dmc@viros.org> - 0.1-1
   277: - initial release and packaging
   278: 
   279: