]> git.pld-linux.org Git - packages/dbmail.git/blobdiff - dbmail.spec
- tabs in preamble
[packages/dbmail.git] / dbmail.spec
index 6bc5dca61bb818474e26f4ff96a27ac69fff8a08..a29ab8472160c5cc98137ebcff846cc138f6b64f 100644 (file)
@@ -1,72 +1,89 @@
-# TODO: bcond for mysql
+# TODO:
+#   - bcond for mysql
+#   - add separate user/group
+#   - add subpackages and init / rc-inetd scripts
+#     for dbmail-{pop3,imap,lmtpd}
+#   - add cronjob for dbmail-maintenance
 Summary:       Collection of programs for storing and retrieving mail from a SQL database
-#Summary(pl):  
+Summary(pl.UTF-8):     Zestaw programów do zapisywania i odtwarzania poczty z bazy danych SQL
 Name:          dbmail
-Version:       2.0
-%define _rc    rc5
-Release:       0.%{_rc}.4
+Version:       2.0.1
+Release:       1
 License:       GPL v2
 Group:         Networking/Daemons
-Source0:       http://dbmail.org/tgz/%{name}-%{version}%{_rc}.tgz
-# Source0-md5: f3cca8eb615af565a388069c1ab68f08
+Source0:       http://dbmail.org/download/%{name}-%{version}.tgz
+# Source0-md5: 9499c25c977e44777364a9696d8b1b48
 URL:           http://www.dbman.org/
+BuildRequires: autoconf
 BuildRequires: postgresql-devel
-#Requires(pre,post):   -
-#Requires(preun):      -
-#Requires(postun):     -
 Requires:      postgresql
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-DBMAIL is a collection of programs that enables email to be
-stored in and retrieved from a database.
+DBMAIL is a collection of programs that enables email to be stored in
+and retrieved from a database.
 
 Why is it usefull?
 ==================
 Well, for me it's usefull because a number of reasons.
-- it enables me to create mailboxes without the need of systemusers.
-- mail is more effeciently stored and therefore it can be inserted
-  an retrieved much faster dan any regular system (DBmail is currently
-  able to retrieve aprox. 250 mail messages per second)
-- it's more expandable. A database is much easier to access than
+- It enables me to create mailboxes without the need of system users.
+- Mail is more effeciently stored and therefore it can be inserted
+  an retrieved much faster than any regular system (DBmail is
+  currently able to retrieve aprox. 250 mail messages per second).
+- It's more expandable. A database is much easier to access than
   a flat file or a Maildir. We don't need to parse first.
-- In my case, i can easily link a mailbox to a certain client
+- In my case, I can easily link a mailbox to a certain client
   which enables me to let the client maintaining his/her own mailboxes
   without me needing to technically support it.
 - It's scalable. You can run the dbmail programs on different servers
-  talking to the same database(cluster).
+  talking to the same database (cluster).
 - It is more secure. There's no need to maintain system users or write
   to the filesystem. All this is done through the database.
 
-# %description -l pl
-# TODO
+%description -l pl.UTF-8
+DBMAIL to zestaw programów umożliwiających zapisywanie i odtwarzanie
+poczty z bazy danych.
+
+Dlaczego jest to użyteczne? Dla autora jest z kilku powodów:
+- Umożliwia tworzenie skrzynek bez wymagania użytkowników systemowych.
+- Poczta jest zapisywana bardziej wydajnie i może być umieszczana oraz
+  odtwarzana dużo szybciej niż w normalnych systemach (DBmail aktualnie
+  jest w stanie odczytywać około 250 listów na sekundę).
+- Jest bardziej rozszerzalne. Dostęp do bazy danych jest łatwiejszy
+  niż do płaskiego pliku lub Maildira. Nie trzeba ich najpierw
+  analizować.
+- W przypadku autora - może on łatwo podłączyć skrzynkę do pewnego
+  klienta umożliwiając utrzymywanie skrzynek przez klienta bez potrzeby
+  technicznego wsparcia administratora.
+- Jest skalowalne. Można uruchamiać programy dbmail na różnych
+  serwerach komunikujących się z tą samą bazą danych (klastrem).
+- Jest bardziej bezpieczne. Nie trzeba utrzymywać użytkowników
+  systemowych ani pisać po systemie plików. Wszystkie jest wykonywane w
+  bazie danych.
 
 %package mailbox2dbmail
 Summary:       Copy mail from an mbox file, maildir or mhdir directory to dbmail
-#Summary(pl):  
+Summary(pl.UTF-8):     Kopiowanie poczty z pliku mbox, katalogu maildir lub mhdir do dbmaila
 # FIXME: better group
 Group:         Applications/Mail
+Requires:      %{name} = %{version}-%{release}
 Requires:      python-modules >= 2.2
 
 %description mailbox2dbmail
 Use this program to copy mail from an mbox file, maildir or mhdir
-directory to dbmail.  This program uses ./dbmail-smtp for injecting
-the emails into DBMail.
+directory to dbmail. This program uses ./dbmail-smtp for injecting the
+emails into DBMail.
 
-# %description mailbox2dbmail -l pl
-# TODO
+%description mailbox2dbmail -l pl.UTF-8
+Tego programu można używać do kopiowania poczty z pliku mbox albo
+katalogu maildir lub mhdir do dbmaila. Używa on ./dbmail-smtp do
+umieszczania listów w bazie DBMail.
 
 %prep
-%setup -q -n %{name}-%{version}%{_rc}
+%setup -q
 
 %build
-# if ac/am/* rebuilding is necessary, do it in this order and add
-# appropriate BuildRequires
-#%%{__gettextize}
-#%%{__aclocal}
-#%%{__autoconf}
-#%%{__autoheader}
-#%%{__automake}
+%{__autoconf}
 %configure2_13 \
        --with-pgsql
 %{__make}
@@ -79,27 +96,31 @@ rm -rf $RPM_BUILD_ROOT
 
 install -D dbmail.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbmail.conf
 install -d $RPM_BUILD_ROOT%{_mandir}/man1
-cp man/*   $RPM_BUILD_ROOT%{_mandir}/man1
-install contrib/mailbox2dbmail/mailbox2dbmail   $RPM_BUILD_ROOT%{_bindir}
+cp man/* $RPM_BUILD_ROOT%{_mandir}/man1
+install contrib/mailbox2dbmail/mailbox2dbmail $RPM_BUILD_ROOT%{_bindir}
 install contrib/mailbox2dbmail/mailbox2dbmail.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install dbmail-* $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-
 %post
-
-%preun
-
-%postun
+echo "    *****"
+echo "  Read /usr/share/doc/%{name}-%{version}-%{release}/INSTALL*"
+echo "  files, create database, configure /etc/dbmail.conf, the"
+echo "  SMTP server, and the cron job for dbmail-maintenance."
+echo
+echo "  This package doesn't provide any init scripts; you'll have"
+echo "  to deal with starting the appropiate daemons yourself."
+echo "    *****"
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS TODO EXTRAS BUGS INSTALL* sql
 %attr(755,root,root) %{_bindir}/dbmail-*
-%{_libdir}/*.a
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
+# -devel? but headers?
+#%{_libdir}/*.a
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
 %{_mandir}/man1/dbmail-*
 
 %files mailbox2dbmail
This page took 0.221542 seconds and 4 git commands to generate.