]> git.pld-linux.org Git - SPECS.git/blob - pacrunner.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / pacrunner.spec
1 #
2 # Conditional build:
3 %bcond_with     libproxy        # build libproxy compatible library
4 #
5 Summary:        PACrunner - Proxy configuration daemon
6 Summary(pl.UTF-8):      PACrunner - demon do konfiguracji proxy
7 Name:           pacrunner
8 Version:        0.18
9 Release:        1
10 License:        GPL v2
11 Group:          Applications/Networking
12 Source0:        https://www.kernel.org/pub/linux/network/connman/%{name}-%{version}.tar.xz
13 # Source0-md5:  f5c482c970c0111fc97cc06152571150
14 # pacrunner.org is dead
15 URL:            http://www.ohloh.net/p/pacrunner
16 BuildRequires:  curl-devel >= 7.16
17 BuildRequires:  dbus-devel >= 1.2
18 BuildRequires:  glib2-devel >= 1:2.16
19 BuildRequires:  pkgconfig
20 BuildRequires:  tar >= 1:1.22
21 BuildRequires:  xz
22 Requires:       curl-libs >= 7.16
23 Requires:       dbus >= 1.2
24 Requires:       glib2 >= 1:2.16
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 PACrunner provides a daemon for processing proxy configuration and
29 providing information to clients over D-Bus.
30
31 %description -l pl.UTF-8
32 PACrunner zawiera demona do przetwarzania konfiguracji proxy i
33 udostępniania informacji klientom poprzez D-Bus.
34
35 %package libproxy
36 Summary:        PACrunner based proxy configuration library
37 Summary(pl.UTF-8):      Biblioteka do konfiguracji proxy oparta na PACrunnerze
38 Group:          Libraries
39 Requires:       %{name} = %{version}-%{release}
40
41 %description libproxy
42 PACrunner based proxy configuration library (compatible with
43 libproxy).
44
45 %description libproxy -l pl.UTF-8
46 Biblioteka do konfiguracji proxy oparta na PACrunnerze (zgodna z
47 libproxy).
48
49 %package libproxy-devel
50 Summary:        Header file for PACrunner libproxy library
51 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki PACrunnera libproxy
52 Group:          Development/Libraries
53 Requires:       %{name}-libproxy = %{version}-%{release}
54
55 %description libproxy-devel
56 Header file for PACrunner libproxy library.
57
58 %description libproxy-devel -l pl.UTF-8
59 Plik nagłówkowy biblioteki PACrunnera libproxy.
60
61 %prep
62 %setup -q
63
64 %build
65 %configure \
66         --disable-silent-rules \
67         --enable-curl \
68         --enable-duktape \
69         %{?with_libproxy:--enable-libproxy}
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %if %{with libproxy}
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libproxy.la
80 %endif
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   libproxy -p /sbin/ldconfig
86 %postun libproxy -p /sbin/ldconfig
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog README TODO doc/*.txt
91 %attr(755,root,root) %{_sbindir}/pacrunner
92 /etc/dbus-1/system.d/pacrunner.conf
93 /usr/share/dbus-1/system-services/org.pacrunner.service
94
95 %if %{with libproxy}
96 %files libproxy
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/manual-proxy-test
99 %attr(755,root,root) %{_bindir}/proxy
100 %attr(755,root,root) %{_libdir}/libproxy.so.1.0.0
101 %attr(755,root,root) %ghost %{_libdir}/libproxy.so.1
102
103 %files libproxy-devel
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libproxy.so
106 %{_includedir}/proxy.h
107 %{_pkgconfigdir}/libproxy-1.0.pc
108 %endif
This page took 0.555347 seconds and 3 git commands to generate.