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@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 - 10.1.0-2 +- Added egg-info file + * Tue Sep 21 2010 Julian Sikorski - 10.1.0-1 - Updated to 10.1.0 - Switched to macros for versioned dependencies