2009-02-13 04:41:31 +01:00
|
|
|
#
|
2010-09-13 11:41:17 +02:00
|
|
|
# spec file for package libproxy (Version 0.4.6)
|
2009-02-13 04:41:31 +01:00
|
|
|
#
|
2010-02-19 16:32:14 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-02-13 04:41:31 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%define build_core_not_modules 1
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%define have_mono 1
|
|
|
|
%else
|
|
|
|
%define have_mono 0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1120
|
2010-04-01 03:19:51 +02:00
|
|
|
%define xulrunner_ver 192
|
|
|
|
%else
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
2009-05-28 02:29:53 +02:00
|
|
|
%define xulrunner_ver 191
|
2009-04-24 02:55:32 +02:00
|
|
|
%else
|
|
|
|
%define xulrunner_ver 190
|
|
|
|
%endif
|
2010-04-01 03:19:51 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
Url: http://code.google.com/p/libproxy/
|
2009-04-24 02:55:32 +02:00
|
|
|
%define _name libproxy
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
Name: libproxy
|
|
|
|
Group: System/Libraries
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy provides consistent proxy configuration to applications
|
2010-09-13 11:41:17 +02:00
|
|
|
Version: 0.4.6
|
2010-12-19 13:08:53 +01:00
|
|
|
Release: 2
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?build_snapshot}
|
2010-08-28 00:58:31 +02:00
|
|
|
%define _sourcename %{_name}
|
|
|
|
%else
|
|
|
|
%define _sourcename %{_name}-%{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2010-08-28 00:58:31 +02:00
|
|
|
Source: http://libproxy.googlecode.com/files/%{_sourcename}.tar.bz2
|
2010-08-24 17:43:14 +02:00
|
|
|
# Script used for automatic snapshot updates
|
|
|
|
Source98: update-from-svn.sh
|
2010-02-19 16:32:14 +01:00
|
|
|
Source99: baselibs.conf
|
2010-12-14 14:43:56 +01:00
|
|
|
# PATCH-FEATURE-UPSTREAM libproxy-sysconfig-support.patch bnc#655483 dmacvicar@novell.com -- Add /etc/sysconfig support. Also tracked at http://code.google.com/p/libproxy/issues/detail?id=150
|
|
|
|
Patch0: libproxy-sysconfig-support.patch
|
2010-09-03 15:25:33 +02:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-02-13 04:41:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2010-08-24 17:43:14 +02:00
|
|
|
BuildRequires: libmodman-devel
|
|
|
|
BuildRequires: pkgconfig
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: zlib-devel
|
2010-08-24 17:43:14 +02:00
|
|
|
%if !%{build_core_not_modules}
|
|
|
|
%if ! 0%{?windows}
|
2009-02-13 04:41:31 +01:00
|
|
|
BuildRequires: dbus-1-devel
|
2009-04-24 02:55:32 +02:00
|
|
|
BuildRequires: gconf2-devel
|
2009-08-17 14:32:29 +02:00
|
|
|
# For directory ownership, but also because we want to rebuild the modules if
|
2009-04-24 02:55:32 +02:00
|
|
|
# the library changed
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: libproxy1
|
2009-02-13 04:41:31 +01:00
|
|
|
BuildRequires: libwebkit-devel
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2009-04-24 02:55:32 +02:00
|
|
|
BuildRequires: mozilla-xulrunner%{xulrunner_ver}-devel
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: xulrunner-devel
|
|
|
|
%endif
|
2009-04-24 02:55:32 +02:00
|
|
|
BuildRequires: NetworkManager-devel
|
2009-10-09 20:27:03 +02:00
|
|
|
BuildRequires: libkde4-devel
|
|
|
|
BuildRequires: libqt4-devel
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2010-03-05 02:14:28 +01:00
|
|
|
%else
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?have_mono}
|
|
|
|
BuildRequires: mono-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildRequires: python-devel
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
2010-03-05 02:14:28 +01:00
|
|
|
|
2010-08-24 17:43:14 +02:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%__python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%__python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%{!?_assemblies_dir: %global _assemblies_dir %(pkg-config cecil --variable=assemblies_dir)}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
2009-02-13 04:41:31 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%if %build_core_not_modules
|
2009-04-24 02:55:32 +02:00
|
|
|
|
2009-02-13 04:41:31 +01:00
|
|
|
%package tools
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-02-16 18:41:52 +01:00
|
|
|
Summary: A simple application using libproxy
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%description tools
|
2009-02-16 18:41:52 +01:00
|
|
|
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.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%package devel
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy provides consistent proxy configuration to applications - Development Files
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
2009-02-13 04:41:31 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy provides consistent proxy configuration to applications
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1
|
2009-02-13 04:41:31 +01:00
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
2009-02-13 04:41:31 +01:00
|
|
|
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
|
|
|
|
|
2009-04-24 02:55:32 +02:00
|
|
|
%package -n python-libproxy
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-04-24 02:55:32 +02:00
|
|
|
Summary: Python bindings for libproxy
|
|
|
|
Group: System/Libraries
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
2010-03-05 02:14:28 +01:00
|
|
|
BuildArch: noarch
|
2009-04-24 02:55:32 +02:00
|
|
|
%py_requires
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
|
|
|
Requires: libproxy1 = %{version}
|
2009-04-24 02:55:32 +02:00
|
|
|
|
|
|
|
%description -n python-libproxy
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
2009-04-24 02:55:32 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2010-05-28 17:22:42 +02:00
|
|
|
%package -n perl-Net-Libproxy
|
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
|
|
|
Summary: Perl bindings for libproxy
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
# For Fedora at least perl = perl_version does not work.
|
|
|
|
Requires: perl >= %{perl_version}
|
2010-05-28 17:22:42 +02:00
|
|
|
|
|
|
|
%description -n perl-Net-Libproxy
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
|
|
|
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
|
|
|
|
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?have_mono}
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%package -n libproxy-sharp
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: .Net bindings for libproxy
|
|
|
|
Group: Development/Languages/Mono
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2009-08-17 14:32:29 +02:00
|
|
|
|
|
|
|
%description -n libproxy-sharp
|
|
|
|
libproxy offers the following features: * extremely small core
|
|
|
|
footprint (< 35K)
|
|
|
|
|
|
|
|
* no external dependencies within libproxy core (libproxy modules
|
|
|
|
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
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-04-24 02:55:32 +02:00
|
|
|
|
|
|
|
%else
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-config-gnome
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module for GNOME configuration
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-03-05 02:14:28 +01:00
|
|
|
Recommends: libproxy1-pacrunner = %{version}
|
|
|
|
Supplements: packageand(libproxy1:gconf2)
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
|
|
|
Requires: libproxy1-pacrunner = %{version}
|
|
|
|
%endif
|
2009-02-26 12:23:48 +01:00
|
|
|
Provides: libproxy-gnome = %{version}
|
|
|
|
Obsoletes: libproxy-gnome < %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-config-gnome
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to query GNOME about
|
2009-02-16 18:41:52 +01:00
|
|
|
proxy settings.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-config-kde4
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module for KDE configuration
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-03-05 02:14:28 +01:00
|
|
|
Recommends: libproxy1-pacrunner = %{version}
|
|
|
|
Supplements: packageand(libproxy1:libkde4)
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
|
|
|
Requires: libproxy1-pacrunner = %{version}
|
|
|
|
%endif
|
2009-02-26 12:23:48 +01:00
|
|
|
Provides: libproxy-kde = %{version}
|
|
|
|
Obsoletes: libproxy-kde < %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-config-kde4
|
2009-10-09 20:27:03 +02:00
|
|
|
A module to extend libproxy with capabilities to query KDE4 about proxy
|
2009-02-16 18:41:52 +01:00
|
|
|
settings.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-pacrunner-mozjs
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module to support wpad/pac parsing via Mozilla JavaScript Engine
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-03-05 02:14:28 +01:00
|
|
|
Supplements: packageand(libproxy1:mozilla-xulrunner%{xulrunner_ver})
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-08-17 14:32:29 +02:00
|
|
|
# A virtual symbol to identify that this is a pacrunner.
|
2010-03-05 02:14:28 +01:00
|
|
|
Provides: libproxy1-pacrunner = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-pacrunner-mozjs
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to pass addresses to a
|
2009-02-16 18:41:52 +01:00
|
|
|
WPAD/PAC script and have it find the correct proxy.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-pacrunner-webkit
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module to support WPAD/PAC parsing via WebKit JavaScript Engine
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Supplements: packageand(libproxy1:libwebkitgtk-0)
|
|
|
|
%endif
|
2009-08-17 14:32:29 +02:00
|
|
|
# A virtual symbol to identify that this is a pacrunner.
|
2010-03-05 02:14:28 +01:00
|
|
|
Provides: libproxy1-pacrunner = %{version}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-pacrunner-webkit
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to pass addresses to a
|
2009-02-16 18:41:52 +01:00
|
|
|
WPAD/PAC script and have it find the correct proxy.
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%package -n libproxy1-networkmanager
|
2010-02-19 16:32:14 +01:00
|
|
|
License: GPLv2+ ; LGPLv2.1+
|
2009-08-17 14:32:29 +02:00
|
|
|
Summary: Libproxy module for NetworkManager configuration
|
2009-02-13 04:41:31 +01:00
|
|
|
Group: System/Libraries
|
2010-03-05 02:14:28 +01:00
|
|
|
Requires: libproxy1 = %{version}
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-03-05 02:14:28 +01:00
|
|
|
Supplements: packageand(libproxy1:NetworkManager)
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%description -n libproxy1-networkmanager
|
2009-08-17 14:32:29 +02:00
|
|
|
A module to extend libproxy with capabilities to query NetworkManager
|
|
|
|
about network configuration changes.
|
|
|
|
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%prep
|
2010-08-28 00:58:31 +02:00
|
|
|
%setup -q -n %{_sourcename}
|
2010-03-18 23:49:11 +01:00
|
|
|
mkdir build
|
2010-12-14 14:43:56 +01:00
|
|
|
%patch0 -p0
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%build
|
2010-03-18 23:49:11 +01:00
|
|
|
cd build
|
2010-08-24 17:43:14 +02:00
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%if 0%{?suse_version} < 1120 && 0%{?suse_version}
|
|
|
|
export CXXFLAGS="%{optflags} -DXP_UNIX"
|
|
|
|
%endif
|
|
|
|
%if 0%{?windows}
|
|
|
|
export CXXFLAGS="%{optflags} -fno-stack-protector -static-libgcc"
|
|
|
|
%endif
|
2010-03-18 23:49:11 +01:00
|
|
|
cmake \
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?windows}
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/mingw32.cmake \
|
|
|
|
-DBUILD_TESTING=False \
|
|
|
|
-DWITH_DOTNET=OFF \
|
|
|
|
%else
|
2010-05-28 17:22:42 +02:00
|
|
|
-DWITH_VALA=yes \
|
2010-08-24 17:43:14 +02:00
|
|
|
-DWITH_DOTNET=%{have_mono} \
|
|
|
|
-DFORCE_SYSTEM_LIBMODMAN=ON \
|
|
|
|
%endif
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DBIN_INSTALL_DIR=%{_bindir} \
|
|
|
|
-DLIB_INSTALL_DIR=%{_libdir} \
|
|
|
|
-DMODULE_INSTALL_DIR=%{_libdir}/libproxy-%{version}/modules \
|
|
|
|
-DLIBEXEC_INSTALL_DIR=%{_libexecdir}/libproxy-%{version} \
|
2010-09-13 11:41:17 +02:00
|
|
|
-DPYTHON_SITEPKG_DIR=%{python_sitelib} \
|
2010-08-24 17:43:14 +02:00
|
|
|
-DSHARE_INSTALL_PREFIX=%{_datadir} \
|
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir} \
|
2010-05-28 17:22:42 +02:00
|
|
|
-DPERL_VENDORINSTALL=yes \
|
2010-08-24 17:43:14 +02:00
|
|
|
%if ! %build_core_not_modules
|
|
|
|
-DWITH_DOTNET=OFF \
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1120
|
|
|
|
-DCMAKE_BUILD_TYPE=DebugFull \
|
|
|
|
-DCMAKE_INSTALL_CONFIG_NAME=DebugFull \
|
|
|
|
%else
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_INSTALL_CONFIG_NAME=RelWithDebInfo \
|
|
|
|
%endif
|
2010-03-18 23:49:11 +01:00
|
|
|
..
|
2010-08-24 17:43:14 +02:00
|
|
|
%{__make} VERBOSE=1
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%install
|
2010-03-18 23:49:11 +01:00
|
|
|
cd build
|
2010-08-24 17:43:14 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
# On Windows we also do not want to provide the static libraries.
|
|
|
|
%if 0%{?windows}
|
|
|
|
find %{buildroot}%{_libdir} -name '*.dll.a' -delete -print
|
|
|
|
rm %{buildroot}%{_libdir}/libmodman.dll
|
|
|
|
%endif
|
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%if %build_core_not_modules
|
|
|
|
# Build the basic directory structure for the modules so we can
|
|
|
|
# own the directories in the main library package
|
2010-08-24 17:43:14 +02:00
|
|
|
install -d %{buildroot}%{_libexecdir}/libproxy-%{version}
|
|
|
|
install -d %{buildroot}%{_libdir}/%{name}-%{version}/modules
|
2009-04-24 02:55:32 +02:00
|
|
|
%else
|
|
|
|
# remove files that are part of the core
|
2010-08-24 17:43:14 +02:00
|
|
|
rm -f %{buildroot}%{_includedir}/*.h
|
2010-03-05 02:14:28 +01:00
|
|
|
# Delete all files that exist in the base libproxy package
|
2010-08-24 17:43:14 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/proxy%{?windows:.exe}
|
|
|
|
rm -f %{buildroot}%{_libdir}/libproxy.*
|
|
|
|
rm -f %{buildroot}%{python_sitelib}/*.py
|
|
|
|
rm -f %{buildroot}%{_libdir}/pkgconfig/libproxy-1.0.pc
|
|
|
|
rm -f %{buildroot}%{_datadir}/cmake/Modules/Findlibproxy.cmake
|
|
|
|
rm -f %{buildroot}%{_datadir}/vala/vapi/libproxy-1.0.vapi
|
|
|
|
rm -f %{buildroot}%{perl_vendorarch}/Net/Libproxy.pm
|
|
|
|
rm -f %{buildroot}%{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
2010-08-24 17:43:14 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
cd build
|
|
|
|
make test
|
|
|
|
|
2009-08-17 14:32:29 +02:00
|
|
|
%if %build_core_not_modules
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%post -n libproxy1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libproxy1 -p /sbin/ldconfig
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_bindir}/proxy%{?windows:.exe}
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%doc COPYING README AUTHORS
|
|
|
|
%if ! 0%{?windows}
|
2010-03-05 02:14:28 +01:00
|
|
|
%{_libdir}/libproxy.so.*
|
2010-08-24 17:43:14 +02:00
|
|
|
%else
|
|
|
|
%{_libdir}/libproxy.dll
|
|
|
|
%endif
|
|
|
|
%dir %{_libexecdir}/libproxy-%{version}
|
|
|
|
%dir %{_libdir}/libproxy-%{version}
|
|
|
|
%dir %{_libdir}/libproxy-%{version}/modules
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2009-02-26 12:23:48 +01:00
|
|
|
%{_includedir}/*.h
|
2010-08-24 17:43:14 +02:00
|
|
|
%if ! 0%{?windows}
|
2009-02-26 12:23:48 +01:00
|
|
|
%{_libdir}/*.so
|
2010-03-05 02:14:28 +01:00
|
|
|
%{_libdir}/pkgconfig/libproxy-1.0.pc
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{have_mono}
|
|
|
|
%{_libdir}/pkgconfig/libproxy-sharp-1.0.pc
|
|
|
|
%endif
|
2010-03-18 23:49:11 +01:00
|
|
|
%{_datadir}/cmake/Modules/Findlibproxy.cmake
|
2010-05-28 17:22:42 +02:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/libproxy-1.0.vapi
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2009-04-24 02:55:32 +02:00
|
|
|
%files -n python-libproxy
|
|
|
|
%defattr(-, root, root)
|
2009-08-17 14:32:29 +02:00
|
|
|
%{python_sitelib}/*.py
|
2010-05-28 17:22:42 +02:00
|
|
|
|
2010-08-24 17:43:14 +02:00
|
|
|
%if 0%{?have_mono}
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2010-08-24 17:43:14 +02:00
|
|
|
%files -n libproxy-sharp
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_assemblies_dir}/gac/libproxy-sharp
|
|
|
|
%{_assemblies_dir}/libproxy-sharp
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! 0%{?windows}
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2010-05-28 17:22:42 +02:00
|
|
|
%files -n perl-Net-Libproxy
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{perl_vendorarch}/Net
|
|
|
|
%dir %{perl_vendorarch}/auto/Net
|
|
|
|
%dir %{perl_vendorarch}/auto/Net/Libproxy
|
|
|
|
%{perl_vendorarch}/Net/Libproxy.pm
|
|
|
|
%{perl_vendorarch}/auto/Net/Libproxy/Libproxy.so
|
2010-08-24 17:43:14 +02:00
|
|
|
%endif
|
2009-04-24 02:55:32 +02:00
|
|
|
%else
|
|
|
|
|
2010-08-24 17:43:14 +02:00
|
|
|
%if ! 0%{?windows}
|
2010-09-03 15:25:33 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-config-kde4
|
2009-08-17 14:32:29 +02:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/config_kde4.so
|
2009-08-17 14:32:29 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-config-gnome
|
2009-08-17 14:32:29 +02:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/config_gnome.so
|
|
|
|
%{_libexecdir}/libproxy-%{version}/pxgconf
|
2009-08-17 14:32:29 +02:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-networkmanager
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/network_networkmanager.so
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-pacrunner-webkit
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/pacrunner_webkit.so
|
2009-02-13 04:41:31 +01:00
|
|
|
|
2010-03-05 02:14:28 +01:00
|
|
|
%files -n libproxy1-pacrunner-mozjs
|
2009-02-13 04:41:31 +01:00
|
|
|
%defattr(-, root, root)
|
2010-08-24 17:43:14 +02:00
|
|
|
%{_libdir}/libproxy-%{version}/modules/pacrunner_mozjs.so
|
|
|
|
%endif
|
2009-04-24 02:55:32 +02:00
|
|
|
%endif
|
2009-02-13 04:41:31 +01:00
|
|
|
|
|
|
|
%changelog
|