[ranger] Initial import

Ben Boeckel mathstuf at fedoraproject.org
Fri Jul 30 23:13:57 UTC 2010


commit e5920c9bb747bb1db33783bdc2ef3a3b4a146b7b
Author: Ben Boeckel <MathStuf at gmail.com>
Date:   Fri Jul 30 19:10:17 2010 -0400

    Initial import

 .gitignore                                         |    1 +
 ...he-shebang-line-from-the-__main__.py-file.patch |   21 +++++++
 ranger.spec                                        |   58 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fd2dc42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+ranger-1.1.2.tar.gz
diff --git a/0001-Remove-the-shebang-line-from-the-__main__.py-file.patch b/0001-Remove-the-shebang-line-from-the-__main__.py-file.patch
new file mode 100644
index 0000000..83084ad
--- /dev/null
+++ b/0001-Remove-the-shebang-line-from-the-__main__.py-file.patch
@@ -0,0 +1,21 @@
+From 181a9f5f5b0a5dcc16512ce68408b7789bce9705 Mon Sep 17 00:00:00 2001
+From: Ben Boeckel <MathStuf at gmail.com>
+Date: Sat, 24 Jul 2010 14:21:06 -0400
+Subject: [PATCH] Remove the shebang line from the __main__.py file
+
+---
+ ranger/__main__.py |    1 -
+ 1 files changed, 0 insertions(+), 1 deletions(-)
+
+diff --git a/ranger/__main__.py b/ranger/__main__.py
+index b3a4177..4a65e06 100644
+--- a/ranger/__main__.py
++++ b/ranger/__main__.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # coding=utf-8
+ #
+ # Copyright (C) 2009, 2010  Roman Zimbelmann <romanz at lavabit.com>
+-- 
+1.7.1.1
+
diff --git a/ranger.spec b/ranger.spec
new file mode 100644
index 0000000..4cb1904
--- /dev/null
+++ b/ranger.spec
@@ -0,0 +1,58 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name:           ranger
+Version:        1.1.2
+Release:        2%{?dist}
+Summary:        A flexible console file manager
+
+Group:          Development/Languages
+License:        GPLv3+
+URL:            http://savannah.nongnu.org/projects/ranger/
+Source0:        http://nongnu.askapache.com/%{name}/releases/%{name}-%{version}.tar.gz
+# Upstreamed: https://savannah.nongnu.org/bugs/index.php?30533
+Patch100:       0001-Remove-the-shebang-line-from-the-__main__.py-file.patch
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+
+%description
+Ranger is a free console file manager that gives you greater flexibility and a
+good overview of your files without having to leave your *nix console. It
+visualizes the directory tree in two dimensions: the directory hierarchy on
+one, lists of files on the other, with a preview to the right so you know where
+you'll be going.
+
+
+%prep
+%setup -q
+%patch100 -p1 -b .remove-shebang
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING CHANGELOG README TODO
+%{_bindir}/ranger
+%{python_sitelib}/*
+%{_mandir}/man1/ranger.1.gz
+
+
+%changelog
+* Sat Jul 24 2010 Ben Boeckel <mathstuf at gmail.com> - 1.1.2-2
+- Add patch to remove shebang line
+- BR python2-devel
+
+* Fri Jul 23 2010 Ben Boeckel <mathstuf at gmail.com> - 1.1.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..abd0dc0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+37549bf2d6b9086502745730fc8fbb30  ranger-1.1.2.tar.gz


More information about the scm-commits mailing list