From 4804c14fa8694455a51e880434f20f72bbd4300b Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 10 May 2004 21:49:56 +0000 Subject: [PATCH] added scripts for rpmbuild --- scripts/pylzma.spec | 35 +++++++++++++++++++++++++++++++++++ scripts/tarball | 12 ++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 scripts/pylzma.spec create mode 100755 scripts/tarball diff --git a/scripts/pylzma.spec b/scripts/pylzma.spec new file mode 100644 index 0000000..004d07d --- /dev/null +++ b/scripts/pylzma.spec @@ -0,0 +1,35 @@ +%define name pylzma +%define version 0.0.3 +%define release 1 +%define python python2.3 + +Summary: pylzma package +Name: %{name} +Version: %{version} +Release: %{release} +Source0: %{name}-%{version}.tar.gz +License: LGPL +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-buildroot +Prefix: %{_prefix} +Vendor: Joachim Bauch +Url: http://www.joachim-bauch.de +Requires: /usr/bin/python2.3 + +%description +Python bindings for the LZMA library by Igor Pavlov. + +%prep +%setup + +%build +env CFLAGS="$RPM_OPT_FLAGS" %{python} setup.py build + +%install +%{python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f INSTALLED_FILES +%defattr(-,root,root) diff --git a/scripts/tarball b/scripts/tarball new file mode 100755 index 0000000..427e3d8 --- /dev/null +++ b/scripts/tarball @@ -0,0 +1,12 @@ +#!/bin/bash +VERSION=0.0.3 +TMPDIR=.tmp +PYLZMA=pylzma-$VERSION +mkdir $TMPDIR +svn export https://leviathan.joachim-bauch.de/svn/repos/python/pylzma/tags/v0_0_3 $TMPDIR/$PYLZMA +cd $TMPDIR +echo $VERSION > $PYLZMA/version.txt +tar czf $PYLZMA.tar.gz $PYLZMA +cd .. +cp $TMPDIR/$PYLZMA.tar.gz . +rm -rf $TMPDIR