Skip to content

Commit

Permalink
added scripts for rpmbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed May 10, 2004
1 parent 50438db commit 4804c14
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
35 changes: 35 additions & 0 deletions scripts/pylzma.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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)
12 changes: 12 additions & 0 deletions scripts/tarball
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4804c14

Please sign in to comment.