[python-libturpial] Initial import (#1036297).

Edwind Richzendy Contreras Soto richzendy at fedoraproject.org
Tue Dec 17 19:52:30 UTC 2013


commit f9be1cf70bf5d8b0a38a38b26f012cc7c7bc87bc
Author: Edwind Contreras <Richzendy at gmail.com>
Date:   Tue Dec 17 15:20:07 2013 -0600

    Initial import (#1036297).

 .gitignore             |    1 +
 http.py.patch          |   10 ++++++++
 python-libturpial.spec |   61 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..88a2394 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libturpial-1.0.tar.gz
diff --git a/http.py.patch b/http.py.patch
new file mode 100644
index 0000000..79c62cf
--- /dev/null
+++ b/http.py.patch
@@ -0,0 +1,10 @@
+--- libturpial-1.0-orig/libturpial/lib/http.py	2013-07-14 16:25:31.000000000 -0600
++++ libturpial-1.0/libturpial/lib/http.py	2013-12-10 13:09:11.315427671 -0600
+@@ -69,6 +69,7 @@
+             basedir = os.path.dirname(__file__)
+             self.ca_certs_file = os.path.realpath(os.path.join(basedir,
+                 '..', 'certs', 'cacert.pem'))
++	    self.ca_certs_file = '/etc/pki/tls/certs/ca-bundle.crt'
+ 
+     def __validate_ssl_cert(self, request):
+         req = request.split('://')[1]
diff --git a/python-libturpial.spec b/python-libturpial.spec
new file mode 100644
index 0000000..1e7a6e3
--- /dev/null
+++ b/python-libturpial.spec
@@ -0,0 +1,61 @@
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+Name:           python-libturpial
+Version:        1.0
+Release:        8%{?dist}
+Summary:        Micro blogging python library, needed for turpial (twitter client)
+Group:          Applications/Internet
+License:        GPLv3
+URL:            http://turpial.org.ve
+Source0:        http://files.turpial.org.ve/sources/stable/libturpial-%{version}.tar.gz
+Patch0:         http.py.patch
+BuildRequires:  python-setuptools,python2-devel
+Requires:       python-oauth,python-simplejson,python-requests,ca-certificates
+BuildArch:      noarch
+
+%description
+libturpial is a library that handles multiple micro blogging protocols. It 
+implements a lot of features and aims to support all the features for each 
+protocol. This library is the back-end used for Turpial.
+
+%prep
+%setup -q -n libturpial-%{version} 
+%patch0 -p1
+sed -i 's|./|'"%{_pkgdocdir}"'|' setup.py
+
+%build 
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install --root %{buildroot}
+find %{buildroot} \( -not -name '*.py*' -a -type f \) -exec chmod 644 {}  \;
+rm %{buildroot}/%{python_sitelib}/libturpial/certs/cacert.pem
+chmod 0644 ChangeLog AUTHORS COPYING
+
+%files  
+%doc ChangeLog AUTHORS COPYING
+%{python_sitelib}/*
+
+%changelog
+* Mon Dec 16 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-8
+- Better choice to fix perms on doc files - https://bugzilla.redhat.com/show_bug.cgi?id=1036297#c19
+
+* Mon Dec 16 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-7
+- Executable permissions on doc files removed - https://bugzilla.redhat.com/show_bug.cgi?id=1036297#c16
+
+* Fri Dec 13 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-6
+- improvements from https://bugzilla.redhat.com/show_bug.cgi?id=1036297#c14
+
+* Thu Dec 12 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-5
+- Compatible with http://fedoraproject.org/wiki/Changes/UnversionedDocdirs
+
+* Wed Dec 11 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-4
+- cert file removed, thanks to https://bugzilla.redhat.com/show_bug.cgi?id=1036297#c11
+
+* Tue Dec 10 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-3
+- improvements from https://bugzilla.redhat.com/show_bug.cgi?id=1036297#c6 and https://bugzilla.redhat.com/show_bug.cgi?id=1036297#c7
+
+* Fri Dec 06 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-2
+- comments applied (https://bugzilla.redhat.com/show_bug.cgi?id=1036297#c3)
+
+* Sat Nov 30 2013 Richzendy <richzendy at fedoraproject.org> - 1.0-1
+- Initial package 
diff --git a/sources b/sources
index e69de29..926ccb5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+858c227b8069e8853d0fcbd519f997d1  libturpial-1.0.tar.gz


More information about the scm-commits mailing list