Permalink
Browse files

support bdist_rpm

  • Loading branch information...
1 parent 39f5d31 commit 0b8e48021e626ff0d95874cca5af6825fdd4e456 @tilgovi committed with benoitc Jan 11, 2011
Showing with 18 additions and 0 deletions.
  1. +13 −0 rpm/install
  2. +5 −0 setup.cfg
View
13 rpm/install
@@ -0,0 +1,13 @@
+%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
+
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+INSTALLED_FILES="\
+%{python_sitelib}/*
+%{_bindir}/*
+%doc doc
+"
+echo "$INSTALLED_FILES" > INSTALLED_FILES
View
5 setup.cfg
@@ -0,0 +1,5 @@
+[bdist_rpm]
+packager = Randall Leeds <randall@meebo-inc.com>
+build-requires = python2-devel python-setuptools
+requires = python-setuptools >= 0.6c6 python-ctypes
+install_script = rpm/install

0 comments on commit 0b8e480

Please sign in to comment.