# TODO make examples package
-%include /usr/lib/rpm/macros.python
-%define module egenix-mx-base
-%define mxdir %{py_sitedir}/mx
-%define beta_num 5
-%define fn_sufix 0b%{beta_num}
+%define module egenix-mx-base
+%define mxdir %{py_sitedir}/mx
+#%%define beta_num 5
+#%%define fn_sufix 0b%{beta_num}
Summary: eGenix mx-Extensions for Python
Summary(pl): eGenix mx-Extensions dla jêzyka Python
Name: python-%{module}
-Version: 2.1
-Release: %{fn_sufix}.1
+Version: 2.0.5
+Release: 9
License: distributable
Group: Libraries/Python
-# Source0: http://www.lemburg.com/python/%{module}-%{version}.tar.gz
-Source0: http://www.egenix.com/files/python/%{module}-%{version}.%{fn_sufix}.tar.gz
+# Source0: http://www.egenix.com/files/python/%{module}-%{version}.%{fn_sufix}.tar.gz
+Source0: http://www.egenix.com/files/python/%{module}-%{version}.tar.gz
+# Source0-md5: a793a8fd2d5f646a2fb683d2d967a16b
# URL: http://www.lemburg.com/python/eGenix-mx-Extensions.html
URL: http://www.egenix.com/mailman-archives/egenix-users/2002-August/000078.html
+BuildRequires: python
BuildRequires: python-devel >= 2.2.2
BuildRequires: python-modules >= 2.2.2
BuildRequires: rpm-pythonprov
Summary(pl): Obiekty daty i czasu dla jêzyka Python
Group: Libraries/Python
%pyrequires_eq python
-Requires: python-%{module} = %{version}
+Requires: python-%{module} = %{version}-%{release}
%description -n python-mx-DateTime
mxDateTime is an extension package that provides three new object
Summary: Headers for date and time Python extension
Summary(pl): Nag³ówki modu³ów daty i czasu
Group: Development/Languages/Python
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description -n python-mx-DateTime-devel
Headers for date and time Python extension.
Summary(pl): Wydajne manipulowanie tekstem w jêzyku Python
Group: Libraries/Python
%pyrequires_eq python
-Requires: python-%{module} = %{version}
+Requires: python-%{module} = %{version}-%{release}
%description -n python-mx-TextTools
mxTextTools is an extension package for Python that provides several
Summary(pl): Implementacja stosu dla jêzyka Python
Group: Libraries/Python
%pyrequires_eq python
-Requires: python-%{module} = %{version}
+Requires: python-%{module} = %{version}-%{release}
%description -n python-mx-Stack
mxStack is an extension package that provides a new object type called
Summary(pl): Implementacja kolejki dla jêzyka Python
Group: Libraries/Python
%pyrequires_eq python
-Requires: python-%{module} = %{version}
+Requires: python-%{module} = %{version}-%{release}
%description -n python-mx-Queue
mxQueue is an extension package that provides a new object type called
Summary(pl): Kilka u¿ytecznych klas i funkcji w postaci wew. mechanizmów Pythona
Group: Libraries/Python
%pyrequires_eq python
-Requires: python-%{module} = %{version}
+Requires: python-%{module} = %{version}-%{release}
%description -n python-mx-Tools
mxTools is an extension package that includes a collection of handy
Summary(pl): Wsparcie dla implementacji typu Bastion dla jêzyka Python
Group: Libraries/Python
%pyrequires_eq python
-Requires: python-%{module} = %{version}
+Requires: python-%{module} = %{version}-%{release}
%description -n python-mx-Proxy
mxProxy is an extension package that provides a new type that is
Summary(pl): Wysokiej jako¶ci pakiet do tworzenia indeksowanych baz danych (B+Tree)
Group: Libraries/Python
%pyrequires_eq python
-Requires: python-%{module} = %{version}
+Requires: python-%{module} = %{version}-%{release}
%description -n python-mx-BeeBase
mxBeeBase is a high performance construction kit for disk based
Newmanna.
%prep
-%setup -q -n %{module}-%{version}.%{fn_sufix}
+#%%setup -q -n %{module}-%{version}.%{fn_sufix}
+%setup -q -n %{module}-%{version}
%build
env CFLAGS="%{rpmcflags}" python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{py_incdir}/mx
-python setup.py install --root=$RPM_BUILD_ROOT
+python setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --install-purelib=%{py_sitedir}
+
find $RPM_BUILD_ROOT%{py_sitedir} -name \*.h \
-exec mv {} $RPM_BUILD_ROOT%{py_incdir}/mx \;