]> git.pld-linux.org Git - packages/dbmail.git/blob - dbmail.spec
b9579337e94963f93c3fe5397aa21ff78f9bc44f
[packages/dbmail.git] / dbmail.spec
1 # TODO: bcond for mysql
2 Summary:        Collection of programs for storing and retrieving mail from a SQL database
3 #Summary(pl):   
4 Name:           dbmail
5 Version:        2.0
6 %define _rc     rc5
7 Release:        0.%{_rc}.1
8 License:        GPL v2
9 Group:          Networking/Daemons
10 Source0:        http://dbmail.org/tgz/%{name}-%{version}%{_rc}.tgz
11 # Source0-md5:  f3cca8eb615af565a388069c1ab68f08
12 URL:            http://www.dbman.org/
13 BuildRequires:  postgresql-devel
14 #Requires(pre,post):    -
15 #Requires(preun):       -
16 #Requires(postun):      -
17 Requires:       postgresql
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 DBMAIL is a collection of programs that enables email to be
22 stored in and retrieved from a database.
23
24 Why is it usefull?
25 ==================
26 Well, for me it's usefull because a number of reasons.
27 - it enables me to create mailboxes without the need of systemusers.
28 - mail is more effeciently stored and therefore it can be inserted
29   an retrieved much faster dan any regular system (DBmail is currently
30   able to retrieve aprox. 250 mail messages per second)
31 - it's more expandable. A database is much easier to access than
32   a flat file or a Maildir. We don't need to parse first.
33 - In my case, i can easily link a mailbox to a certain client
34   which enables me to let the client maintaining his/her own mailboxes
35   without me needing to technically support it.
36 - It's scalable. You can run the dbmail programs on different servers
37   talking to the same database(cluster).
38 - It is more secure. There's no need to maintain system users or write
39   to the filesystem. All this is done through the database.
40
41 # %description -l pl
42 # TODO
43
44 %prep
45 %setup -q -n %{name}-%{version}%{_rc}
46
47 %build
48 # if ac/am/* rebuilding is necessary, do it in this order and add
49 # appropriate BuildRequires
50 #%%{__gettextize}
51 #%%{__aclocal}
52 #%%{__autoconf}
53 #%%{__autoheader}
54 #%%{__automake}
55 %configure2_13 \
56         --with-pgsql
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 install -D dbmail.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbmail/dbmail.conf
66 install -d $RPM_BUILD_ROOT%{_mandir}/man1
67 cp man/*   $RPM_BUILD_ROOT%{_mandir}/man1
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %pre
73
74 %post
75
76 %preun
77
78 %postun
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog NEWS README THANKS TODO EXTRAS BUGS INSTALL* sql
83 %attr(755,root,root) %{_bindir}/*
84 %{_libdir}/*.a
85 %dir %{_sysconfdir}/dbmail
86 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dbmail/*
87 %{_mandir}/man1/*
This page took 0.05046 seconds and 2 git commands to generate.