]> git.pld-linux.org Git - packages/bfilter.git/blame - bfilter.spec
- converted to UTF-8
[packages/bfilter.git] / bfilter.spec
CommitLineData
3bc42762
JB
1#
2# Conditional build:
3%bcond_with gui # Enable GTK+ UI (doesn't build)
4#
5e1ef270 5Summary: A filtering Web proxy
67f4edee 6Summary(pl.UTF-8): Filtrujące proxy WWW
5e1ef270 7Name: bfilter
8Version: 0.9.4
9Release: 1
10License: GPL v2+
11Group: Networking/Daemons
5ce4cc94 12Source0: http://dl.sourceforge.net/bfilter/%{name}-%{version}.tar.gz
5e1ef270 13# Source0-md5: 72ca85565bd4c556b06e3a264c0c24f1
14Source1: %{name}.init
15URL: http://bfilter.sf.net
6aed960e 16BuildRequires: broken-pre-scriptlet(fix:user/group)
5e1ef270 17BuildRequires: libsigc++12-devel
abac20f0 18BuildRequires: libstdc++-devel
3bc42762
JB
19BuildRequires: pkgconfig
20BuildRequires: popt-devel
6aed960e 21BuildRequires: rpmbuild(macros) >= 1.268
3bc42762 22BuildRequires: zlib-devel
5e1ef270 23Requires(post,preun): /sbin/chkconfig
adffa6ab
ER
24Requires(pre): /bin/id
25Requires(pre): /usr/bin/getgid
26Requires(pre): /usr/sbin/groupadd
27Requires(pre): /usr/sbin/useradd
5e1ef270 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
5ce4cc94 30%description
5e1ef270 31BFilter is a filtering web proxy. It was originally intended for
32removing banner ads only, but at some point it has been extended to
1d3ed4f4 33remove popups and webbugs. Its main advantage over the similar tools
5ce4cc94 34is its heuristic ad detection algorithm.
5e1ef270 35
67f4edee
JR
36%description -l pl.UTF-8
37BFilter jest filtrującym proxy WWW. Pierwotnie miał on filtrować tylko
38bannery, jednak rozszerzono go o usuwanie popupów i innych reklam.
39Główną jego przewagą nad innymi tego rodzaju narzędziami jest
5e1ef270 40heurystyczny algorytm rozpoznawania reklam.
41
42%prep
43%setup -q
44
45%build
46%configure \
47 --with%{!?with_gui:out}-gui
48%{__make}
49
50%install
51rm -rf $RPM_BUILD_ROOT
3bc42762 52install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
5e1ef270 53
54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
5e8fd4c1 56
3bc42762 57install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
5e1ef270 58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%pre
3bc42762 63# XXX: unify
c4be42fd
ER
64# TODO register uid/gid in uid_gid.db.txt
65%groupadd -r -g XXX -f %{name}
6aed960e 66%useradd -r -u XXX -s /bin/false -d / -M -g %{name} -c "BFilter filtering proxy" %{name}
5e1ef270 67
68%post
3bc42762 69/sbin/chkconfig --add %{name}
6aed960e 70%service %{name} restart
5e1ef270 71
72%preun
73if [ "$1" = "0" ]; then
6aed960e 74 %service %{name} stop
1d3ed4f4 75 /sbin/chkconfig --del %{name}
5e1ef270 76fi
77
78%files
79%defattr(644,root,root,755)
5e8fd4c1 80%doc AUTHORS ChangeLog NEWS README doc/*.html doc/*.png
5e1ef270 81%attr(755,root,root) %{_bindir}/%{name}
69c014fb 82%attr(754,root,root) /etc/rc.d/init.d/%{name}
5e1ef270 83%dir %{_sysconfdir}/%{name}
5ce4cc94
ER
84%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/config
85%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/rules.local
5e1ef270 86%{_sysconfdir}/%{name}/config.default
87%{_sysconfdir}/%{name}/rules
This page took 0.080012 seconds and 4 git commands to generate.