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