[python-twisted] - Added egg-info file

belegdol belegdol at fedoraproject.org
Sun Nov 7 08:52:00 UTC 2010


commit 469d9bb52e6b25fb8371697993f2ffa3f2f3d681
Author: Julian Sikorski <belegdol at gmail.com>
Date:   Sun Nov 7 09:51:23 2010 +0100

    - Added egg-info file

 PKG-INFO            |   12 ++++++++++++
 python-twisted.spec |   19 +++++++++++++++++--
 2 files changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..a411a69
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,12 @@
+Metadata-Version: 1.0
+Name: Twisted
+Version: 10.1.0
+Summary: An asynchronous networking framework written in Python
+Home-page: http://twistedmatrix.com/
+Author: Glyph Lefkowitz
+Author-email: glyph at twistedmatrix.com
+License: MIT
+Description: An extensible framework for Python programming, with special focus
+        on event-based network programming and multiprotocol integration.
+        
+Platform: UNKNOWN
diff --git a/python-twisted.spec b/python-twisted.spec
index 927197b..629da70 100644
--- a/python-twisted.spec
+++ b/python-twisted.spec
@@ -1,15 +1,19 @@
 %{!?python:%define python python}
+%{!?python_sitearch: %define python_sitearch %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Name:           %{python}-twisted
 Version:        10.1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Event-based framework for internet applications
 Group:          Development/Libraries
 License:        MIT
 URL:            http://twistedmatrix.com/
-Source:         README.fedora
+Source0:        README.fedora
+Source1:        PKG-INFO
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+BuildRequires:  python
+Requires:       python
 Requires:       %{python}-twisted-core   >= %{version}
 Requires:       %{python}-twisted-conch  >= %{version}
 Requires:       %{python}-twisted-lore   >= %{version}
@@ -38,11 +42,22 @@ Installing this package brings all Twisted sub-packages into your system.
 %setup -c -T
 install -p -m 0644 %{SOURCE0} README
 
+
+%install
+install -d $RPM_BUILD_ROOT%{python_sitearch}
+install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{python_sitearch}/Twisted-%{version}-py2.7.egg-info
+
+
 %files
 %defattr(-,root,root,-)
 %doc README
+%{python_sitearch}/Twisted-%{version}-py2.7.egg-info
+
 
 %changelog
+* Sun Nov 07 2010 Julian Sikorski <belegdol at fedoraproject.org> - 10.1.0-2
+- Added egg-info file
+
 * Tue Sep 21 2010 Julian Sikorski <belegdol at fedoraproject.org> - 10.1.0-1
 - Updated to 10.1.0
 - Switched to macros for versioned dependencies


More information about the scm-commits mailing list