]> git.pld-linux.org Git - packages/python-egenix-mx-base.git/blobdiff - python-egenix-mx-base.spec
- release 9 for rebuild with python 2.4
[packages/python-egenix-mx-base.git] / python-egenix-mx-base.spec
index dfba6592768474cb53a45d5ce13688aae634161a..c63b7829930739118e9ad693995ede73a2099a02 100644 (file)
@@ -1,26 +1,27 @@
-%include       /usr/lib/rpm/macros.python
+# TODO make examples package
 
-%define module egenix-mx-base
-%define mxdir %{py_sitedir}/mx
+%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.0.3
-Release:       1
+Version:       2.0.5
+Release:       9
 License:       distributable
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-Source0:       http://www.lemburg.com/python/%{module}-%{version}.tar.gz
-URL:           http://www.lemburg.com/python/eGenix-mx-Extensions.html
-BuildRequires: python-devel >= 2.2
-BuildRequires: python-modules >= 2.2
+Group:         Libraries/Python
+# 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
-%requires_eq   python
+%pyrequires_eq python
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,17 +39,23 @@ Pythonie.
 
 Ten pakiet zawiera podstawowe modu³y wymagane przez inne pakiety.
 
+%package devel
+Summary:       Basic header files for eGenix extensions
+Summary(pl):   Podstawowe pliki nag³ówkowe dla rozszerzeñ eGenix
+Group:         Development/Languages/Python
+
+%description devel
+Basic header files for eGenix extensions.
+
+%description devel -l pl
+Podstawowe pliki nag³ówkowe dla rozszerzeñ eGenix.
+
 %package -n python-mx-DateTime
 Summary:       Date and time Python extension
 Summary(pl):   Obiekty daty i czasu dla jêzyka Python
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-%requires_eq   python
-Requires:      python-%{module} = %{version}
+Group:         Libraries/Python
+%pyrequires_eq python
+Requires:      python-%{module} = %{version}-%{release}
 
 %description -n python-mx-DateTime
 mxDateTime is an extension package that provides three new object
@@ -69,7 +76,7 @@ build upon. This is especially interesting for database applications
 which often have to deal with date/time values (the mxODBC package is
 one example of an extension using this interface).
 
-%description -l pl -n python-mx-DateTime
+%description -n python-mx-DateTime -l pl
 mxDateTime jest pakietem modu³ów, które definiuj± trzy nowe klasy -
 DateTime, DateTimeDelta oraz RelativeDateTime. Umo¿liwiaj± one
 przechowywanie oraz operowanie na dacie i czasie w bardziej naturalny
@@ -88,17 +95,24 @@ innych rozszerze
 interesuj±ca w przypadku aplikacji bazodanowych, które operuj± na
 dacie i czasie.
 
+%package -n python-mx-DateTime-devel
+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}-%{release}
+
+%description -n python-mx-DateTime-devel
+Headers for date and time Python extension.
+
+%description -n python-mx-DateTime-devel -l pl
+Nag³ówki dla modu³ów daty i czasu.
+
 %package -n python-mx-TextTools
 Summary:       Efficient text manipulation extensions for Python
 Summary(pl):   Wydajne manipulowanie tekstem w jêzyku Python
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-%requires_eq   python
-Requires:      python-%{module} = %{version}
+Group:         Libraries/Python
+%pyrequires_eq python
+Requires:      python-%{module} = %{version}-%{release}
 
 %description -n python-mx-TextTools
 mxTextTools is an extension package for Python that provides several
@@ -114,7 +128,7 @@ Applications include parsing structured text, finding and extracting
 text (either exact or using translation tables) and recombining
 strings to form new text.
 
-%description -l pl -n python-mx-TextTools
+%description -n python-mx-TextTools -l pl
 Pakiet mxTextTools dostarcza szereg u¿ytecznych typów i funkcji, które
 implementuj± wysokiej jako¶ci algorytmy do wyszukiwania i manipulacji
 tekstu. Programista dostaje wydajne (na poziomie kodu napisanego w
@@ -128,14 +142,9 @@ manipulowa
 %package -n python-mx-Stack
 Summary:       Stack implementation for Python
 Summary(pl):   Implementacja stosu dla jêzyka Python
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-%requires_eq   python
-Requires:      python-%{module} = %{version}
+Group:         Libraries/Python
+%pyrequires_eq python
+Requires:      python-%{module} = %{version}-%{release}
 
 %description -n python-mx-Stack
 mxStack is an extension package that provides a new object type called
@@ -143,7 +152,7 @@ Stack. It works much like what you would expect from such a type,
 having .push() and .pop() methods and focusses on obtaining maximum
 speed at low memory costs.
 
-%description -l pl -n python-mx-Stack
+%description -n python-mx-Stack -l pl
 Pakiet mxStack zawiera implementacjê stosu, która zawiera typowe
 metody takie jak pop() czy push(). Mechanizm zosta³ napisany tak by,
 przy minimalnym zu¿yciu pamiêci, by³ bardzo wydajny.
@@ -151,14 +160,9 @@ przy minimalnym zu
 %package -n python-mx-Queue
 Summary:       Queue implementation for Python
 Summary(pl):   Implementacja kolejki dla jêzyka Python
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-%requires_eq   python
-Requires:      python-%{module} = %{version}
+Group:         Libraries/Python
+%pyrequires_eq python
+Requires:      python-%{module} = %{version}-%{release}
 
 %description -n python-mx-Queue
 mxQueue is an extension package that provides a new object type called
@@ -166,7 +170,7 @@ Queue. It works much like what you would expect from such a type,
 having .push() and .pop() methods and focusses on obtaining maximum
 speed at low memory costs.
 
-%description -l pl -n python-mx-Queue
+%description -n python-mx-Queue -l pl
 Pakiet mxQueue zawiera implementacjê kolejki, która zawiera typowe
 metody takie jak pop() czy push(). Mechanizm zosta³ napisany tak by,
 przy minimalnym zu¿yciu pamiêci, by³ bardzo wydajny.
@@ -174,14 +178,9 @@ przy minimalnym zu
 %package -n python-mx-Tools
 Summary:       Some handy functions and objects which provides new builtins for Python
 Summary(pl):   Kilka u¿ytecznych klas i funkcji w postaci wew. mechanizmów Pythona
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-%requires_eq   python
-Requires:      python-%{module} = %{version}
+Group:         Libraries/Python
+%pyrequires_eq python
+Requires:      python-%{module} = %{version}-%{release}
 
 %description -n python-mx-Tools
 mxTools is an extension package that includes a collection of handy
@@ -195,7 +194,7 @@ line import mx.Tools.NewBuiltins to your site.py script and they will
 be available to all users at your site as if they were installed in
 the Python interpreter itself.
 
-%description -l pl -n python-mx-Tools
+%description -n python-mx-Tools -l pl
 Pakiet mxTools zawiera kilka u¿ytecznych klas i funkcji, które daj±
 wiêcej mo¿liwo¶ci programi¶cie, w postaci wewnêtrznych mechanizmów
 jêzyka Python.
@@ -211,14 +210,9 @@ j
 %package -n python-mx-Proxy
 Summary:       Support for Bastion like implementations for Python
 Summary(pl):   Wsparcie dla implementacji typu Bastion dla jêzyka Python
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-%requires_eq   python
-Requires:      python-%{module} = %{version}
+Group:         Libraries/Python
+%pyrequires_eq python
+Requires:      python-%{module} = %{version}-%{release}
 
 %description -n python-mx-Proxy
 mxProxy is an extension package that provides a new type that is
@@ -235,7 +229,7 @@ The latest version adds a very interesting new feature: weak
 references which help you work with circular references in a way that
 doesn't cause memory leakage in a Python system.
 
-%description -l pl -n python-mx-Proxy
+%description -n python-mx-Proxy -l pl
 Pakiet mxProxy dostarcza nowe klasy, które implementuj± funkcjonalno¶æ
 typu Bastion bez potrzeby ograniczania ¶rodowiska, w którym jest
 wykonywana aplikacja.
@@ -252,14 +246,9 @@ powoduj
 %package -n python-mx-BeeBase
 Summary:       High performance construction kit for disk based indexed databases (B+Tree)
 Summary(pl):   Wysokiej jako¶ci pakiet do tworzenia indeksowanych baz danych (B+Tree)
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(es):     Desarrollo/Lenguages/Python
-Group(fr):     Development/Langues/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Group(pt):     Desenvolvimento/Línguas/Python
-%requires_eq   python
-Requires:      python-%{module} = %{version}
+Group:         Libraries/Python
+%pyrequires_eq python
+Requires:      python-%{module} = %{version}-%{release}
 
 %description -n python-mx-BeeBase
 mxBeeBase is a high performance construction kit for disk based
@@ -275,7 +264,7 @@ locking for multi process access. Indexes use a high performance
 optimized B+Tree implementation built on top of Thomas Niemann's
 Cookbook B+Tree implementation.
 
-%description -l pl -n python-mx-BeeBase
+%description -n python-mx-BeeBase -l pl
 mxBeeBase jest wysokiej jako¶ci pakietem do tworzenia indeksowanych
 baz danych. Zawiera komponenty, które mo¿na razem ³±czyæ w celu
 zbudowania w³asnej bazy. Obecny limit ilo¶ci danych wynosi 2GB (max.
@@ -289,6 +278,7 @@ wydajne B-drzewa zaimplementowane na podstawie Cookbook B+Tree Thomasa
 Newmanna.
 
 %prep
+#%%setup -q -n %{module}-%{version}.%{fn_sufix}
 %setup -q -n %{module}-%{version}
 
 %build
@@ -296,22 +286,31 @@ env CFLAGS="%{rpmcflags}" python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python setup.py install --root=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{py_incdir}/mx
+python setup.py install \
+       --root=$RPM_BUILD_ROOT \
+       --install-purelib=%{py_sitedir}
 
-gzip -9nf README mx/LICENSE mx/COPYRIGHT
+find $RPM_BUILD_ROOT%{py_sitedir} -name \*.h \
+       -exec mv {} $RPM_BUILD_ROOT%{py_incdir}/mx \;
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz mx/*.gz mx/Doc/mxLicense.html
+%doc README mx/LICENSE mx/COPYRIGHT mx/Doc/mxLicense.html
 %dir %{mxdir}
+%dir %{py_incdir}/mx
 %{mxdir}/*.py[co]
 
 %dir %{mxdir}/Misc
 %{mxdir}/Misc/*.py[co]
 
+%files devel
+%defattr(644,root,root,755)
+%{py_incdir}/mx/mxh.h
+
 %files -n python-mx-DateTime
 %defattr(644,root,root,755)
 %doc mx/DateTime/Doc/*.html
@@ -322,6 +321,10 @@ rm -rf $RPM_BUILD_ROOT
 %{mxdir}/DateTime/mxDateTime/*.py[co]
 %attr(755,root,root) %{mxdir}/DateTime/mxDateTime/*.so
 
+%files -n python-mx-DateTime-devel
+%defattr(644,root,root,755)
+%{py_incdir}/mx/mxDateTime.h
+
 %files -n python-mx-TextTools
 %defattr(644,root,root,755)
 %doc mx/TextTools/Doc/*.html
This page took 0.682175 seconds and 4 git commands to generate.