# # spec file for package libproxy (Version 0.2.3) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Url: http://code.google.com/p/libproxy/ Name: libproxy Group: System/Libraries Summary: libproxy is a library that provides automatic proxy configuration management Version: 0.2.3 Release: 2 Source: http://libproxy.googlecode.com/files/%{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-dbus.diff Patch1: %{name}-svn-277.patch License: LGPL v2.1 or later BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: xorg-x11-libXmu-devel BuildRequires: gconf2-devel BuildRequires: NetworkManager-devel BuildRequires: python-devel %if 0%{suse_version} < 1110 BuildRequires: mozilla-xulrunner181-devel %else BuildRequires: mozilla-xulrunner190-devel %endif BuildRequires: dbus-1-devel BuildRequires: libwebkit-devel %description libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package tools License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries Requires: %{name}0 = %{version} %description tools libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package devel License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: Development/Libraries/C and C++ Requires: %{name}0 = %{version} %description devel libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package -n libproxy0 License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries %description -n libproxy0 libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package -n libproxy-gnome License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries Requires: %{name}0 = %{version} Supplements: packageand(%{name}0:gconf2) %description -n libproxy-gnome libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package -n libproxy-kde License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries Requires: %{name}0 = %{version} Supplements: packageand(%{name}0:libkde4) %description -n libproxy-kde libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package -n libproxy-mozjs License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries Requires: %{name}0 = %{version} Supplements: packageand(%{name}0:firefox) %description -n libproxy-mozjs libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package -n libproxy-webkit License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries Requires: %{name}0 = %{version} Supplements: packageand(%{name}0:libwebkit-1) %description -n libproxy-webkit libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package -n libproxy-networkmanager License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries Requires: %{name}0 = %{version} Supplements: packageand(%{name}0:NetworkManager) %description -n libproxy-networkmanager libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %package -n python-libproxy License: GPL v2 or later; LGPL v2.1 or later Summary: libproxy is a library that provides automatic proxy configuration management Group: System/Libraries Requires: %{name}0 = %{version} Requires: python %description -n python-libproxy libproxy offers the following features: * extremely small core footprint (< 35K) * no external dependencies within libproxy core (libproxy plugins may have dependencies) * only 3 functions in the stable external API * dynamic adjustment to changing network topology * a standard way of dealing with proxy settings across all scenarios Authors: -------- Nathaniel McCallum Alex Panait %prep %setup -q %patch0 -p1 %patch1 -p1 %build autoreconf -f -i %configure --with-python --disable-static %{__make} %{?jobs:-j%jobs} %install %makeinstall rm $RPM_BUILD_ROOT%{_libdir}/%{name}.la %post -n %{name}0 -p /sbin/ldconfig %postun -n %{name}0 -p /sbin/ldconfig %files tools %defattr(-, root, root) %{_bindir}/proxy %files -n %{name}0 %defattr(-, root, root) %{_libdir}/%{name}.so.* %dir %{_libdir}/%{name}/ %dir %{_libdir}/%{name}/%{version} %dir %{_libdir}/%{name}/%{version}/plugins %{_libdir}/%{name}/%{version}/plugins/envvar.so %{_libdir}/%{name}/%{version}/plugins/file.so %files devel %defattr(-, root, root) %{_includedir}/proxy.h %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}-1.0.pc %files -n %{name}-kde %defattr(-, root, root) %{_libdir}/%{name}/%{version}/plugins/kde.so %files -n %{name}-gnome %defattr(-, root, root) %{_libdir}/%{name}/%{version}/plugins/gnome.so %files -n %{name}-networkmanager %defattr(-, root, root) %{_libdir}/%{name}/%{version}/plugins/networkmanager.so %files -n %{name}-webkit %defattr(-, root, root) %{_libdir}/%{name}/%{version}/plugins/webkit.so %files -n %{name}-mozjs %defattr(-, root, root) %{_libdir}/%{name}/%{version}/plugins/mozjs.so %files -n python-%{name} %defattr(-, root, root) %{py_sitedir}/%{name}.py %changelog * Fri Feb 06 2009 vuntz@novell.com - Add missing Requires on libproxy0 for the subpackages. * Tue Feb 03 2009 hfiguiere@suse.de - Initial packaging.