# HG changeset patch # User Michael Schloh von Bennewitz # Date 1306417852 -7200 # Node ID 5ae423a55beddadd1faf0e94b277700eb81a4d6e # Parent bc3cd9a53ab593b0046905b764233d641e0f57d5 Port software packaging (and adjust runtime logic) for use in non Fedora environments. diff -r bc3cd9a53ab5 -r 5ae423a55bed isomd5sum/isomd5sum.spec --- a/isomd5sum/isomd5sum.spec Thu May 26 15:49:15 2011 +0200 +++ b/isomd5sum/isomd5sum.spec Thu May 26 15:50:52 2011 +0200 @@ -0,0 +1,46 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: isomd5sum +Version: 1.0.7 +Release: MSvB_1 +License: GPLv2+ +Summary: Utilities for working with md5sum hashes in ISO images +Url: http://git.fedorahosted.org/git/?p=isomd5sum.git +Group: Applications/System +Source0: http://fedorahosted.org/releases/i/s/isomd5sum/%{name}-%{version}.tar.bz2 +BuildRequires: gcc, python-devel, popt-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The isomd5sum package contains utilities for implanting +and verifying md5sum hashes embedded in ISO9660 images. + +%prep +%setup -q + +%build +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +%make_install +chmod -x %{buildroot}%{_mandir}/man*/* +rm -f %{buildroot}%{_includedir}/* +rm -f %{buildroot}%{_libdir}/lib*.a +rm -f %{buildroot}%{_libdir}/lib*.so* + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files +%defattr(-,root,root) +%doc COPYING +/usr/bin/implantisomd5 +/usr/bin/checkisomd5 +%{_mandir}/man*/* +%{python_sitearch}/pyisomd5sum.so + +%changelog +* Sat May 21 2011 Michael Schloh von Bennewitz - 1.0.7 +- Introduction for meeting dependency in liveusb-creator + diff -r bc3cd9a53ab5 -r 5ae423a55bed liveusb-creator/liveusb-creator.spec --- a/liveusb-creator/liveusb-creator.spec Thu May 26 15:49:15 2011 +0200 +++ b/liveusb-creator/liveusb-creator.spec Thu May 26 15:50:52 2011 +0200 @@ -2,30 +2,31 @@ Name: liveusb-creator Version: 3.11.1 -Release: 1%{?dist} +Release: MSvB_1 Summary: A liveusb creator Group: Applications/System License: GPLv2 -URL: https://fedorahosted.org/liveusb-creator -Source0: https://fedorahosted.org/releases/l/i/liveusb-creator/%{name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +URL: https://www.fedorahosted.org/liveusb-creator +Source0: https://www.fedorahosted.org/releases/l/i/liveusb-creator/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch ExcludeArch: ppc ExcludeArch: ppc64 -BuildRequires: python-devel, python-setuptools, PyQt4-devel, desktop-file-utils gettext -Requires: syslinux, PyQt4, usermode, isomd5sum +BuildRequires: python-setuptools, desktop-file-utils gettext +Requires: syslinux, python-qt4, isomd5sum Requires: python-urlgrabber -Requires: pyparted >= 2.0 -Requires: syslinux-extlinux +Requires: python-parted >= 2.0 %description A liveusb creator from Live Fedora images %prep %setup -q +%{__sed} -i.orig -e 's;^\(Icon *=.*\)\.png;\1;' data/liveusb-creator.desktop +%{__sed} -i.orig -e "s;^\(locale.setlocale(locale.LC_ALL,\).*;\1 'fr_FR.UTF-8');" liveusb/__init__.py %build %{__python} setup.py build @@ -34,13 +35,12 @@ %install rm -rf %{buildroot} -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%{__python} setup.py install -O1 --skip-build --prefix /usr --root %{buildroot} %{__rm} -r liveusb/urlgrabber # Adjust for console-helper magic mkdir -p %{buildroot}%{_sbindir} mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name} -ln -s ../bin/consolehelper %{buildroot}%{_bindir}/%{name} mkdir -p %{buildroot}%{_sysconfdir}/pam.d cp %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name} mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps @@ -60,7 +60,6 @@ %defattr(-,root,root,-) %doc README.txt LICENSE.txt %{python_sitelib}/* -%{_bindir}/%{name} %{_sbindir}/%{name} %{_datadir}/applications/fedora-liveusb-creator.desktop %{_datadir}/pixmaps/fedorausb.png @@ -69,6 +68,9 @@ %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} %changelog +* Thu May 26 2011 Michael Schloh von Bennewitz - 3.11.1-MSvB_1 +- Port to OpenSUSE RPM build structure + * Tue May 24 2011 Luke Macken - 3.11.1-1 - Bump to support downloading Fedora 15 diff -r bc3cd9a53ab5 -r 5ae423a55bed python-parted/python-parted.spec --- a/python-parted/python-parted.spec Thu May 26 15:49:15 2011 +0200 +++ b/python-parted/python-parted.spec Thu May 26 15:50:52 2011 +0200 @@ -1,49 +1,29 @@ %define modname pyparted Name: python-parted -%if %suse_version > 1020 -Version: 1.8.9 -%else -Version: 1.7.3 -%endif -Release: 10.1 +Version: 3.6 +Release: MSvB_1 Summary: Python Module for GNU Parted -URL: http://people.redhat.com/dcantrel/pyparted +URL: https://fedorahosted.org/pyparted/ License: GNU General Public License (GPL) Group: Development/Libraries/Python -Source: %{modname}-%{version}.tar.bz2 +Source: https://fedorahosted.org/releases/p/y/pyparted/%{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-buildroot %{py_requires} +BuildRequires: gcc pkg-config BuildRequires: e2fsprogs-devel parted-devel python-devel -%if %suse_version > 1000 -BuildRequires: pkg-config -%else -BuildRequires: pkgconfig -%endif %description -Python interface to GNU parted. - -GNU Parted is a program for creating, destroying, resizing, checking, +Python-parted is the python interface to GNU Parted, +a program for creating, destroying, resizing, checking, and copying partitions, and the file systems on them. -Authors: --------- - David Cantrell - Matt Wilson - Jeremy Katz - Peter Jones - Chris Lumens - %prep %setup -q -n %{modname}-%{version} %build export CFLAGS="$RPM_OPT_FLAGS" -%if %suse_version < 1030 -%configure ||: -cat config.log -%endif -make +%configure +make %{?_smp_mflags} %install %makeinstall @@ -54,10 +34,13 @@ %files %defattr(-,root,root) %doc README COPYING AUTHORS ChangeLog -%{py_sitedir}/partedmodule.so +%{py_sitedir}/* %changelog +* Thu May 26 2011 Michael Schloh von Bennewitz - 3.6-MSvB_1 +- Update to 3.6 + * Wed Jun 25 2008 - James Oakley - 1.8.9-1 - Update to 1.8.9