]>
Commit | Line | Data |
---|---|---|
31654b46 | 1 | # TODO: natus-based pacrunner (doesn't build with natus 0.2.1) |
705e407b JB |
2 | # |
3 | # Conditional build: | |
128597ac JB |
4 | %bcond_without kde # KDE4 plugin |
5 | %bcond_without webkit # WebKit plugin | |
6 | %bcond_without xulrunner # xulrunner plugin | |
705e407b | 7 | # |
128597ac JB |
8 | %include /usr/lib/rpm/macros.perl |
9 | %include /usr/lib/rpm/macros.mono | |
86d2d1bd MB |
10 | Summary: Library for automatic proxy configuration management |
11 | Summary(pl.UTF-8): Biblioteka do automatycznego zarządzania konfiguracją proxy | |
12 | Name: libproxy | |
f39b9aec | 13 | Version: 0.4.7 |
cdb21b18 | 14 | Release: 2 |
128597ac | 15 | License: LGPL v2.1+ |
86d2d1bd | 16 | Group: Libraries |
705e407b | 17 | #Source0Download: http://code.google.com/p/libproxy/downloads/list |
86d2d1bd | 18 | Source0: http://libproxy.googlecode.com/files/%{name}-%{version}.tar.gz |
f39b9aec | 19 | # Source0-md5: 509e03a488a61cd62bfbaf3ab6a2a7a5 |
128597ac | 20 | Patch0: %{name}-pac-modules.patch |
86d2d1bd | 21 | URL: http://code.google.com/p/libproxy/ |
86d2d1bd | 22 | BuildRequires: NetworkManager-devel |
36f95bc8 | 23 | %{?with_kde:BuildRequires: automoc4} |
128597ac | 24 | BuildRequires: cmake >= 2.6 |
f39b9aec JB |
25 | BuildRequires: glib2-devel >= 1:2.26 |
26 | %{?with_webkit:BuildRequires: gtk-webkit3-devel} | |
128597ac | 27 | %{?with_kde:BuildRequires: kde4-kdelibs-devel} |
f39b9aec | 28 | BuildRequires: libmodman-devel >= 2 |
128597ac JB |
29 | BuildRequires: libstdc++-devel |
30 | BuildRequires: mono-csharp | |
31 | BuildRequires: perl-devel >= 1:5.8.0 | |
86d2d1bd MB |
32 | BuildRequires: pkgconfig |
33 | BuildRequires: python-devel >= 1:2.5 | |
24445d20 | 34 | BuildRequires: python-modules |
36f95bc8 SS |
35 | %if %{with kde} |
36 | BuildRequires: qt4-build | |
37 | BuildRequires: qt4-qmake | |
38 | %endif | |
128597ac | 39 | BuildRequires: rpm-perlprov >= 4.1-13 |
24445d20 | 40 | BuildRequires: rpm-pythonprov |
128597ac JB |
41 | BuildRequires: rpmbuild(macros) >= 1.268 |
42 | BuildRequires: rpmbuild(monoautodeps) | |
7333df52 | 43 | BuildRequires: xorg-lib-libX11-devel |
86d2d1bd | 44 | BuildRequires: xorg-lib-libXmu-devel |
aa7b5c69 | 45 | %{?with_xulrunner:BuildRequires: xulrunner-devel} |
86d2d1bd MB |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | Library for automatic proxy configuration management. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Biblioteka do automatycznego zarządzania konfiguracją proxy. | |
53 | ||
54 | %package devel | |
55 | Summary: Header files for libproxy library | |
56 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libproxy | |
57 | Group: Development/Libraries | |
58 | Requires: %{name} = %{version}-%{release} | |
128597ac JB |
59 | Requires: libstdc++-devel |
60 | Obsoletes: libproxy-static | |
86d2d1bd MB |
61 | |
62 | %description devel | |
63 | Header files for libproxy library. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe biblioteki libproxy. | |
67 | ||
128597ac JB |
68 | %package -n dotnet-libproxy-sharp |
69 | Summary: Libproxy# - libproxy .NET bindings | |
70 | Summary(pl.UTF-8): Libproxy# - wiązania libproxy dla .NET | |
71 | Group: Libraries | |
72 | Requires: %{name} = %{version}-%{release} | |
73 | ||
74 | %description -n dotnet-libproxy-sharp | |
75 | Libproxy# - libproxy .NET bindings. | |
76 | ||
77 | %description -n dotnet-libproxy-sharp -l pl.UTF-8 | |
78 | Libproxy# - wiązania libproxy dla .NET. | |
79 | ||
80 | %package -n dotnet-libproxy-sharp-devel | |
81 | Summary: libproxy .NET bindings - development files | |
82 | Summary(pl.UTF-8): Wiązania libproxy dla .NET - pliki programistyczne | |
86d2d1bd | 83 | Group: Development/Libraries |
128597ac | 84 | Requires: dotnet-libproxy-sharp = %{version}-%{release} |
86d2d1bd | 85 | |
128597ac JB |
86 | %description -n dotnet-libproxy-sharp-devel |
87 | Development files for libproxy .NET bindings. | |
86d2d1bd | 88 | |
128597ac JB |
89 | %description -n dotnet-libproxy-sharp-devel -l pl.UTF-8 |
90 | Pliki programistyczne wiązań libproxy dla .NET. | |
91 | ||
92 | %package -n perl-Net-Libproxy | |
93 | Summary: libproxy Perl bindings | |
94 | Summary(pl.UTF-8): Wiązania libproxy dla Perla | |
95 | Group: Development/Languages/Perl | |
96 | Requires: %{name} = %{version}-%{release} | |
97 | ||
98 | %description -n perl-Net-Libproxy | |
99 | libproxy Perl bindings. | |
100 | ||
101 | %description -n perl-Net-Libproxy -l pl.UTF-8 | |
102 | Wiązania libproxy dla Perla. | |
86d2d1bd MB |
103 | |
104 | %package -n python-libproxy | |
105 | Summary: libproxy Python bindings | |
106 | Summary(pl.UTF-8): Wiązania libproxy dla Pythona | |
107 | Group: Libraries/Python | |
108 | # uses libproxy shared library | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description -n python-libproxy | |
112 | libproxy Python bindings. | |
113 | ||
114 | %description -n python-libproxy -l pl.UTF-8 | |
115 | Wiązania libproxy dla Pythona. | |
116 | ||
128597ac JB |
117 | %package -n vala-libproxy |
118 | Summary: Vala bindings for libproxy API | |
119 | Summary(pl.UTF-8): Wiązania API libproxy dla języka Vala | |
120 | Group: Development/Languages | |
121 | Requires: %{name}-devel = %{version}-%{release} | |
122 | ||
123 | %description -n vala-libproxy | |
124 | Vala bindings for libproxy API. | |
125 | ||
126 | %description -n vala-libproxy -l pl.UTF-8 | |
127 | Wiązania API libproxy dla języka Vala. | |
128 | ||
705e407b JB |
129 | %package networkmanager |
130 | Summary: NetworkManager plugin for libproxy | |
131 | Summary(pl.UTF-8): Wtyczka NetworkManager dla libproxy | |
132 | Group: Libraries | |
133 | Requires: %{name} = %{version}-%{release} | |
134 | ||
135 | %description networkmanager | |
136 | NetworkManager configuration plugin for libproxy. | |
137 | ||
138 | %description networkmanager -l pl.UTF-8 | |
139 | Wtyczka konfiguracji NetworkManager dla libproxy. | |
140 | ||
d264af18 | 141 | %package gnome |
7333df52 JB |
142 | Summary: GNOME plugin for libproxy |
143 | Summary(pl.UTF-8): Wtyczka GNOME dla libproxy | |
d264af18 KK |
144 | Group: Libraries |
145 | Requires: %{name} = %{version}-%{release} | |
f39b9aec | 146 | Requires: glib2 >= 1:2.26 |
d264af18 KK |
147 | |
148 | %description gnome | |
7333df52 | 149 | GNOME (GConf) configuration plugin for libproxy. |
d264af18 | 150 | |
7333df52 JB |
151 | %description gnome -l pl.UTF-8 |
152 | Wtyczka konfiguracji GNOME (GConf) dla libproxy. | |
d264af18 KK |
153 | |
154 | %package kde | |
7333df52 JB |
155 | Summary: KDE plugin for libproxy |
156 | Summary(pl.UTF-8): Wtyczka KDE dla libproxy | |
d264af18 KK |
157 | Group: Libraries |
158 | Requires: %{name} = %{version}-%{release} | |
159 | ||
160 | %description kde | |
7333df52 | 161 | KDE configuration plugin for libproxy. |
d264af18 | 162 | |
7333df52 JB |
163 | %description kde -l pl.UTF-8 |
164 | Wtyczka konfiguracji KDE dla libproxy | |
d264af18 KK |
165 | |
166 | %package mozjs | |
7333df52 JB |
167 | Summary: MozJS plugin for libproxy |
168 | Summary(pl.UTF-8): Wtyczka MozJS dla libproxy | |
d264af18 | 169 | Group: Libraries |
7333df52 | 170 | Requires: %{name} = %{version}-%{release} |
d264af18 KK |
171 | |
172 | %description mozjs | |
7333df52 | 173 | MozJS (XULrunner/JavaScript) configuration plugin for libproxy. |
d264af18 | 174 | |
7333df52 JB |
175 | %description mozjs -l pl.UTF-8 |
176 | Wtyczka konfiguracji MozJS (XULrunner/JavaScript) dla libproxy. | |
d264af18 KK |
177 | |
178 | %package webkit | |
7333df52 JB |
179 | Summary: WebKit plugin for libproxy |
180 | Summary(pl.UTF-8): Wtyczka WebKit dla libproxy | |
d264af18 | 181 | Group: Libraries |
7333df52 | 182 | Requires: %{name} = %{version}-%{release} |
d264af18 KK |
183 | |
184 | %description webkit | |
7333df52 | 185 | WebKit (JavaScriptCore) configuration plugin for libproxy. |
d264af18 | 186 | |
7333df52 JB |
187 | %description webkit -l pl.UTF-8 |
188 | Wtyczka konfigracji WebKit (JavaScriptCore) dla libproxy. | |
d264af18 | 189 | |
86d2d1bd MB |
190 | %prep |
191 | %setup -q | |
192 | %patch0 -p1 | |
86d2d1bd MB |
193 | |
194 | %build | |
128597ac JB |
195 | install -d build |
196 | cd build | |
197 | %cmake .. \ | |
128597ac JB |
198 | -DLIB_INSTALL_DIR=%{_libdir} \ |
199 | -DLIBEXEC_INSTALL_DIR=%{_libdir}/libproxy \ | |
f39b9aec | 200 | -DFORCE_SYSTEM_LIBMODMAN=ON \ |
128597ac JB |
201 | -DPERL_VENDORINSTALL=ON \ |
202 | -DWITH_DOTNET=ON \ | |
203 | %{!?with_xulrunner:-DWITH_MOZJS=OFF} \ | |
204 | -DWITH_VALA=ON \ | |
f39b9aec JB |
205 | %{!?with_webkit:-DWITH_WEBKIT=OFF} \ |
206 | %{?with_webkit:-DWITH_WEBKIT3=ON} | |
128597ac | 207 | |
86d2d1bd MB |
208 | %{__make} |
209 | ||
210 | %install | |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
128597ac | 213 | %{__make} -C build install \ |
86d2d1bd MB |
214 | DESTDIR=$RPM_BUILD_ROOT |
215 | ||
216 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
217 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
218 | %py_postclean | |
219 | ||
220 | %clean | |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
223 | %post -p /sbin/ldconfig | |
224 | %postun -p /sbin/ldconfig | |
225 | ||
226 | %files | |
227 | %defattr(644,root,root,755) | |
128597ac | 228 | %doc AUTHORS ChangeLog NEWS README |
86d2d1bd MB |
229 | %attr(755,root,root) %{_bindir}/proxy |
230 | %attr(755,root,root) %{_libdir}/libproxy.so.*.*.* | |
128597ac | 231 | %attr(755,root,root) %ghost %{_libdir}/libproxy.so.1 |
86d2d1bd MB |
232 | %dir %{_libdir}/%{name} |
233 | %dir %{_libdir}/%{name}/%{version} | |
128597ac | 234 | %dir %{_libdir}/%{name}/%{version}/modules |
86d2d1bd MB |
235 | |
236 | %files devel | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/libproxy.so | |
705e407b | 239 | %{_includedir}/proxy.h |
86d2d1bd | 240 | %{_pkgconfigdir}/libproxy-1.0.pc |
128597ac JB |
241 | %{_datadir}/cmake/Modules/Findlibproxy.cmake |
242 | ||
243 | %files -n dotnet-libproxy-sharp | |
244 | %defattr(644,root,root,755) | |
245 | %{_prefix}/lib/mono/gac/libproxy-sharp | |
246 | %{_prefix}/lib/mono/libproxy-sharp | |
86d2d1bd | 247 | |
128597ac | 248 | %files -n dotnet-libproxy-sharp-devel |
86d2d1bd | 249 | %defattr(644,root,root,755) |
128597ac JB |
250 | %{_prefix}/lib/mono/libproxy-sharp |
251 | %{_pkgconfigdir}/libproxy-sharp-1.0.pc | |
252 | ||
253 | %files -n perl-Net-Libproxy | |
254 | %defattr(644,root,root,755) | |
255 | %{perl_vendorarch}/Net/Libproxy.pm | |
256 | %dir %{perl_vendorarch}/auto/Net/Libproxy | |
257 | %attr(755,root,root) %{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so | |
86d2d1bd MB |
258 | |
259 | %files -n python-libproxy | |
260 | %defattr(644,root,root,755) | |
705e407b JB |
261 | %{py_sitescriptdir}/libproxy.py[co] |
262 | ||
128597ac JB |
263 | %files -n vala-libproxy |
264 | %defattr(644,root,root,755) | |
265 | %{_datadir}/vala/vapi/libproxy-1.0.vapi | |
266 | ||
705e407b JB |
267 | %files networkmanager |
268 | %defattr(644,root,root,755) | |
128597ac | 269 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/modules/network_networkmanager.so |
d264af18 KK |
270 | |
271 | %files gnome | |
24445d20 | 272 | %defattr(644,root,root,755) |
f39b9aec | 273 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/modules/config_gnome3.so |
f7a0d1cc | 274 | %attr(755,root,root) %{_libdir}/%{name}/pxgsettings |
d264af18 | 275 | |
128597ac | 276 | %if %{with kde} |
d264af18 | 277 | %files kde |
24445d20 | 278 | %defattr(644,root,root,755) |
128597ac JB |
279 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/modules/config_kde4.so |
280 | %endif | |
d264af18 | 281 | |
aa7b5c69 | 282 | %if %{with xulrunner} |
d264af18 | 283 | %files mozjs |
24445d20 | 284 | %defattr(644,root,root,755) |
128597ac | 285 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so |
aa7b5c69 | 286 | %endif |
d264af18 | 287 | |
705e407b | 288 | %if %{with webkit} |
d264af18 | 289 | %files webkit |
24445d20 | 290 | %defattr(644,root,root,755) |
128597ac | 291 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so |
705e407b | 292 | %endif |