libproxy/libproxy.spec

319 lines
8.6 KiB
RPMSpec

#
# 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: 3
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 <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package tools
License: GPL v2 or later; LGPL v2.1 or later
Summary: A simple application using libproxy
Group: System/Libraries
Requires: %{name}0 = %{version}
%description tools
A simple application that will use libproxy to give the results you can
expect from other applications. It can be used to debug what would
happen in various cases.
Authors:
--------
Nathaniel McCallum <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package devel
License: GPL v2 or later; LGPL v2.1 or later
Summary: libproxy is a library that provides automatic proxy configuration management - development files
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 <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%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 <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package -n libproxy-gnome
License: GPL v2 or later; LGPL v2.1 or later
Summary: Libproxy plugin for GNOME configuration
Group: System/Libraries
Requires: %{name}0 = %{version}
Supplements: packageand(%{name}0:gconf2)
%description -n libproxy-gnome
A plugin to extend libproxy with capabilities to query GNOME about
proxy settings.
Authors:
--------
Nathaniel McCallum <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package -n libproxy-kde
License: GPL v2 or later; LGPL v2.1 or later
Summary: Libproxy plugin for KDE configuration
Group: System/Libraries
Requires: %{name}0 = %{version}
Supplements: packageand(%{name}0:libkde4)
%description -n libproxy-kde
A plugin to extend libproxy with capabilities to query KDE about proxy
settings.
Authors:
--------
Nathaniel McCallum <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package -n libproxy-mozjs
License: GPL v2 or later; LGPL v2.1 or later
Summary: Libproxy plugin to support wpad/pac parsing via Mozilla JavaScript Engine
Group: System/Libraries
Requires: %{name}0 = %{version}
Supplements: packageand(%{name}0:firefox)
%description -n libproxy-mozjs
A plugin to extend libproxy with capabilities to pass addresses to a
WPAD/PAC script and have it find the correct proxy.
Authors:
--------
Nathaniel McCallum <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package -n libproxy-webkit
License: GPL v2 or later; LGPL v2.1 or later
Summary: Libproxy plugin to support WPAD/PAC parsing via WebKit JavaScript Engine
Group: System/Libraries
Requires: %{name}0 = %{version}
Supplements: packageand(%{name}0:libwebkit-1)
%description -n libproxy-webkit
A plugin to extend libproxy with capabilities to pass addresses to a
WPAD/PAC script and have it find the correct proxy.
Authors:
--------
Nathaniel McCallum <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package -n libproxy-networkmanager
License: GPL v2 or later; LGPL v2.1 or later
Summary: Libproxy plugin for NetworkManager configuration
Group: System/Libraries
Requires: %{name}0 = %{version}
Supplements: packageand(%{name}0:NetworkManager)
%description -n libproxy-networkmanager
A plugin to extend libproxy with capabilities to query NetworkManager
about proxy settings.
Authors:
--------
Nathaniel McCallum <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%package -n python-libproxy
License: GPL v2 or later; LGPL v2.1 or later
Summary: Python bindings for libproxy
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 <nathaniel@natemccallum.com>
Alex Panait <kippled@gmail.com>
%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
* Mon Feb 16 2009 ro@suse.de
- added baselibs.conf
(libproxy0-32bit needed by libsoup-2_4-1-32bit)
* Fri Feb 06 2009 vuntz@novell.com
- Add missing Requires on libproxy0 for the subpackages.
* Tue Feb 03 2009 hfiguiere@suse.de
- Initial packaging.