Thu, 26 May 2011 15:50:52 +0200
Port software packaging (and adjust runtime logic) for use in non Fedora environments.
1.1 --- a/isomd5sum/isomd5sum.spec Thu May 26 15:49:15 2011 +0200 1.2 +++ b/isomd5sum/isomd5sum.spec Thu May 26 15:50:52 2011 +0200 1.3 @@ -0,0 +1,46 @@ 1.4 +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 1.5 + 1.6 +Name: isomd5sum 1.7 +Version: 1.0.7 1.8 +Release: MSvB_1 1.9 +License: GPLv2+ 1.10 +Summary: Utilities for working with md5sum hashes in ISO images 1.11 +Url: http://git.fedorahosted.org/git/?p=isomd5sum.git 1.12 +Group: Applications/System 1.13 +Source0: http://fedorahosted.org/releases/i/s/isomd5sum/%{name}-%{version}.tar.bz2 1.14 +BuildRequires: gcc, python-devel, popt-devel 1.15 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 1.16 + 1.17 +%description 1.18 +The isomd5sum package contains utilities for implanting 1.19 +and verifying md5sum hashes embedded in ISO9660 images. 1.20 + 1.21 +%prep 1.22 +%setup -q 1.23 + 1.24 +%build 1.25 +make %{?_smp_mflags} 1.26 + 1.27 +%install 1.28 +rm -rf $RPM_BUILD_ROOT 1.29 +%make_install 1.30 +chmod -x %{buildroot}%{_mandir}/man*/* 1.31 +rm -f %{buildroot}%{_includedir}/* 1.32 +rm -f %{buildroot}%{_libdir}/lib*.a 1.33 +rm -f %{buildroot}%{_libdir}/lib*.so* 1.34 + 1.35 +%clean 1.36 +%{?buildroot:%__rm -rf "%{buildroot}"} 1.37 + 1.38 +%files 1.39 +%defattr(-,root,root) 1.40 +%doc COPYING 1.41 +/usr/bin/implantisomd5 1.42 +/usr/bin/checkisomd5 1.43 +%{_mandir}/man*/* 1.44 +%{python_sitearch}/pyisomd5sum.so 1.45 + 1.46 +%changelog 1.47 +* Sat May 21 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 1.0.7 1.48 +- Introduction for meeting dependency in liveusb-creator 1.49 +
2.1 --- a/liveusb-creator/liveusb-creator.spec Thu May 26 15:49:15 2011 +0200 2.2 +++ b/liveusb-creator/liveusb-creator.spec Thu May 26 15:50:52 2011 +0200 2.3 @@ -2,30 +2,31 @@ 2.4 2.5 Name: liveusb-creator 2.6 Version: 3.11.1 2.7 -Release: 1%{?dist} 2.8 +Release: MSvB_1 2.9 Summary: A liveusb creator 2.10 2.11 Group: Applications/System 2.12 License: GPLv2 2.13 -URL: https://fedorahosted.org/liveusb-creator 2.14 -Source0: https://fedorahosted.org/releases/l/i/liveusb-creator/%{name}-%{version}.tar.bz2 2.15 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 2.16 +URL: https://www.fedorahosted.org/liveusb-creator 2.17 +Source0: https://www.fedorahosted.org/releases/l/i/liveusb-creator/%{name}-%{version}.tar.bz2 2.18 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 2.19 2.20 BuildArch: noarch 2.21 ExcludeArch: ppc 2.22 ExcludeArch: ppc64 2.23 2.24 -BuildRequires: python-devel, python-setuptools, PyQt4-devel, desktop-file-utils gettext 2.25 -Requires: syslinux, PyQt4, usermode, isomd5sum 2.26 +BuildRequires: python-setuptools, desktop-file-utils gettext 2.27 +Requires: syslinux, python-qt4, isomd5sum 2.28 Requires: python-urlgrabber 2.29 -Requires: pyparted >= 2.0 2.30 -Requires: syslinux-extlinux 2.31 +Requires: python-parted >= 2.0 2.32 2.33 %description 2.34 A liveusb creator from Live Fedora images 2.35 2.36 %prep 2.37 %setup -q 2.38 +%{__sed} -i.orig -e 's;^\(Icon *=.*\)\.png;\1;' data/liveusb-creator.desktop 2.39 +%{__sed} -i.orig -e "s;^\(locale.setlocale(locale.LC_ALL,\).*;\1 'fr_FR.UTF-8');" liveusb/__init__.py 2.40 2.41 %build 2.42 %{__python} setup.py build 2.43 @@ -34,13 +35,12 @@ 2.44 2.45 %install 2.46 rm -rf %{buildroot} 2.47 -%{__python} setup.py install -O1 --skip-build --root %{buildroot} 2.48 +%{__python} setup.py install -O1 --skip-build --prefix /usr --root %{buildroot} 2.49 %{__rm} -r liveusb/urlgrabber 2.50 2.51 # Adjust for console-helper magic 2.52 mkdir -p %{buildroot}%{_sbindir} 2.53 mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name} 2.54 -ln -s ../bin/consolehelper %{buildroot}%{_bindir}/%{name} 2.55 mkdir -p %{buildroot}%{_sysconfdir}/pam.d 2.56 cp %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name} 2.57 mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps 2.58 @@ -60,7 +60,6 @@ 2.59 %defattr(-,root,root,-) 2.60 %doc README.txt LICENSE.txt 2.61 %{python_sitelib}/* 2.62 -%{_bindir}/%{name} 2.63 %{_sbindir}/%{name} 2.64 %{_datadir}/applications/fedora-liveusb-creator.desktop 2.65 %{_datadir}/pixmaps/fedorausb.png 2.66 @@ -69,6 +68,9 @@ 2.67 %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} 2.68 2.69 %changelog 2.70 +* Thu May 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 3.11.1-MSvB_1 2.71 +- Port to OpenSUSE RPM build structure 2.72 + 2.73 * Tue May 24 2011 Luke Macken <lmacken@redhat.com> - 3.11.1-1 2.74 - Bump to support downloading Fedora 15 2.75
3.1 --- a/python-parted/python-parted.spec Thu May 26 15:49:15 2011 +0200 3.2 +++ b/python-parted/python-parted.spec Thu May 26 15:50:52 2011 +0200 3.3 @@ -1,49 +1,29 @@ 3.4 %define modname pyparted 3.5 Name: python-parted 3.6 -%if %suse_version > 1020 3.7 -Version: 1.8.9 3.8 -%else 3.9 -Version: 1.7.3 3.10 -%endif 3.11 -Release: 10.1 3.12 +Version: 3.6 3.13 +Release: MSvB_1 3.14 Summary: Python Module for GNU Parted 3.15 -URL: http://people.redhat.com/dcantrel/pyparted 3.16 +URL: https://fedorahosted.org/pyparted/ 3.17 License: GNU General Public License (GPL) 3.18 Group: Development/Libraries/Python 3.19 -Source: %{modname}-%{version}.tar.bz2 3.20 +Source: https://fedorahosted.org/releases/p/y/pyparted/%{modname}-%{version}.tar.gz 3.21 BuildRoot: %{_tmppath}/%{name}-buildroot 3.22 %{py_requires} 3.23 +BuildRequires: gcc pkg-config 3.24 BuildRequires: e2fsprogs-devel parted-devel python-devel 3.25 -%if %suse_version > 1000 3.26 -BuildRequires: pkg-config 3.27 -%else 3.28 -BuildRequires: pkgconfig 3.29 -%endif 3.30 3.31 %description 3.32 -Python interface to GNU parted. 3.33 - 3.34 -GNU Parted is a program for creating, destroying, resizing, checking, 3.35 +Python-parted is the python interface to GNU Parted, 3.36 +a program for creating, destroying, resizing, checking, 3.37 and copying partitions, and the file systems on them. 3.38 3.39 -Authors: 3.40 --------- 3.41 - David Cantrell <dcantrell@redhat.com> 3.42 - Matt Wilson <msw@redhat.com> 3.43 - Jeremy Katz <katzj@redhat.com> 3.44 - Peter Jones <pjones@redhat.com> 3.45 - Chris Lumens <clumens@redhat.com> 3.46 - 3.47 %prep 3.48 %setup -q -n %{modname}-%{version} 3.49 3.50 %build 3.51 export CFLAGS="$RPM_OPT_FLAGS" 3.52 -%if %suse_version < 1030 3.53 -%configure ||: 3.54 -cat config.log 3.55 -%endif 3.56 -make 3.57 +%configure 3.58 +make %{?_smp_mflags} 3.59 3.60 %install 3.61 %makeinstall 3.62 @@ -54,10 +34,13 @@ 3.63 %files 3.64 %defattr(-,root,root) 3.65 %doc README COPYING AUTHORS ChangeLog 3.66 -%{py_sitedir}/partedmodule.so 3.67 +%{py_sitedir}/* 3.68 3.69 %changelog 3.70 3.71 +* Thu May 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 3.6-MSvB_1 3.72 +- Update to 3.6 3.73 + 3.74 * Wed Jun 25 2008 - James Oakley <jfunk@funktronics.ca> - 1.8.9-1 3.75 - Update to 1.8.9 3.76