]> git.pld-linux.org Git - packages/dspam.git/blame - dspam.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/dspam.git] / dspam.spec
CommitLineData
229005d4 1# TODO:
db5b0be0 2# - support for libdclassify
526e9159 3# - oracle driver
15cf3cba 4# - messages from default install of cron with mysql driver Memory fault
8bd618c3 5# - remove versioned sonames from drivers
c66382e4
PS
6#
7# Conditional build:
f8aabeb4
JB
8%bcond_without mysql # disable MySQL storage driver
9%bcond_without pgsql # disable PostgreSQL storage driver
10%bcond_without sqlite # disable SQLite3 storage driver
5fe98dd6 11%bcond_with mysql40 # use with mysql 4.0
7f1b3cae 12
782a8c09 13Summary: A library and Mail Delivery Agent for Bayesian spam filtering
598ee430 14Summary(pl.UTF-8): Biblioteka i MDA do bayesowskiego filtrowania spamu
782a8c09 15Name: dspam
d554cb42 16Version: 3.9.0
409bac96 17Release: 8
004c5caf 18License: GPL v2+
782a8c09 19Group: Applications/Mail
004c5caf 20Source0: http://downloads.sourceforge.net/project/dspam/dspam/%{name}-%{version}/%{name}-%{version}.tar.gz
d554cb42 21# Source0-md5: 10d092b57d628d8c91655fee5dc0d0cd
8f52b9af
JR
22Source1: %{name}.init
23Source2: %{name}-apache.conf
24Source3: %{name}.tmpfiles
b3ac7ed9 25Source4: %{name}-httpd.conf
15cf3cba 26Patch0: %{name}-webui.patch
e087d69c 27Patch1: %{name}-config.patch
3857584b 28Patch2: %{name}-speedup.patch
46529756 29Patch3: %{name}-autotools.patch
ea9c5ab2 30Patch4: %{name}-single-char-usernames.patch
4a7592fa 31URL: http://dspam.nuclearelephant.com/
6d23db82
AM
32BuildRequires: autoconf
33BuildRequires: automake
db5b0be0 34BuildRequires: clamav-devel
786a7fbe 35BuildRequires: libtool
526e9159 36%{?with_mysql:BuildRequires: mysql-devel}
8d4dab95 37BuildRequires: openldap-devel >= 2.4.6
526e9159 38%{?with_pgsql:BuildRequires: postgresql-devel}
15cf3cba 39BuildRequires: rpm-perlprov >= 4.1-13
cc754752 40BuildRequires: rpmbuild(macros) >= 1.268
f8aabeb4 41BuildRequires: sed >= 4.0
526e9159 42%{?with_sqlite:BuildRequires: sqlite3-devel}
db5b0be0 43BuildRequires: zlib-devel
786a7fbe 44Requires(post,preun): /sbin/chkconfig
5a3e1b1e 45Requires: %{name}-common = %{version}-%{release}
8b918ab1 46Requires: %{name}-driver = %{version}-%{release}
786a7fbe 47Requires: rc-scripts
7f1b3cae 48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
782a8c09 49
15cf3cba
ER
50%define _webapps /etc/webapps
51%define _webapp %{name}
52
f220ab73
MB
53# symbols are provided by dspam executable
54%define skip_post_check_so libdspam.so.7.0.0 lib(hash\|mysql\|pgsql\|sqlite3)_drv.so.7.0.0
55
782a8c09
AM
56%description
57DSPAM (as in De-Spam) is an open-source project to create a new kind
58of anti-spam mechanism, and is currently effective as both a
59server-side agent for UNIX email servers and a developer's library for
60mail clients, other anti-spam tools, and similar projects requiring
61drop-in spam filtering.
62
63The DSPAM agent masquerades as the email server's local delivery agent
64and filters/learns spams using an advanced Bayesian statistical
be22be94 65approach (based on Bayes's theorem of combined probabilities) which
782a8c09
AM
66provides an administratively maintenance-free, easy-learning Anti-Spam
67service custom tailored to each individual user's behavior. Advanced
68because on top of standard Bayesian filtering is also incorporated the
69use of Chained Tokens, de-obfuscation, and other enhancements. DSPAM
70works great with Sendmail and Exim, and should work well with any
71other MTA that supports an external local delivery agent (postfix,
72qmail, etc.)
73
8e90da8a
JR
74%description -l pl.UTF-8
75DSPAM (czyli De-Spam) to projekt o otwartych źródłach mający na celu
be22be94 76stworzenie nowego rodzaju mechanizmu antyspamowego. Aktualnie jest
8e90da8a
JR
77efektywny zarówno jako działający po stronie serwera agent dla
78uniksowych serwerów pocztowych jak i biblioteka dla programistów
79klientów pocztowych, innych narzędzi antyspamowych i innych projektów
80wymagających filtrowania spamu w locie.
81
82Agent DSPAM zachowuje się jak lokalny agent dostarczania poczty (MDA)
83i filtruje/uczy się spamu przy użyciu zaawansowanego bayesowskiego
84przybliżenia statystycznego (opartego na twierdzeniu Bayesa o
85połączonych prawdopodobieństwach), dając nie wymagającą obsługi
86administracyjnej, łatwo uczącą się usługę antyspamową dostosowaną do
87zachowania każdego użytkownika. Metoda jest zaawansowana ponieważ na
88podstawie standardowego filtrowania bayesowskiego wprowadzono użycie
89tokenów łańcuchowych, eliminowanie ukrywanie i inne rozszerzenia.
90DSPAM działa wspaniale z Sendmailem i Eximem, powinien działać dobrze
91z każdym innym MTA obsługującym zewnętrznego agenta MDA (postfiksem,
be22be94
JB
92qmailem itd.).
93
6d23db82 94%package client
a109c72f 95Summary: dspam client
598ee430 96Summary(pl.UTF-8): Klient dspam
a109c72f 97Group: Applications/Mail
14841820 98Requires: %{name}-common
6d23db82
AM
99
100%description client
101dspam client.
102
8e90da8a 103%description client -l pl.UTF-8
6d23db82
AM
104Klient dspam.
105
5a3e1b1e 106%package common
107Summary: Common files for dspam packages
108Summary(pl.UTF-8): Wspólne pliki dla pakietów z dspamem
109Group: Applications/Mail
110
111%description common
112Common files for dspam and dspam-client packages.
113
8abc107a 114%description common -l pl.UTF-8
5a3e1b1e 115Wspólne pliki dla pakietów dspam i dspam-client.
116
782a8c09 117%package libs
be22be94 118Summary: A library for Bayesian spam filtering
598ee430 119Summary(pl.UTF-8): Biblioteka do bayesowskiego filtrowania spamu
782a8c09 120Group: Libraries
bcb1bcd3 121Obsoletes: dspam-driver-db
782a8c09
AM
122
123%description libs
124DSPAM (as in De-Spam) is an open-source project to create a new kind
125of anti-spam mechanism, and is currently effective as both a
126server-side agent for UNIX email servers and a developer's library for
127mail clients, other anti-spam tools, and similar projects requiring
128drop-in spam filtering.
129
be22be94
JB
130This package contains the library.
131
8e90da8a
JR
132%description libs -l pl.UTF-8
133DSPAM (czyli De-Spam) to projekt o otwartych źródłach mający na celu
be22be94 134stworzenie nowego rodzaju mechanizmu antyspamowego. Aktualnie jest
8e90da8a
JR
135efektywny zarówno jako działający po stronie serwera agent dla
136uniksowych serwerów pocztowych jak i biblioteka dla programistów
137klientów pocztowych, innych narzędzi antyspamowych i innych projektów
138wymagających filtrowania spamu w locie.
be22be94 139
8e90da8a 140Ten pakiet zawiera wspomnianą bibliotekę.
782a8c09
AM
141
142%package devel
be22be94 143Summary: Header files for the DSPAM library
598ee430 144Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DSPAM
782a8c09
AM
145Group: Development/Libraries
146Requires: %{name}-libs = %{version}-%{release}
147
148%description devel
149DSPAM has had its core engine moved into a separate library, libdspam.
150This library can be used by developers to provide 'drop-in' spam
151filtering for their mail client applications, other anti-spam tools,
152or similar projects.
153
8e90da8a
JR
154%description devel -l pl.UTF-8
155Główny silnik DSPAM został przeniesiony do oddzielnej biblioteki
156libdspam, która może być używana przez programistów do zapewnienia
157filtrowania spamu w locie dla aplikacji klientów pocztowych, innych
158narzędzi antyspamowych i podobnych projektów.
be22be94
JB
159
160%package static
161Summary: Static DSPAM library
598ee430 162Summary(pl.UTF-8): Statyczna biblioteka DSPAM
be22be94
JB
163Group: Development/Libraries
164Requires: %{name}-devel = %{version}-%{release}
165
166%description static
167Static DSPAM library.
168
8e90da8a 169%description static -l pl.UTF-8
be22be94
JB
170Statyczna biblioteka DSPAM.
171
db5b0be0
AM
172%package driver-hash
173Summary: HASH driver for DSPAM
598ee430 174Summary(pl.UTF-8): Sterownik HASH dla DSPAM-a
db5b0be0 175Group: Libraries
f0445c01 176Requires(post): sed >= 4.0
8b918ab1 177Requires: %{name} = %{version}-%{release}
db5b0be0
AM
178Provides: %{name}-driver = %{version}-%{release}
179
180%description driver-hash
181HASH driver for DSPAM.
182
8e90da8a 183%description driver-hash -l pl.UTF-8
f8aabeb4
JB
184Sterownik HASH dla DSPAM-a.
185
db5b0be0
AM
186%package driver-mysql
187Summary: MySQL driver for DSPAM
598ee430 188Summary(pl.UTF-8): Sterownik MySQL dla DSPAM-a
db5b0be0 189Group: Libraries
f0445c01 190Requires(post): sed >= 4.0
8b918ab1 191Requires: %{name} = %{version}-%{release}
db5b0be0
AM
192Provides: %{name}-driver = %{version}-%{release}
193
194%description driver-mysql
195MySQL driver for DSPAM.
196
8e90da8a 197%description driver-mysql -l pl.UTF-8
f8aabeb4
JB
198Sterownik MySQL dla DSPAM-a.
199
db5b0be0
AM
200%package driver-pgsql
201Summary: PostgreSQL driver for DSPAM
598ee430 202Summary(pl.UTF-8): Sterownik PostgreSQL dla DSPAM-a
db5b0be0 203Group: Libraries
f0445c01 204Requires(post): sed >= 4.0
8b918ab1 205Requires: %{name} = %{version}-%{release}
db5b0be0
AM
206Provides: %{name}-driver = %{version}-%{release}
207
208%description driver-pgsql
209PostgreSQL driver for DSPAM.
210
8e90da8a 211%description driver-pgsql -l pl.UTF-8
f8aabeb4
JB
212Sterownik PostgreSQL dla DSPAM-a.
213
14841820 214%package driver-sqlite3
db5b0be0 215Summary: SQLite driver for DSPAM
598ee430 216Summary(pl.UTF-8): Sterownik SQLite dla DSPAM-a
db5b0be0 217Group: Libraries
f0445c01 218Requires(post): sed >= 4.0
8b918ab1 219Requires: %{name} = %{version}-%{release}
db5b0be0 220Provides: %{name}-driver = %{version}-%{release}
14841820 221Obsoletes: dspam-driver-sqlite
db5b0be0 222
14841820 223%description driver-sqlite3
db5b0be0
AM
224SQLite driver for DSPAM.
225
14841820 226%description driver-sqlite3 -l pl.UTF-8
f8aabeb4
JB
227Sterownik SQLite dla DSPAM-a.
228
15cf3cba 229%package webui
0fdbb95f 230Summary: DSPAM Web UI
598ee430 231Summary(pl.UTF-8): Interfejs WWW do programu DSPAM
15cf3cba
ER
232Group: Applications/WWW
233Requires: webapps
0fdbb95f
ER
234# needs dspam binary
235Requires: %{name} = %{version}-%{release}
b3ac7ed9 236Conflicts: apache-base < 2.4.0-1
15cf3cba
ER
237
238%description webui
239The Web UI (CGI client) can be run from any executable location on a
240web server, and detects its user's identity from the REMOTE_USER
241environment variable. This means you'll need to use HTTP password
242authentication to access the CGI (Any type of authentication will
243work, so long as Apache supports the module). This is also convenient
244in that you can set up authentication using almost any existing system
245you have. The only catch is that you'll need the usernames to match
246the actual DSPAM usernames used the system. A copy of the shadow
247password file will suffice for most common installs.
248
8e90da8a
JR
249%description webui -l pl.UTF-8
250Interfejs użytkownika WWW (klient CGI) może być uruchamiany z
251dowolnego wykonywalnego miejsca na serwerze WWW i rozpoznaje tożsamość
252użytkownika ze zmiennej środowiskowej REMOTE_USER. Oznacza to, że
253trzeba użyć uwietrzytelnienia HTTP z hasłem do dostępu do CGI (działać
254będzie dowolny rodzaj uwierzytelnienia obsługiwany przez moduły
255Apache'a). Jest to o tyle wygodne, że można skonfigurować
256uwierzytelnianie dla prawie każdego istniejącego systemu. Jedynym
257wymogiem jest, żeby nazwy użytkowników pokrywały się z nazwami
258użytkowników DSPAM-a używanymi w systemie. Kopia pliku shadow
259wystarczy dla większości popularnych instalacji.
70a25296 260
782a8c09
AM
261%prep
262%setup -q
15cf3cba 263%patch0 -p1
e087d69c 264%patch1 -p1
3857584b 265%patch2 -p1
46529756 266%patch3 -p1
ea9c5ab2 267%patch4 -p1
6d23db82 268sed -i -e 's#\-static##g' src/Makefile* src/*/Makefile*
5fe98dd6 269%{?with_mysql40:sed -i -e 's#40100#99999#g' src/mysql_drv.c}
1e8d0a98 270sed -i -e 's,/usr/local/dspam/bin,/usr/bin,' ./scripts/train.pl
782a8c09
AM
271
272%build
6d23db82
AM
273%{__libtoolize}
274%{__aclocal} -I m4
275%{__autoconf}
900e7086 276%{__autoheader}
6d23db82 277%{__automake}
f0445c01
ER
278
279DRIVERS="
280hash_drv
f0445c01
ER
281%{?with_mysql:mysql_drv}
282%{?with_pgsql:pgsql_drv}
46529756 283%{?with_sqlite:sqlite3_drv}
f0445c01 284"
c66382e4 285%configure \
0fdbb95f 286 --disable-dependency-tracking \
994bfba1 287 %{?debug: --enable-debug --enable-bnr-debug --enable-verbose-debug} \
be22be94 288 --enable-trusted-user-security \
be22be94 289 --enable-large-scale \
f0445c01
ER
290 --with-dspam-home=/var/lib/%{name} \
291 --with-dspam-home-owner=none \
292 --with-dspam-home-group=none \
be22be94
JB
293 --with-dspam-owner=none \
294 --with-dspam-group=none \
900e7086 295 --with-logdir=/var/log/%{name} \
db5b0be0
AM
296 --enable-ldap \
297 --enable-clamav \
298 --enable-preferences-extension \
299 --enable-long-usernames \
f0445c01
ER
300 --enable-virtual-users \
301 --with-storage-driver=$(echo $DRIVERS | tr ' ' ',') \
db5b0be0 302%if %{with mysql}
be22be94 303 --with-mysql-includes=%{_includedir}/mysql \
db5b0be0 304 --with-mysql-libraries=%{_libdir} \
526e9159 305%endif
ad84258d 306%if %{with pgsql}
2dd25777 307 --with-pgsql-includes=%{_includedir}/postgresql \
db5b0be0 308 --with-pgsql-libraries=%{_libdir} \
526e9159 309%endif
46529756 310%if 0
6d23db82 311%if %{with sqlite}
46529756 312 --with-sqlite-includes=%{_includedir} \
313 --with-sqlite-libraries=%{_libdir} \
314%endif
c66382e4 315%endif
db5b0be0
AM
316 --enable-daemon
317
318# --enable-dclassify-extension needs libdclassify
319
9128325e 320%{__make} -j1
782a8c09
AM
321
322%install
323rm -rf $RPM_BUILD_ROOT
1e8d0a98 324install -d $RPM_BUILD_ROOT{/var/run/dspam,/etc/{rc.d/init.d,sysconfig}} \
8f52b9af
JR
325 $RPM_BUILD_ROOT/var/lib/%{name}/{txt,data} \
326 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
782a8c09 327
f220ab73 328%{__make} -j1 install \
b68e9706 329 DESTDIR=$RPM_BUILD_ROOT
782a8c09 330
6d23db82
AM
331install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dspam
332
3857584b
ER
333cp -a txt/*.txt $RPM_BUILD_ROOT/var/lib/%{name}/txt
334
782a8c09 335# install devel files
3a63f112 336install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},/var/{log,lib}/%{name}}
c8020429 337install src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
782a8c09
AM
338
339# provide maintenance scripts
e087d69c 340install -d $RPM_BUILD_ROOT/etc/cron.{daily,weekly}
43a9bb3e 341cat > $RPM_BUILD_ROOT/etc/cron.daily/%{name} <<EOF
782a8c09 342#!/bin/sh
db3f75b1 343exec %{_bindir}/%{name}_clean -s -p
782a8c09
AM
344EOF
345
be22be94 346chmod 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/%{name}
782a8c09 347
782a8c09 348# fix purge stuff
c8020429 349#install dspam-cron.weekly $RPM_BUILD_ROOT%{_sysconfdir}/cron.weekly/%{name}
b266c73e
PS
350
351%if %{with mysql}
be22be94 352cat > $RPM_BUILD_ROOT/var/lib/%{name}/mysql.data <<EOF
782a8c09
AM
353_UNCONFIGURED_
354
355Note!
356
357This file can only contain 5 lines with the following values:
358
359HOSTNAME
360PORT
361USERNAME
362PASSWORD
363DATABASE
364EOF
b266c73e 365%endif
782a8c09 366
2dd25777 367%if %{with pgsql}
2dd25777
SP
368cat > $RPM_BUILD_ROOT/var/lib/%{name}/pgsql.data <<EOF
369_UNCONFIGURED_
370
371Note!
372
373This file can only contain 5 lines with the following values:
374
375HOSTNAME
376PORT
377USERNAME
378PASSWORD
379DATABASE
380EOF
381%endif
382
15cf3cba
ER
383install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
384install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
b3ac7ed9 385install %{SOURCE4} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
15cf3cba
ER
386touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd
387
8f52b9af
JR
388install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
389
f220ab73
MB
390# cleanup
391%{__rm} $RPM_BUILD_ROOT%{_libdir}/dspam/*.{a,la}
392
6d23db82
AM
393%post
394/sbin/chkconfig --add dspam
cc754752 395%service dspam restart "dspam daemon"
6d23db82
AM
396
397%preun
398if [ "$1" = "0" ]; then
cc754752 399 %service dspam stop
526e9159 400 /sbin/chkconfig --del dspam
6d23db82
AM
401fi
402
782a8c09 403%clean
be22be94
JB
404rm -rf $RPM_BUILD_ROOT
405
406%post libs -p /sbin/ldconfig
407%postun libs -p /sbin/ldconfig
782a8c09 408
f0445c01 409%post driver-hash
e7eb5bbf 410%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libhash_drv.so,' /etc/dspam.conf
f0445c01
ER
411
412%post driver-mysql
e7eb5bbf 413%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libmysql_drv.so,' /etc/dspam.conf
f0445c01
ER
414
415%post driver-pgsql
e7eb5bbf 416%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libpgsql_drv.so,' /etc/dspam.conf
f0445c01 417
14841820 418%post driver-sqlite3
e7eb5bbf 419%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libsqlite3_drv.so,' /etc/dspam.conf
f0445c01 420
769bc997 421%triggerin webui -- apache1 < 1.3.37-3, apache1-base
15cf3cba
ER
422%webapp_register apache %{_webapp}
423
769bc997 424%triggerun webui -- apache1 < 1.3.37-3, apache1-base
15cf3cba
ER
425%webapp_unregister apache %{_webapp}
426
b3ac7ed9 427%triggerin webui -- apache-base
15cf3cba
ER
428%webapp_register httpd %{_webapp}
429
b3ac7ed9 430%triggerun webui -- apache-base
15cf3cba
ER
431%webapp_unregister httpd %{_webapp}
432
782a8c09
AM
433%files
434%defattr(644,root,root,755)
6c5841c4 435%doc README CHANGELOG RELEASE.NOTES UPGRADING
db5b0be0 436%doc doc/{courier,exim,markov,pop3filter,postfix,qmail,relay,sendmail}.txt
1e8d0a98 437%doc scripts/train.pl
8f52b9af 438/usr/lib/tmpfiles.d/%{name}.conf
e087d69c 439%dir %attr(775,root,mail) /var/run/dspam
1e8d0a98
ER
440%dir %attr(750,root,mail) /var/lib/%{name}
441%dir %attr(770,root,mail) /var/lib/%{name}/data
3857584b 442%dir /var/lib/%{name}/txt
59a71e8c 443%dir %{_libdir}/dspam
3857584b 444%config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/txt/*.txt
3a63f112 445%dir %attr(770,root,mail) /var/log/dspam
e087d69c 446%attr(754,root,root) /etc/rc.d/init.d/dspam
43a9bb3e 447%attr(755,root,root) %config(noreplace) /etc/cron.daily/%{name}
9c99041b
AM
448%attr(755,root,root) %{_bindir}/%{name}
449%attr(755,root,root) %{_bindir}/%{name}_logrotate
be22be94 450%attr(755,root,root) %{_bindir}/%{name}_clean
be22be94
JB
451%attr(755,root,root) %{_bindir}/%{name}_crc
452%attr(755,root,root) %{_bindir}/%{name}_dump
be22be94
JB
453%attr(755,root,root) %{_bindir}/%{name}_stats
454%attr(755,root,root) %{_bindir}/%{name}_merge
ca8f3468 455%attr(755,root,root) %{_bindir}/%{name}_2sql
6c5841c4 456%attr(755,root,root) %{_bindir}/%{name}_admin
afb1dbdc 457%attr(755,root,root) %{_bindir}/%{name}_train
dcc5a193 458%{_mandir}/man?/%{name}*
782a8c09 459
6d23db82
AM
460%files client
461%defattr(644,root,root,755)
9c99041b 462%attr(755,root,root) %{_bindir}/%{name}c
6d23db82 463
5a3e1b1e 464%files common
465%defattr(644,root,root,755)
466%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dspam.conf
467
782a8c09
AM
468%files libs
469%defattr(644,root,root,755)
46529756 470%attr(755,root,root) %{_libdir}/libdspam.so.7.0.0
471%attr(755,root,root) %ghost %{_libdir}/libdspam.so.7
782a8c09
AM
472
473%files devel
474%defattr(644,root,root,755)
46529756 475%attr(755,root,root) %{_libdir}/libdspam.so
46529756 476%{_libdir}/libdspam.la
be22be94 477%{_includedir}/%{name}
46529756 478%{_mandir}/man3/libdspam.3*
8bd618c3 479%{_pkgconfigdir}/dspam.pc
be22be94
JB
480
481%files static
482%defattr(644,root,root,755)
46529756 483%{_libdir}/libdspam.a
db5b0be0
AM
484
485%files driver-hash
486%defattr(644,root,root,755)
487%attr(755,root,root) %{_bindir}/css*
f220ab73 488%attr(755,root,root) %{_libdir}/dspam/libhash_drv.so*
db5b0be0 489
db5b0be0
AM
490%if %{with mysql}
491%files driver-mysql
492%defattr(644,root,root,755)
493%doc doc/mysql_drv.txt src/tools.mysql_drv/*.sql
494%attr(640,root,mail) %config(noreplace) /var/lib/%{name}/mysql.data
f220ab73 495%attr(755,root,root) %{_libdir}/dspam/libmysql_drv.so*
db5b0be0
AM
496%endif
497
498%if %{with pgsql}
499%files driver-pgsql
500%defattr(644,root,root,755)
501%doc doc/pgsql_drv.txt src/tools.pgsql_drv/*.sql
502%attr(640,root,mail) %config(noreplace) /var/lib/%{name}/pgsql.data
503%attr(755,root,root) %{_bindir}/%{name}_pg2int8
f220ab73 504%attr(755,root,root) %{_libdir}/dspam/libpgsql_drv.so*
db5b0be0
AM
505%endif
506
507%if %{with sqlite}
14841820 508%files driver-sqlite3
db5b0be0
AM
509%defattr(644,root,root,755)
510%doc doc/sqlite_drv.txt
f220ab73 511%attr(755,root,root) %{_libdir}/dspam/libsqlite3_drv.so*
db5b0be0 512%endif
15cf3cba
ER
513
514%files webui
515%defattr(644,root,root,755)
516%dir %attr(750,root,http) %{_webapps}/%{_webapp}
517%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
518%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
0fdbb95f
ER
519%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htpasswd
520%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/admins
521%attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/default.prefs
522%config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/configure.pl
15cf3cba
ER
523
524%dir %{_datadir}/dspam
525%dir %{_datadir}/dspam/cgi
526%attr(755,root,root) %{_datadir}/dspam/cgi/*.cgi
527%{_datadir}/dspam/cgi/templates
528%{_datadir}/dspam/htdocs
This page took 0.181456 seconds and 4 git commands to generate.