[pytorctl] Initial import (#756435).

jorti jorti at fedoraproject.org
Thu Apr 19 12:41:30 UTC 2012


commit d03298b0a86a0675b0780b9de8cdcb4eab280c32
Author: Juan Orti Alcaine <j.orti.alcaine at gmail.com>
Date:   Thu Apr 19 14:41:16 2012 +0200

    Initial import (#756435).

 .gitignore    |    1 +
 pytorctl.spec |   87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a0b60a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pytorctl-0-20111213git.tar.gz
diff --git a/pytorctl.spec b/pytorctl.spec
new file mode 100644
index 0000000..fb3822b
--- /dev/null
+++ b/pytorctl.spec
@@ -0,0 +1,87 @@
+%if 0%{?rhel} <= 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
+%global commit 3de91767e208d1642a8cf89dc1b645f637abaf8e
+%global date 20111213
+%global libname TorCtl
+
+Name:           pytorctl
+Version:        0
+Release:        0.9.%{date}git%{?dist}
+Summary:        TorCtl Python bindings
+
+Group:          Development/Libraries
+License:        BSD
+URL:            https://gitweb.torproject.org/pytorctl.git
+# git clone git://git.torproject.org/pytorctl.git
+# cd pytorctl; git archive --format=tar --prefix=pytorctl/ %%{commit} | gzip > pytorctl-%%{version}-%%{date}git.tar.gz
+Source0:        %{name}-%{version}-%{date}git.tar.gz
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+
+%description
+Python bindings for controlling the Tor router
+
+
+%prep
+%setup -q -n %{name}
+
+
+%build
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{python_sitelib}/%{libname}
+install -m 0644 *.py %{buildroot}%{python_sitelib}/%{libname}
+# Remove shebang from libraries
+for lib in %{buildroot}%{python_sitelib}/%{libname}/*.py; do
+ sed '/#!\/usr\/bin\/python/d' $lib > $lib.new &&
+ touch -r $lib $lib.new &&
+ mv $lib.new $lib
+done
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README
+%{python_sitelib}/%{libname}
+
+
+%changelog
+* Thu Apr 12 2012 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.9.20111213git
+- Change variables to global
+- Drop support for old Fedora releases in python_sitelib definition
+
+* Wed Dec 21 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.8.20111213git
+- Remove noarch exception for EPEL
+- Preserve timestamps
+- Remove python shebang from libraries
+
+* Tue Dec 13 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.7.20111213git
+- Update source code to last commit
+
+* Wed Nov 23 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.6.20110927git
+- Make scripts executable to fix rpmlint errors
+
+* Mon Oct 10 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.5.20110927git
+- minor fixes
+
+* Sat Oct 08 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.4.20110927git
+- fix rpmlint errors
+
+* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.3.20110927git
+- noarch exception for Suse
+
+* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.2.20110927git
+- noarch exception for EPEL
+
+* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 0-0.1.20110927git
+- First edition of the package
diff --git a/sources b/sources
index e69de29..62daebd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bc5bda1c91c2edcf142dfe2ea7fbff05  pytorctl-0-20111213git.tar.gz


More information about the scm-commits mailing list