|
@@ -1,38 +1,51 @@
|
|
-%{!?python_sitelib: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
+%bcond_with mozjs
|
|
|
|
+
|
|
|
|
+%define _unpackaged_files_terminate_build 1
|
|
|
|
|
|
Summary: A library handling all the details of proxy configuration
|
|
Summary: A library handling all the details of proxy configuration
|
|
Name: libproxy
|
|
Name: libproxy
|
|
-Version: 0.4.11
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Version: 0.4.15
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
-URL: http://code.google.com/p/libproxy/
|
|
|
|
-Source0: http://libproxy.googlecode.com/files/libproxy-%{version}.tar.gz
|
|
|
|
|
|
+URL: http://libproxy.github.io/libproxy
|
|
|
|
+Source0: https://github.com/libproxy/libproxy/releases/download/%{version}/libproxy-%{version}.tar.xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
|
|
+BuildRequires: python3-devel
|
|
#Virtual Provides - We need either mozjs or WebKit
|
|
#Virtual Provides - We need either mozjs or WebKit
|
|
|
|
+%if %{with mozjs}
|
|
Requires: %{name}-pac >= %{version}
|
|
Requires: %{name}-pac >= %{version}
|
|
|
|
+%endif
|
|
#
|
|
#
|
|
Requires: libproxy-python = %{version}-%{release}
|
|
Requires: libproxy-python = %{version}-%{release}
|
|
Requires: libproxy-bin = %{version}-%{release}
|
|
Requires: libproxy-bin = %{version}-%{release}
|
|
|
|
|
|
|
|
+Obsoletes: %{name}-mozjs < 1.4.15
|
|
|
|
+Obsoletes: %{name}-webkitgtk3 < 1.4.15
|
|
|
|
+
|
|
BuildRequires: cmake
|
|
BuildRequires: cmake
|
|
# gnome
|
|
# gnome
|
|
BuildRequires: GConf2-devel
|
|
BuildRequires: GConf2-devel
|
|
|
|
+%if %{with mozjs}
|
|
# mozjs
|
|
# mozjs
|
|
-BuildRequires: js-devel
|
|
|
|
|
|
+BuildRequires: mozjs >= 38
|
|
|
|
+%endif
|
|
# NetworkManager
|
|
# NetworkManager
|
|
BuildRequires: NetworkManager-devel
|
|
BuildRequires: NetworkManager-devel
|
|
BuildRequires: dbus-devel
|
|
BuildRequires: dbus-devel
|
|
|
|
+BuildRequires: glib2
|
|
# webkit (gtk)
|
|
# webkit (gtk)
|
|
-BuildRequires: WebKit3-gtk-devel
|
|
|
|
|
|
+BuildRequires: webkitgtk4-devel
|
|
# kde
|
|
# kde
|
|
BuildRequires: kdelibs-devel
|
|
BuildRequires: kdelibs-devel
|
|
BuildRequires: libXmu-devel
|
|
BuildRequires: libXmu-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libX11-devel
|
|
|
|
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
|
|
|
Provides: %{name}-webkit = %{version}-%{release}
|
|
Provides: %{name}-webkit = %{version}-%{release}
|
|
Obsoletes: %{name}-webkit < %{version}-%{release}
|
|
Obsoletes: %{name}-webkit < %{version}-%{release}
|
|
@@ -71,6 +84,14 @@ Requires: %{name} = %{version}-%{release}
|
|
%description python
|
|
%description python
|
|
The %{name}-python package contains the python binding for %{name}
|
|
The %{name}-python package contains the python binding for %{name}
|
|
|
|
|
|
|
|
+%package python3
|
|
|
|
+Summary: Binding for %{name} and python
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description python3
|
|
|
|
+The %{name}-python package contains the python binding for %{name}
|
|
|
|
+
|
|
%package gnome
|
|
%package gnome
|
|
Summary: Plugin for %{name} and gnome
|
|
Summary: Plugin for %{name} and gnome
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
@@ -87,6 +108,7 @@ Requires: %{name} = %{version}-%{release}
|
|
%description kde
|
|
%description kde
|
|
The %{name}-kde package contains the %{name} plugin for kde.
|
|
The %{name}-kde package contains the %{name} plugin for kde.
|
|
|
|
|
|
|
|
+%if %{with mozjs}
|
|
%package mozjs
|
|
%package mozjs
|
|
Summary: Plugin for %{name} and mozjs
|
|
Summary: Plugin for %{name} and mozjs
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
@@ -98,16 +120,18 @@ Provides: %{name}-pac = %{version}-%{release}
|
|
%description mozjs
|
|
%description mozjs
|
|
The %{name}-mozjs package contains the %{name} plugin for mozjs.
|
|
The %{name}-mozjs package contains the %{name} plugin for mozjs.
|
|
|
|
|
|
-%package webkitgtk3
|
|
|
|
-Summary: Plugin for %{name} and webkitgtk3
|
|
|
|
|
|
+%package webkitgtk4
|
|
|
|
+Summary: Plugin for %{name} and webkitgtk4
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Requires: %{name} = %{version}
|
|
Requires: %{name} = %{version}
|
|
Provides: %{name}-pac = %{version}-%{release}
|
|
Provides: %{name}-pac = %{version}-%{release}
|
|
|
|
|
|
-%description webkitgtk3
|
|
|
|
|
|
+%description webkitgtk4
|
|
The %{name}-webkitgtk3 package contains the %{name} plugin for
|
|
The %{name}-webkitgtk3 package contains the %{name} plugin for
|
|
webkitgtk3.
|
|
webkitgtk3.
|
|
|
|
|
|
|
|
+%endif
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
@@ -121,7 +145,7 @@ developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-sed -i "s|mozjs185>=1.8.5|mozjs185|" libproxy/cmake/modules/pacrunner_mozjs.cmk
|
|
|
|
|
|
+#sed -i "s|mozjs185>=1.8.5|mozjs185|" libproxy/cmake/modules/pacrunner_mozjs.cmk
|
|
|
|
|
|
%build
|
|
%build
|
|
%cmake \
|
|
%cmake \
|
|
@@ -129,6 +153,7 @@ sed -i "s|mozjs185>=1.8.5|mozjs185|" libproxy/cmake/modules/pacrunner_mozjs.cmk
|
|
-DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
|
|
-DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
|
|
-DWITH_PERL=OFF \
|
|
-DWITH_PERL=OFF \
|
|
-DWITH_WEBKIT3=ON \
|
|
-DWITH_WEBKIT3=ON \
|
|
|
|
+ -DWITH_KDE=ON \
|
|
.
|
|
.
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
|
|
@@ -165,6 +190,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{python_sitelib}/libproxy.py
|
|
%{python_sitelib}/libproxy.py
|
|
|
|
|
|
|
|
+%files python3
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%{python3_sitelib}/libproxy.py
|
|
|
|
+
|
|
%files gnome
|
|
%files gnome
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
|
|
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
|
|
@@ -172,15 +201,18 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files kde
|
|
%files kde
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%{_libdir}/%{name}/%{version}/modules/config_kde4.so
|
|
|
|
|
|
+%{_libdir}/%{name}/%{version}/modules/config_kde.so
|
|
|
|
|
|
|
|
+# Build the pacrunner into libproxy unless we are building for multiple engines
|
|
|
|
+%if %{with mozjs}
|
|
%files mozjs
|
|
%files mozjs
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
|
|
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
|
|
|
|
|
|
-%files webkitgtk3
|
|
|
|
|
|
+%files webkitgtk4
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
|
|
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
|
|
|
|
+%endif
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -191,6 +223,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.15-1
|
|
|
|
+- updated to 0.4.15.
|
|
|
|
+- enabled python3 support.
|
|
|
|
+- disabled mozjs as default.
|
|
|
|
+- switched to webkitgtk4.
|
|
|
|
+
|
|
* Thu Jul 07 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.11-2
|
|
* Thu Jul 07 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.11-2
|
|
- rebuild with gcc-5.4.0
|
|
- rebuild with gcc-5.4.0
|
|
|
|
|