-
-%include /usr/lib/rpm/macros.python
-
-Summary: A conversation server built using Twisted.
-Summary(pl): Serwer konwersacyjny tworzony przy u¿yciu ¶rodowiska Twisted.
+Summary: A conversation server built using Twisted
+Summary(pl.UTF-8): Serwer konwersacyjny tworzony przy użyciu środowiska Twisted
Name: Quotient
-Version: 0.8.8
-Release: 1
+Version: 0.9.1
+Release: 4
License: LGPL
Group: Applications/Communications
-Source0: http://dl.sourceforge.net/divmod/%{name}-%{version}.tar.gz
-# Source0-md5: 650cdb4ae2b59a0f432e49804f2923a9
+Source0: http://www.divmod.org/users/release/divmod/%{name}-%{version}.tar.gz
+# Source0-md5: 406fdd2160843bc3be43486b8e30273f
URL: http://www.divmod.org/Home/
-BuildRequires: python-devel >= 2.3
+BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: python-devel >= 1:2.3
%pyrequires_eq python-modules
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: python >= 2.3
-Requires: python-Twisted >= 1.1.1
-Requires: python-Lupy >= 0.1.5.5
+Requires: python-Imaging >= 1.1.4
+Requires: python-Lupy >= 0.2.1
+Requires: python-Twisted >= 1.3.0
+Requires: python-atop = %{version}-%{release}
+Requires: python-nevow >= 0.2.0
+Requires: python-pyOpenSSL
Requires: spambayes >= 1.0a7-0.2
-Requires: python-Imaging
-Requires: python-nevow >= %{version}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Quotient's primary function is a full-featured email platform, which can act as
-an IMAP4, POP3, SMTP, server and client. It also has a seamlessly integrated
-web-mail interface and spam filtering using Spambayes, which is trainable
-either through the web UI or through IMAP.
+Quotient's primary function is a full-featured email platform, which
+can act as an IMAP4, POP3, SMTP, server and client. It also has a
+seamlessly integrated web-mail interface and spam filtering using
+Spambayes, which is trainable either through the web UI or through
+IMAP.
In future Quotient will be a person-centric application server, and a
-simulation of your personal reality. It keeps track of your communications and
-enables you to effortlessly prioritize your commitments.
-
-%description -l pl
-Obecnie g³ówn± funkcj± Quotient jest bycie w pe³ni wyposa¿on± platform± email,
-spe³niaj±c± zadania klientów oraz serwerów protoko³ów IMAP4, POP3 i SMTP. Quotient
-posiada te¿ zintegrowany interfejs odbioru poczty poprzez www oraz filtr niechcianej
-poczty u¿ywaj±cy bayesowskich technik wykrywania niechcianych wiadomo¶ci, który mo¿e
-byæ rozszerzany poprzez interfejs www lub IMAP.
-
-W przysz³o¶ci Quotient rozwinie siê do nakierowanego na osobê serwera aplikacji.
-Quotient bêdzie ¶ledzi³ i utrzymywa³ informacje o Twoich kontaktach oraz umo¿liwia³
-³atwe zarz±dzanie stopniem zaanga¿owania.
-
-%package -n python-nevow
-Summary: Web application templating system.
-Summary(pl): System szablonów do tworzenia stron www.
-Group: Libraries/Python
-Requires: python-atop
-Requires: python-Twisted >= 1.1.1
-
-%description -n python-nevow
-Nevow is a next-generation web application templating system, based on the
-ideas developed in the Twisted Woven package. Its main focus is on separating
-the HTML template from both the business logic and the display logic, while
-allowing the programmer to write pure Python code as much as possible. It
-separates your code into 'data' and 'render' functions, a simplified
-implementation of traditional MVC. It has various parts which can be used
-individually or as a whole, integrated web solution:
-
-* XHTML templates: contain no programming logic, only nodes tagged with nevow
- attributes,
-* data/render methods: simplified MVC,
-* stan: An s-expression-like syntax for expressing xml in pure python,
-* formless: For describing the types of objects which may be passed to methods
- of your classes, validating and coercing string input from either web or
- command-line sources, and calling your methods automatically once validation
- passes,
-* freeform: For rendering web forms based on formless type descriptions,
- accepting form posts and passing them to formless validators, and rendering
- error forms in the event validation fails,
-* livepage: Cross-browser JavaScript glue for sending client side events to the
- server and server side events to the client after the page has loaded,
- without causing the entire page to refresh.
-
-%description -n python-nevow -l pl
-Nevow jest systemem szblonów wspomagaj±cym tworzenie aplikacji webowych,
-bazuj±cym na pomys³ach zawartych w rozwijanym w ramach projektu Twisted
-pakiecie Woven. G³ównym zadaniem Nevow jest umo¿liwienie deweloperowi
-odseparowanie kodu szablonu HTML od logiki biznesowej i logiki prezentacyjnej
-tworzonego systemu. Nevow rozdziela Twój kod na funkcje zarz±dzania danymi oraz
-ich wy¶wietlania, co jest uproszczon± wersj± wzroca projektowego MVC. Na Nevow
-sk³ada siê zbiór ró¿nych funkcjonalno¶ci, które mog± byæ u¿ywane osobno albo
-jako ca³o¶ciwe rozwi±zanie wspomagaj±ce tworzenie aplikacji webowych:
-
-* szablony XHTML: nie zawieraj± logiki programistycznej, jedynie wierzcho³ki
- tagowane atrybutami przestrzeni nazw nevow,
-* funkcje zarz±dzania danymi i wy¶wietlaniem: uproszczenie wzorca projektowego
- Model-Widok-Kontroler (MVC),
-* stan: sk³adnia wyra¿ania elementów jêzyka xml w czystym pythonie w oparciu o
- s-wyra¿enia,
-* formless: opisywanie typów obiektów mog±cych byæ argumentami tworzonych przez
- Ciebie metod klas, weryfikacji i poprawiania znakowych danych wej¶ciowych od
- klientów www lub innych ¼róde³ oraz automatyczne wywo³ywanie Twoich metod po
- poprawnej weryfikacji,
-* freeform: renderowanie formularzy HTML oparte o opisy typów formless,
- akceptacja formularzy dostarczonych przez klienta, analiza ich zawarto¶ci w
- oparciu o mechanizm weryfikatorów formless oraz tworzenie komunikatów o
- b³êdach podczas nieudanej weryfikacji formularza,
-* livepage: miêdzyplatformowy "klej" JavaScript umo¿liwiaj±cy przesy³anie
- efektów ubocznych pracy klienta do serwera i odwrotnie po za³adowaniu strony
- bez konieczno¶ci jej od¶wie¿ania.
+simulation of your personal reality. It keeps track of your
+communications and enables you to effortlessly prioritize your
+commitments.
+
+%description -l pl.UTF-8
+Obecnie główną funkcją Quotient jest bycie w pełni wyposażoną
+platformą email, spełniającą zadania klientów oraz serwerów protokołów
+IMAP4, POP3 i SMTP. Quotient posiada też zintegrowany interfejs
+odbioru poczty poprzez WWW oraz filtr niechcianej poczty używający
+bayesowskich technik wykrywania niechcianych wiadomości, który może
+być rozszerzany poprzez interfejs WWW lub IMAP.
+
+W przyszłości Quotient rozwinie się do nakierowanego na osobę serwera
+aplikacji. Quotient będzie śledził i utrzymywał informacje o
+kontaktach oraz umożliwiał łatwe zarządzanie stopniem zaangażowania.
%package -n python-atop
-Summary: A simple transactional object database built on Berkley DB.
-Summary(pl): Prosta transakcyjna obiektowa baza danych oparta o Berkley DB.
+Summary: A simple transactional object database built on Berkeley DB
+Summary(pl.UTF-8): Prosta transakcyjna obiektowa baza danych oparta o Berkeley DB
Group: Libraries/Python
-Requires: python-Twisted >= 1.1.1
+Requires: python-Twisted >= 1.3.0
Requires: python-bsddb
%description -n python-atop
-ATOP, the Atomic Transactional Object Persistor, is a Python object database
-implemented atop the Berkeley DB and bsddb python module, with functional
-similarities to other python packages such as ZODB and COG.
-
-Atop was designed in support of the Quotient messaging server. The primary
-requirement was for a low-latency data store that was still reliable and
-transactional, and still amenable to on-the-fly upgrading and rapid code
-iterations.
-
-%description -n python-atop -l pl
-ATOP (Atomic Transactional Object Persistor) jest obiektow± baz± danych implementuj±c±
-interfejsy Berkeley DB i bsddb, z funkcjonalno¶ci± podobn± do innych pakietów
-pythona takich jak ZODB i COG.
-
-Atop zosta³ rozwiniêty jako czê¶æ serwera komunikacyjnego Quotient.
-
+ATOP, the Atomic Transactional Object Persistor, is a Python object
+database implemented atop the Berkeley DB and bsddb python module,
+with functional similarities to other python packages such as ZODB and
+COG.
+
+Atop was designed in support of the Quotient messaging server. The
+primary requirement was for a low-latency data store that was still
+reliable and transactional, and still amenable to on-the-fly upgrading
+and rapid code iterations.
+
+%description -n python-atop -l pl.UTF-8
+ATOP (Atomic Transactional Object Persistor) jest obiektową bazą
+danych implementującą interfejsy Berkeley DB i bsddb, z
+funkcjonalnością podobną do innych pakietów pythona takich jak ZODB i
+COG.
+
+Atop został rozwinięty jako część serwera komunikacyjnego Quotient.
+
+%package doc
+Summary: Documentation for Quotient conversation server
+Summary(pl.UTF-8): Dokumentacja dla serwera komunikacyjnego Quotient
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains documentation files for Quotient conversation
+server.
+
+%description doc -l pl.UTF-8
+Pakiet zawierający dokumentację dla serwera komunikacyjnego Quotient.
+
+%package utils
+Summary: Tools for Quotient conversation server
+Summary(pl.UTF-8): Programy narzędziowe dla serwera komunikacyjnego Quotient
+Group: Applications/Communications
+Requires: %{name} = %{version}-%{release}
+
+%description utils
+This package contains tools for Quotient conversation server.
+
+%description utils -l pl.UTF-8
+Pakiet zawierający programy narzędziowe dla serwera komunikacyjnego
+Quotient.
+
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%build
python setup.py build_ext
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{py_sitedir}
+install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_datadir}/quotient}
-python setup.py install \
- --root=$RPM_BUILD_ROOT \
- --install-lib=%{py_sitedir} \
+%py_install \
+ --install-lib=%{py_sitescriptdir} \
--optimize=2
-find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm {} \;
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
+
+cp -a tools/* admin $RPM_BUILD_ROOT%{_datadir}/quotient
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README doc
-%{py_sitedir}/quotient
+%doc README
+%{py_sitescriptdir}/quotient
-%files -n python-nevow
+%files -n python-atop
%defattr(644,root,root,755)
-%{py_sitedir}/nevow
+%{py_sitescriptdir}/atop
-%files -n python-atop
+%files doc
+%defattr(644,root,root,755)
+%doc doc/*
+
+%files utils
%defattr(644,root,root,755)
-%{py_sitedir}/atop
+%{_datadir}/quotient