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