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