2019-09-30 10:57:39 -04:00
|
|
|
Name: libproxy
|
2021-01-28 15:31:39 +08:00
|
|
|
Version: 0.4.17
|
2022-04-16 09:54:39 +08:00
|
|
|
Release: 2
|
2019-09-30 10:57:39 -04:00
|
|
|
Summary: Libproxy is a library that provides automatic proxy configuration management
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://libproxy.github.io/libproxy/
|
2021-01-28 15:31:39 +08:00
|
|
|
Source0: https://github.com/libproxy/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2019-09-30 10:57:39 -04:00
|
|
|
# Source1 comes from the Debian package.
|
|
|
|
|
Source1: proxy.1
|
|
|
|
|
|
2022-04-16 09:54:39 +08:00
|
|
|
Patch6000: backport-libproxy-0.4.17-fix-python-version-check.patch
|
|
|
|
|
|
2020-08-06 15:58:25 +08:00
|
|
|
BuildRequires: cmake >= 2.6.0 gcc-c++
|
2020-12-02 17:27:42 +08:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.26 pkgconfig(libnm) python3-devel
|
2019-11-06 19:39:36 +08:00
|
|
|
BuildRequires: pkgconfig(dbus-1) pkgconfig(javascriptcoregtk-4.0)
|
2019-09-30 10:57:39 -04:00
|
|
|
|
2020-12-02 17:27:42 +08:00
|
|
|
Provides: %{name}-bin %{name}-gnome %{name}-kde %{name}-networkmanager %{name}-pacrunner
|
2019-12-13 15:39:12 +08:00
|
|
|
Obsoletes: %{name}-bin %{name}-gnome %{name}-kde %{name}-mozjs %{name}-networkmanager %{name}-pacrunner
|
2019-09-30 10:57:39 -04:00
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
|
Summary: Binding for %{name} and python3
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
|
The python3 binding for libproxy.
|
|
|
|
|
|
2019-12-13 15:39:12 +08:00
|
|
|
%package webkitgtk4
|
|
|
|
|
Summary: plugin for webkit2gtk3
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-pac = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description webkitgtk4
|
|
|
|
|
plugin for webkit2gtk3.
|
|
|
|
|
|
2019-09-30 10:57:39 -04:00
|
|
|
%package devel
|
|
|
|
|
Summary: Libproxy provides consistent proxy configuration to applications - Development Files
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains libraries and header files for developing applications.
|
|
|
|
|
|
2019-11-06 19:39:36 +08:00
|
|
|
%package_help
|
2019-09-30 10:57:39 -04:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{cmake} \
|
|
|
|
|
-DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
|
2020-12-02 17:27:42 +08:00
|
|
|
-DBIPR=OFF \
|
2020-10-29 15:01:50 +08:00
|
|
|
-DWITH_PERL=OFF -DWITH_GNOME3=ON \
|
2020-12-02 17:27:42 +08:00
|
|
|
-DWITH_PYTHON3=ON -DWITH_WEBKIT3=ON -DWITH_MOZJS=OFF .
|
2019-09-30 10:57:39 -04:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}/%{version}/modules
|
|
|
|
|
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/proxy.1
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
2019-12-13 15:39:12 +08:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc AUTHORS README
|
|
|
|
|
%license COPYING
|
2019-09-30 10:57:39 -04:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
%{_bindir}/proxy
|
|
|
|
|
%{_libdir}/%{name}/%{version}/modules/*
|
|
|
|
|
%{_libexecdir}/pxgsettings
|
2019-12-13 15:39:12 +08:00
|
|
|
%exclude %{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
|
2019-09-30 10:57:39 -04:00
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
2019-12-13 15:39:12 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:57:39 -04:00
|
|
|
%{python3_sitelib}/__pycache__/*
|
|
|
|
|
%{python3_sitelib}/%{name}.*
|
|
|
|
|
|
2019-12-13 15:39:12 +08:00
|
|
|
%files webkitgtk4
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
|
|
|
|
|
|
2019-09-30 10:57:39 -04:00
|
|
|
%files devel
|
2019-12-13 15:39:12 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:57:39 -04:00
|
|
|
%{_includedir}/proxy.h
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/libproxy-1.0.pc
|
|
|
|
|
%{_datadir}/cmake/Modules/Findlibproxy.cmake
|
|
|
|
|
|
|
|
|
|
%files help
|
2019-12-13 15:39:12 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:57:39 -04:00
|
|
|
%{_mandir}/man1/proxy.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-04-16 09:54:39 +08:00
|
|
|
* Sat Apr 16 2022 yanglu <yanglu72@h-partners.com> - 0.4.17-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix libproxy compile error based on python3.10
|
|
|
|
|
|
2021-01-28 15:31:39 +08:00
|
|
|
* Thu Jan 28 2021 xihaochen <xihaochen@huawei.com> - 0.4.17-1
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update libproxy to 0.4.17
|
|
|
|
|
|
2020-12-02 17:27:42 +08:00
|
|
|
* Wed Dec 02 2020 xihaochen <xihaochen@huawei.com> - 0.4.15-19
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete mozjs-68 dependency
|
|
|
|
|
|
2020-10-29 15:01:50 +08:00
|
|
|
* Thu Oct 30 2020 xihaochen <xihaochen@huawei.com> - 0.4.15-18
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete python2 dependency
|
|
|
|
|
|
2020-10-29 12:30:09 +08:00
|
|
|
* Thu Oct 29 liuxin <liuxin264@huawei.com> - 0.4.15-17
|
|
|
|
|
- Type:cves
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Disable mozjs backend by default and fix CVE-2020-25219
|
|
|
|
|
|
2020-10-27 21:33:39 +08:00
|
|
|
* Tue Oct 27 orange-snn <songnannan2@huawei.com> - 0.4.15-16
|
|
|
|
|
- change the mozjs52 to mozjs68 in buildRequires
|
|
|
|
|
|
2020-10-20 11:40:27 +08:00
|
|
|
* Tue Oct 20 hanzhijun <hanzhijun1@huawei.com> - 0.4.15-15
|
|
|
|
|
- Type:cves
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2020-26154
|
|
|
|
|
|
2020-08-06 15:58:25 +08:00
|
|
|
* Thu Aug 6 2020 zengwefeng <zwfeng@huawei.com> - 0.4.15-14
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:drop dependency of libmodman
|
|
|
|
|
|
2020-10-20 11:40:27 +08:00
|
|
|
|
2020-01-11 16:48:54 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.4.15-13
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix patch source
|
|
|
|
|
|
2019-12-13 15:39:12 +08:00
|
|
|
* Thu Nov 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.4.15-12
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove the webkitgtk4 package from main package
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.4.15-11
|
2019-11-06 19:39:36 +08:00
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove the /usr/bin/kreadconfig5 in buildRequires.
|
|
|
|
|
|
2019-09-30 10:57:39 -04:00
|
|
|
* Tue Sep 10 2019 liyongqiang<liyongqiang10@huawei.com> - 0.4.15-10
|
|
|
|
|
- Package init
|