3 %bcond_with mozjs # use Mozilla JavaScript
4 %bcond_with v8 # use Chrome V8 JavaScript
6 Summary: PACrunner - Proxy configuration daemon
7 Summary(pl.UTF-8): PACrunner - demon do konfiguracji proxy
12 Group: Applications/Networking
13 Source0: https://www.kernel.org/pub/linux/network/connman/%{name}-%{version}.tar.xz
14 # Source0-md5: e6bcb6a2b26481a34d74357913b0ad71
15 # pacrunner.org is dead
16 URL: http://www.ohloh.net/p/pacrunner
17 BuildRequires: curl-devel >= 7.16
18 BuildRequires: dbus-devel >= 1.2
19 BuildRequires: glib2-devel >= 1:2.16
20 %{?with_mozjs:BuildRequires: mozjs38-devel >= 38}
21 BuildRequires: pkgconfig
22 BuildRequires: tar >= 1:1.22
23 %{?with_v8:BuildRequires: v8-devel}
25 Requires: curl-libs >= 7.16
27 Requires: glib2 >= 1:2.16
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 PACrunner provides a daemon for processing proxy configuration and
32 providing information to clients over D-Bus.
34 %description -l pl.UTF-8
35 PACrunner zawiera demona do przetwarzania konfiguracji proxy i
36 udostępniania informacji klientom poprzez D-Bus.
43 --disable-silent-rules \
46 %{?with_mozjs:--enable-mozjs} \
47 %{?with_v8:--enable-v8}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc AUTHORS ChangeLog README TODO doc/*.txt
62 %attr(755,root,root) %{_sbindir}/pacrunner
63 /etc/dbus-1/system.d/pacrunner.conf
64 /usr/share/dbus-1/system-services/pacrunner.service