%define mxdir %{py_sitedir}/mx
Summary: eGenix mx-Extensions for Python
-Summary(pl.UTF-8): eGenix mx-Extensions dla języka Python
+Summary(pl.UTF-8): eGenix mx-Extensions dla języka Python
Name: python-%{module}
-Version: 2.0.6
-Release: 3
+Version: 3.1.1
+Release: 5
License: distributable
Group: Libraries/Python
#Source0Download: http://www.egenix.com/files/python/eGenix-mx-Extensions.html
Source0: http://www.egenix.com/files/python/%{module}-%{version}.tar.gz
-# Source0-md5: 66841151728a06f92d0b8dd2ed317a29
+# Source0-md5: d0f3b1adca33a68867bf50f000060cd6
URL: http://www.egenix.com/files/python/eGenix-mx-Extensions.html
-BuildRequires: python-devel >= 2.2.2
+BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: python-devel >= 1:2.5
BuildRequires: rpm-pythonprov
%pyrequires_eq python-libs
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%package devel
Summary: Basic header files for eGenix extensions
-Summary(pl.UTF-8): Podstawowe pliki nagłówkowe dla rozszerzeń eGenix
+Summary(pl.UTF-8): Podstawowe pliki nagłówkowe dla rozszerzeń eGenix
Group: Development/Languages/Python
Requires: %{name} = %{version}-%{release}
%package -n python-mx-BeeBase
Summary: High performance construction kit for disk based indexed databases (B+Tree)
-Summary(pl.UTF-8): Wysokiej jakości pakiet do tworzenia indeksowanych baz danych (B+Tree)
+Summary(pl.UTF-8): Wysokiej jakości pakiet do tworzenia indeksowanych baz danych (B+Tree)
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%package -n python-mx-DateTime
Summary: Date and time Python extension
-Summary(pl.UTF-8): Obiekty daty i czasu dla języka Python
+Summary(pl.UTF-8): Obiekty daty i czasu dla języka Python
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%package -n python-mx-DateTime-devel
Summary: Header file for DateTime Python extension
-Summary(pl.UTF-8): Plik nagłówkowy rozszerzenia DateTime dla Pythona
+Summary(pl.UTF-8): Plik nagłówkowy rozszerzenia DateTime dla Pythona
Group: Development/Languages/Python
Requires: %{name}-devel = %{version}-%{release}
%package -n python-mx-Proxy
Summary: Support for Bastion like implementations for Python
-Summary(pl.UTF-8): Wsparcie dla implementacji typu Bastion dla języka Python
+Summary(pl.UTF-8): Wsparcie dla implementacji typu Bastion dla języka Python
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%package -n python-mx-Queue
Summary: Queue implementation for Python
-Summary(pl.UTF-8): Implementacja kolejki dla języka Python
+Summary(pl.UTF-8): Implementacja kolejki dla języka Python
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%package -n python-mx-Stack
Summary: Stack implementation for Python
-Summary(pl.UTF-8): Implementacja stosu dla języka Python
+Summary(pl.UTF-8): Implementacja stosu dla języka Python
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%package -n python-mx-TextTools
Summary: Efficient text manipulation extensions for Python
-Summary(pl.UTF-8): Wydajne manipulowanie tekstem w języku Python
+Summary(pl.UTF-8): Wydajne manipulowanie tekstem w języku Python
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%package -n python-mx-Tools
Summary: Some handy functions and objects which provides new builtins for Python
-Summary(pl.UTF-8): Kilka użytecznych klas i funkcji w postaci wew. mechanizmów Pythona
+Summary(pl.UTF-8): Kilka użytecznych klas i funkcji w postaci wew. mechanizmów Pythona
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
widoczne dla wszystkich użytkowników tak, jak by były wbudowane w
język Python.
+%package -n python-mx-UID
+Summary: Fast Unique Identifiers for Python
+Summary(pl.UTF-8): Szybkie unikalne identyfikatory (UID) dla Pythona
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-mx-UID
+UID is an extension package that provides a fast mechanism for
+generating unique identification strings (UIDs).
+
+%description -n python-mx-UID -l pl.UTF-8
+Pakiet UID dostarcza szybki mechanizm do generowania unikalnych ciągów
+znaków (UID).
+
+%package -n python-mx-URL
+Summary: Flexible URL Data-Type for Python
+Summary(pl.UTF-8): Elastyczny typ danych URL dla Pythona
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-mx-URL
+URL package provides a new datatype for storing and manipulating URL
+values as well as a few helpers related to URL building, encoding and
+decoding.
+
+%description -n python-mx-URL -l pl.UTF-8
+Pakiet URL dostarcza nowy typ danych do przechowywania i manipulowania
+wartościami URL jak również kilka pomocniczych elementów służących do
+tworzenia, kodowania i dekodowania adresów URL.
+
%prep
%setup -q -n %{module}-%{version}
%build
-env CFLAGS="%{rpmcflags}" python setup.py build
+env CFLAGS="%{rpmcflags}" %py_build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{py_incdir}/mx
-python setup.py install \
- --root=$RPM_BUILD_ROOT \
+%py_install \
--install-purelib=%{py_sitedir}
find $RPM_BUILD_ROOT%{py_sitedir} -name \*.h \
%files
%defattr(644,root,root,755)
-%doc README mx/LICENSE mx/COPYRIGHT mx/Doc/mxLicense.html
+%doc README mx/LICENSE mx/COPYRIGHT mx/Doc/*License.txt
%dir %{mxdir}
%dir %{py_incdir}/mx
%{mxdir}/*.py[co]
%dir %{mxdir}/Misc
%{mxdir}/Misc/*.py[co]
+%{py_sitedir}/*.egg-info
%files devel
%defattr(644,root,root,755)
%files -n python-mx-BeeBase
%defattr(644,root,root,755)
-# this COPYRIGHT differs from others
-%doc mx/BeeBase/Doc/*.html mx/BeeBase/COPYRIGHT
+%doc mx/BeeBase/Doc/*.pdf
%dir %{mxdir}/BeeBase
%{mxdir}/BeeBase/*.py[co]
%dir %{mxdir}/BeeBase/mxBeeBase
%files -n python-mx-DateTime
%defattr(644,root,root,755)
-%doc mx/DateTime/Doc/*.html
+%doc mx/DateTime/Doc/*.pdf
%dir %{mxdir}/DateTime
%{mxdir}/DateTime/*.py[co]
%dir %{mxdir}/DateTime/mxDateTime
%files -n python-mx-Proxy
%defattr(644,root,root,755)
-%doc mx/Proxy/Doc/*.html
+%doc mx/Proxy/Doc/*.pdf
%dir %{mxdir}/Proxy
%{mxdir}/Proxy/*.py[co]
%dir %{mxdir}/Proxy/mxProxy
%files -n python-mx-Queue
%defattr(644,root,root,755)
-%doc mx/Queue/Doc/*.html
+%doc mx/Queue/Doc/*.pdf
%dir %{mxdir}/Queue
%{mxdir}/Queue/*.py[co]
%dir %{mxdir}/Queue/mxQueue
%files -n python-mx-Stack
%defattr(644,root,root,755)
-%doc mx/Stack/Doc/*.html
+%doc mx/Stack/Doc/*.pdf
%dir %{mxdir}/Stack
%{mxdir}/Stack/*.py[co]
%dir %{mxdir}/Stack/mxStack
%files -n python-mx-TextTools
%defattr(644,root,root,755)
-%doc mx/TextTools/Doc/*.html
+%doc mx/TextTools/Doc/*.pdf
%dir %{mxdir}/TextTools
%{mxdir}/TextTools/*.py[co]
%dir %{mxdir}/TextTools/mxTextTools
%files -n python-mx-Tools
%defattr(644,root,root,755)
-%doc mx/Tools/Doc/*.html
+%doc mx/Tools/Doc/*.pdf
%dir %{mxdir}/Tools
%{mxdir}/Tools/*.py[co]
%dir %{mxdir}/Tools/mxTools
# -devel if needed
#%{py_incdir}/mx/mxTools.h
+
+%files -n python-mx-UID
+%defattr(644,root,root,755)
+%doc mx/UID/Doc/*.pdf
+%dir %{mxdir}/UID
+%{mxdir}/UID/*.py[co]
+%dir %{mxdir}/UID/mxUID
+%{mxdir}/UID/mxUID/*.py[co]
+%attr(755,root,root) %{mxdir}/UID/mxUID/*.so
+
+# -devel if needed
+#%{py_incdir}/mx/mxUID.h
+
+%files -n python-mx-URL
+%defattr(644,root,root,755)
+%doc mx/URL/Doc/*.pdf
+%dir %{mxdir}/URL
+%{mxdir}/URL/*.py[co]
+%dir %{mxdir}/URL/mxURL
+%{mxdir}/URL/mxURL/*.py[co]
+%attr(755,root,root) %{mxdir}/URL/mxURL/*.so
+
+# -devel if needed
+#%{py_incdir}/mx/mxURL.h