michael@14: %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} michael@14: michael@14: Name: liveusb-creator michael@14: Version: 3.11.1 michael@15: Release: MSvB_1 michael@14: Summary: A liveusb creator michael@14: michael@14: Group: Applications/System michael@14: License: GPLv2 michael@15: URL: https://www.fedorahosted.org/liveusb-creator michael@15: Source0: https://www.fedorahosted.org/releases/l/i/liveusb-creator/%{name}-%{version}.tar.bz2 michael@15: BuildRoot: %{_tmppath}/%{name}-%{version}-build michael@14: michael@14: BuildArch: noarch michael@14: ExcludeArch: ppc michael@14: ExcludeArch: ppc64 michael@14: michael@15: BuildRequires: python-setuptools, desktop-file-utils gettext michael@15: Requires: syslinux, python-qt4, isomd5sum michael@14: Requires: python-urlgrabber michael@15: Requires: python-parted >= 2.0 michael@14: michael@14: %description michael@14: A liveusb creator from Live Fedora images michael@14: michael@14: %prep michael@14: %setup -q michael@15: %{__sed} -i.orig -e 's;^\(Icon *=.*\)\.png;\1;' data/liveusb-creator.desktop michael@15: %{__sed} -i.orig -e "s;^\(locale.setlocale(locale.LC_ALL,\).*;\1 'fr_FR.UTF-8');" liveusb/__init__.py michael@14: michael@14: %build michael@14: %{__python} setup.py build michael@14: make mo michael@14: make mo michael@14: michael@14: %install michael@14: rm -rf %{buildroot} michael@15: %{__python} setup.py install -O1 --skip-build --prefix /usr --root %{buildroot} michael@14: %{__rm} -r liveusb/urlgrabber michael@14: michael@14: # Adjust for console-helper magic michael@14: mkdir -p %{buildroot}%{_sbindir} michael@14: mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name} michael@14: mkdir -p %{buildroot}%{_sysconfdir}/pam.d michael@14: cp %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name} michael@14: mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps michael@14: cp %{name}.console %{buildroot}%{_sysconfdir}/security/console.apps/%{name} michael@14: michael@14: desktop-file-install --vendor="fedora" \ michael@14: --dir=%{buildroot}%{_datadir}/applications \ michael@14: %{buildroot}/%{_datadir}/applications/liveusb-creator.desktop michael@14: rm -rf %{buildroot}/%{_datadir}/applications/liveusb-creator.desktop michael@14: michael@14: %find_lang %{name} michael@14: michael@14: %clean michael@14: rm -rf %{buildroot} michael@14: michael@14: %files -f %{name}.lang michael@14: %defattr(-,root,root,-) michael@14: %doc README.txt LICENSE.txt michael@14: %{python_sitelib}/* michael@14: %{_sbindir}/%{name} michael@14: %{_datadir}/applications/fedora-liveusb-creator.desktop michael@14: %{_datadir}/pixmaps/fedorausb.png michael@14: #%{_datadir}/locale/*/LC_MESSAGES/liveusb-creator.mo michael@14: %config(noreplace) %{_sysconfdir}/pam.d/%{name} michael@14: %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} michael@14: michael@14: %changelog michael@15: * Thu May 26 2011 Michael Schloh von Bennewitz - 3.11.1-MSvB_1 michael@15: - Port to OpenSUSE RPM build structure michael@15: michael@14: * Tue May 24 2011 Luke Macken - 3.11.1-1 michael@14: - Bump to support downloading Fedora 15 michael@14: michael@14: * Mon Apr 25 2011 Luke Macken - 3.11.0-1 michael@14: - Latest upstream release michael@14: michael@14: * Tue Feb 08 2011 Fedora Release Engineering - 3.9.3-2 michael@14: - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild michael@14: michael@14: * Mon Jan 10 2011 Luke Macken - 3.9.3-1 michael@14: - Update to 3.9.3 michael@14: - Require syslinux-extlinux (#664093, #665002) michael@14: michael@14: * Wed Jul 21 2010 David Malcolm - 3.9.2-2 michael@14: - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild michael@14: michael@14: * Tue Jun 15 2010 Luke Macken - 3.9.2-1 michael@14: - 3.9.2 michael@14: michael@14: * Tue Dec 08 2009 Luke Macken - 3.9.1-1 michael@14: - 3.9.1 bugfix release michael@14: michael@14: * Tue Dec 01 2009 Luke Macken - 3.9-1 michael@14: - 3.9 release michael@14: michael@14: * Tue Dec 01 2009 Luke Macken - 3.8.9-1 michael@14: - 3.8.9, fixes bug #540255 michael@14: michael@14: * Tue Dec 01 2009 Luke Macken - 3.8.8-1 michael@14: - 3.8.8, bugfix release michael@14: michael@14: * Tue Nov 17 2009 Luke Macken - 3.8.7-1 michael@14: - 3.8.7, containing the F12 release michael@14: michael@14: * Sat Nov 07 2009 Luke Macken - 3.8.6-1 michael@14: - 3.8.6 michael@14: michael@14: * Thu Aug 27 2009 Luke Macken - 3.7.3-1 michael@14: - 3.7.3 michael@14: michael@14: * Wed Aug 05 2009 Luke Macken - 3.7.2-1 michael@14: - 3.7.2 michael@14: michael@14: * Sat Jun 27 2009 Luke Macken - 3.7.1-1 michael@14: - 3.7.1 michael@14: michael@14: * Wed Jun 24 2009 Luke Macken - 3.7 michael@14: - Latest upstream bugfix release michael@14: michael@14: * Fri Jun 12 2009 Luke Macken - 3.6.8-1 michael@14: - Latest upstream bugfix release michael@14: michael@14: * Tue Jun 09 2009 Luke Macken - 3.6.7-1 michael@14: - Fix a bug with ext formatted sticks michael@14: michael@14: * Tue Jun 09 2009 Luke Macken - 3.6.6-1 michael@14: - Update to v3.6.6 michael@14: - Merge the dcon-unfreeze patch upstream michael@14: - Add Fedora 11 to the release list michael@14: michael@14: * Wed May 20 2009 Christoph Wickert - 3.6.5-3 michael@14: - Make olpc.fth unfreeze disply for newer BIOSes than Q2E30 (#501688) michael@14: michael@14: * Thu Apr 09 2009 Luke Macken 3.6.5-2 michael@14: - Fix the checksum verification to support sha256 michael@14: michael@14: * Thu Apr 09 2009 Luke Macken 3.6.5-1 michael@14: - Update to v3.6.5, which supports F11 beta, and the latest SoaS releases michael@14: michael@14: * Wed Mar 18 2009 Luke Macken 3.6.4-1 michael@14: - Update to v3.6.4, which works with the PyParted 2.0 API michael@14: michael@14: * Thu Mar 12 2009 Luke Macken 3.6.3-1 michael@14: - Update to v3.6.3 michael@14: michael@14: * Mon Mar 07 2009 Luke Macken 3.6-1 michael@14: - Require pyparted michael@14: - Update to v3.6 michael@14: michael@14: * Fri Mar 06 2009 wwp 3.5-2 michael@14: - Fix dd commands when output path contain whitespaces michael@14: michael@14: * Wed Feb 25 2009 Fedora Release Engineering 3.5-3 michael@14: - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild michael@14: michael@14: * Fri Jan 16 2009 Luke Macken 3.5-1 michael@14: - Update to v3.5 michael@14: michael@14: * Fri Jan 16 2009 Luke Macken 3.4-1 michael@14: - Update to 3.4. michael@14: michael@14: * Fri Jan 16 2009 Luke Macken 3.3-2 michael@14: - Require python-urlgrabber michael@14: michael@14: * Fri Jan 15 2009 Luke Macken 3.3-1 michael@14: - Update to 3.3 michael@14: michael@14: * Fri Jan 02 2009 Luke Macken 3.2-1 michael@14: - Fixed some syslinux-related issues (#167) michael@14: - Fixed some windows-related logging problems (#337) michael@14: - Mitigate a DBus/HAL-related segfault by unmounting upon termination michael@14: michael@14: * Thu Jan 01 2009 Luke Macken 3.1-1 michael@14: - Latest upstream release, containing some windows-specific michael@14: optimizations and fixes. michael@14: michael@14: * Mon Dec 29 2008 Luke Macken 3.0-4 michael@14: - Latest upstream release. michael@14: - Fedora 10 support michael@14: - Update to the latest sugar spin michael@14: - Lots of bug fixes and code improvements michael@14: - Improved OLPC support with the --xo flag michael@14: - Translation improvements michael@14: - Greek translation (Nikos Charonitakis) michael@14: - Slovak translation (Ondrej Sulek) michael@14: - Catalan translation (Xavier Conde) michael@14: - French translation (PabloMartin-Gomez) michael@14: - Serbian (Milos Komarcevic) michael@14: - Chinese (sainrysec) michael@14: michael@14: * Fri Oct 03 2008 Luke Macken 3.0-2 michael@14: - Exclude ppc and ppc64, as syslinux will not work on those architectures. michael@14: michael@14: * Fri Aug 29 2008 Luke Macken 3.0-1 michael@14: - Latest upstream release, containing various bugfixes michael@14: - Fedora 10 Beta support michael@14: - Brazilian Portuguese translation (Igor Pires Soares) michael@14: - Spanish translation (Domingo Becker) michael@14: - Malay translation (Sharuzzaman Ahmat Raslan) michael@14: - German Translation (Marcus Nitzschke, Fabian Affolter) michael@14: - Polish translation (Piotr Drąg) michael@14: - Portuguese translation (Valter Fukuoka) michael@14: - Czech translation (Adam Pribyl) michael@14: michael@14: * Tue Aug 12 2008 Kushal Das 2.7-1 michael@14: - Initial release