Blame SPECS/libproxy.spec

5d72ef
# When we are bootstrapping, we drop some dependencies.
5d72ef
# Set this to 0 after bootstrapping.
5d72ef
%{!?_with_bootstrap: %global bootstrap 0}
5d72ef
5d72ef
Name:           libproxy
5d72ef
Version:        0.4.15
5d72ef
Release:        5.2%{?dist}
5d72ef
Summary:        A library handling all the details of proxy configuration
5d72ef
5d72ef
Group:          System Environment/Libraries
5d72ef
License:        LGPLv2+
5d72ef
URL:            https://libproxy.github.io/libproxy/
5d72ef
Source0:        https://github.com/libproxy/%{name}/archive/%{version}.tar.gz
5d72ef
# Taken from the Debian package.
5d72ef
Source1:        proxy.1
5d72ef
Patch1:         libproxy-0.4.11-crash.patch
5d72ef
5d72ef
BuildRequires:  libmodman-devel >= 2.0.1
5d72ef
BuildRequires:  cmake >= 2.6.0
5d72ef
5d72ef
%if ! 0%{?bootstrap}
5d72ef
# gnome
5d72ef
BuildRequires:  pkgconfig(gio-2.0) >= 2.26
5d72ef
# NetworkManager
5d72ef
BuildRequires:  pkgconfig(libnm)
5d72ef
BuildRequires:  pkgconfig(dbus-1)
5d72ef
# webkit (gtk3)
5d72ef
BuildRequires:  pkgconfig(javascriptcoregtk-4.0)
5d72ef
# Python
5d72ef
BuildRequires:  python3-devel
5d72ef
%else
5d72ef
# Obsoletes of disabled subpackages.
5d72ef
Provides: %{name}-webkitgtk4 = %{version}-%{release}
5d72ef
Obsoletes: %{name}-webkitgtk4 < %{version}-%{release}
5d72ef
%endif
5d72ef
5d72ef
5d72ef
%description
5d72ef
libproxy offers the following features:
5d72ef
5d72ef
    * extremely small core footprint (< 35K)
5d72ef
    * no external dependencies within libproxy core
5d72ef
      (libproxy plugins may have dependencies)
5d72ef
    * only 3 functions in the stable external API
5d72ef
    * dynamic adjustment to changing network topology
5d72ef
    * a standard way of dealing with proxy settings across all scenarios
5d72ef
    * a sublime sense of joy and accomplishment 
5d72ef
5d72ef
5d72ef
%package        bin
5d72ef
Summary:        Binary to test %{name}
5d72ef
Group:          Applications/System
5d72ef
Requires:       %{name}%{?_isa} = %{version}-%{release}
5d72ef
5d72ef
%description    bin
5d72ef
The %{name}-bin package contains the proxy binary for %{name}
5d72ef
5d72ef
%if ! 0%{?bootstrap}
5d72ef
%package -n     python3-%{name}
5d72ef
Summary:        Binding for %{name} and python3
5d72ef
Group:          System Environment/Libraries
5d72ef
Requires:       %{name} = %{version}-%{release}
5d72ef
BuildArch:      noarch
5d72ef
%{?python_provide:%python_provide python3-%{name}}
5d72ef
5d72ef
%description -n python3-%{name}
5d72ef
The python3 binding for %{name}
5d72ef
5d72ef
%package        gnome
5d72ef
Summary:        Plugin for %{name} and gnome
5d72ef
Group:          System Environment/Libraries
5d72ef
Requires:       %{name}%{?_isa} = %{version}-%{release}
5d72ef
5d72ef
%description    gnome
5d72ef
The %{name}-gnome package contains the %{name} plugin for gnome.
5d72ef
5d72ef
%package        networkmanager
5d72ef
Summary:        Plugin for %{name} and networkmanager
5d72ef
Group:          System Environment/Libraries
5d72ef
Requires:       %{name}%{?_isa} = %{version}-%{release}
5d72ef
5d72ef
%description    networkmanager
5d72ef
The %{name}-networkmanager package contains the %{name} plugin
5d72ef
for networkmanager.
5d72ef
5d72ef
%package        webkitgtk4
5d72ef
Summary:        Plugin for %{name} and webkitgtk3
5d72ef
Group:          System Environment/Libraries
5d72ef
Requires:       %{name}%{?_isa} = %{version}-%{release}
5d72ef
Provides:       %{name}-pac = %{version}-%{release}
5d72ef
5d72ef
%description    webkitgtk4
5d72ef
The %{name}-webkitgtk4 package contains the %{name} plugin for
5d72ef
webkitgtk3.
5d72ef
5d72ef
%endif
5d72ef
5d72ef
%package        devel
5d72ef
Summary:        Development files for %{name}
5d72ef
Group:          Development/Libraries
5d72ef
Requires:       %{name}%{?_isa} = %{version}-%{release}
5d72ef
5d72ef
%description    devel
5d72ef
The %{name}-devel package contains libraries and header files for
5d72ef
developing applications that use %{name}.
5d72ef
5d72ef
%prep
5d72ef
%autosetup -p1
5d72ef
5d72ef
5d72ef
%build
5d72ef
%{cmake} \
5d72ef
  -DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
5d72ef
  -DWITH_PERL=OFF \
5d72ef
  -DWITH_PYTHON2=OFF \
5d72ef
  -DWITH_KDE=OFF \
5d72ef
  -DWITH_MOZJS=OFF \
5d72ef
  -DBIPR=0 \
5d72ef
%if ! 0%{?bootstrap}
5d72ef
  -DWITH_GNOME3=ON \
5d72ef
  -DWITH_PYTHON3=ON \
5d72ef
  -DWITH_WEBKIT3=ON \
5d72ef
%else
5d72ef
  -DWITH_PYTHON3=OFF \
5d72ef
%endif
5d72ef
   .
5d72ef
%make_build
5d72ef
5d72ef
5d72ef
%install
5d72ef
%make_install INSTALL="install -p"
5d72ef
5d72ef
#In case all modules are disabled
5d72ef
mkdir -p %{buildroot}%{_libdir}/%{name}/%{version}/modules
5d72ef
5d72ef
# Man page.
5d72ef
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/proxy.1
5d72ef
5d72ef
5d72ef
%check
5d72ef
make test
5d72ef
5d72ef
%post -p /sbin/ldconfig
5d72ef
5d72ef
%postun -p /sbin/ldconfig
5d72ef
5d72ef
5d72ef
%files 
5d72ef
%doc AUTHORS README
5d72ef
%license COPYING
5d72ef
%{_libdir}/*.so.*
5d72ef
%dir %{_libdir}/%{name}
5d72ef
%dir %{_libdir}/%{name}/%{version}
5d72ef
%dir %{_libdir}/%{name}/%{version}/modules
5d72ef
5d72ef
%files bin
5d72ef
%{_bindir}/proxy
5d72ef
%{_mandir}/man1/proxy.1*
5d72ef
5d72ef
%if ! 0%{?bootstrap}
5d72ef
%files -n python3-%{name}
5d72ef
%{python3_sitelib}/__pycache__/*
5d72ef
%{python3_sitelib}/%{name}.*
5d72ef
5d72ef
%files gnome
5d72ef
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
5d72ef
%{_libexecdir}/pxgsettings
5d72ef
5d72ef
%files networkmanager
5d72ef
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
5d72ef
5d72ef
%files webkitgtk4
5d72ef
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
5d72ef
%endif
5d72ef
5d72ef
%files devel
5d72ef
%{_includedir}/proxy.h
5d72ef
%{_libdir}/*.so
5d72ef
%{_libdir}/pkgconfig/libproxy-1.0.pc
5d72ef
%{_datadir}/cmake/Modules/Findlibproxy.cmake
5d72ef
5d72ef
5d72ef
%changelog
5d72ef
* Thu May 31 2018 Dan Winship <danw@redhat.com> - 0.4.15-5.2
5d72ef
- Drop pacrunner-mozjs (#1571640)
5d72ef
5d72ef
* Wed May 30 2018 Dan Winship <danw@redhat.com> - 0.4.15-5.1
5d72ef
- Drop python2 subpackage (#1559092)
5d72ef
- Drop PAC runner based on the "pacrunner" package (#1569023)
5d72ef
- Replace pacrunner-crash-fix patch with version from RHEL7
5d72ef
- Drop kde subpackage (#1538147)
5d72ef
5d72ef
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.15-5
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5d72ef
5d72ef
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.15-4
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5d72ef
5d72ef
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.15-3
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5d72ef
5d72ef
* Thu Jul 13 2017 David King <amigadave@amigadave.com> - 0.4.15-2
5d72ef
- Use pkgconfig for BuildRequires
5d72ef
- Fix crash in pacrunner module (#1459779)
5d72ef
5d72ef
* Tue May 16 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.15-1
5d72ef
- Update to 0.4.15
5d72ef
5d72ef
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.14-2
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5d72ef
5d72ef
* Mon Jan 09 2017 David King <amigadave@amigadave.com> - 0.4.14-1
5d72ef
- Update to 0.4.14
5d72ef
5d72ef
* Sun Jan 01 2017 David King <amigadave@amigadave.com> - 0.4.13-1
5d72ef
- Update to 0.4.13
5d72ef
5d72ef
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.12-5
5d72ef
- Rebuild for Python 3.6
5d72ef
5d72ef
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-4
5d72ef
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5d72ef
5d72ef
* Mon Apr 04 2016 David King <amigadave@amigadave.com> - 0.4.12-3
5d72ef
- Install bindings for both Python 2 and 3 (#1323251)
5d72ef
5d72ef
* Fri Mar 04 2016 David King <amigadave@amigadave.com> - 0.4.12-2
5d72ef
- Fix a Python bindings crash on 64-bit systems (#1296817)
5d72ef
5d72ef
* Mon Feb 29 2016 David King <amigadave@amigadave.com> - 0.4.12-1
5d72ef
- Update to 0.4.12
5d72ef
- Simplify conditional macros
5d72ef
- Use isa macro when requiring base package
5d72ef
- Use license macro for COPYING
5d72ef
- Use pkgconfig for BuildRequires
5d72ef
- Use javascriptcoregtk-4.0
5d72ef
- Apply an upstream patch to pair new[] with delete[]
5d72ef
- Fix slowdown in KDE plugin
5d72ef
- Make the pacrunner subpackage depend on pacrunner (#1171679)
5d72ef
- Install man page from Debian
5d72ef
5d72ef
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-13
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d72ef
5d72ef
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-12
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5d72ef
5d72ef
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.4.11-11
5d72ef
- Rebuilt for GCC 5 C++11 ABI change
5d72ef
5d72ef
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-10
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5d72ef
5d72ef
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-9
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5d72ef
5d72ef
* Mon Nov 11 2013 Dan Winship <danw@redhat.com> - 0.4.11-8
5d72ef
- Really fix the JS_AbortIfWrongThread crash (#998232)
5d72ef
5d72ef
* Thu Sep 19 2013 Dan Winship <danw@redhat.com> - 0.4.11-7
5d72ef
- Fix file descriptor leak (#911066)
5d72ef
- Fix crash when pacrunner fails (probably because of EMFILE...) (#998232)
5d72ef
5d72ef
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-6
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5d72ef
5d72ef
* Thu Jul 18 2013 David Woodhouse <David.Woodhouse@intel.com> - 0.4.11-5
5d72ef
- Add PacRunner module now that Fedora has PacRunner
5d72ef
5d72ef
* Mon Jun 03 2013 Colin Walters <walters@redhat.com> - 0.4.11-4
5d72ef
- Add patch to build with mozjs17, use it by default
5d72ef
5d72ef
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-3
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5d72ef
5d72ef
* Thu Jan  3 2013 Dan Winship <danw@redhat.com> - 0.4.11-2
5d72ef
- Minor dependency fixes
5d72ef
5d72ef
* Mon Dec 03 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.4.11-1
5d72ef
- Update to 0.4.11 -  CVE-2012-5580
5d72ef
5d72ef
* Tue Oct 16 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.4.10-1
5d72ef
- Update to 0.4.10
5d72ef
- Fix CVE-2012-4504
5d72ef
5d72ef
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.7-5
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5d72ef
5d72ef
* Mon Feb 27 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.4.7-4
5d72ef
- Add upstream patches to use js rather than xulrunner
5d72ef
- Add patch to fix FTBFS on gcc 4.7
5d72ef
- Cleanup spec for latest updates and remove obsolete bits
5d72ef
5d72ef
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.7-3
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5d72ef
5d72ef
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.4.7-2
5d72ef
- Rebuild for new libpng
5d72ef
5d72ef
* Tue Jun 07 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.7-1
5d72ef
- Update to 0.4.7
5d72ef
- libproxy-1.0.pc is now reliable starting with 0.4.7
5d72ef
5d72ef
* Tue Apr 12 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.7-0.1svn20110412
5d72ef
- Update to 0.4.7 svn20110412
5d72ef
- Add support for webkitgtk3
5d72ef
- Add support for xulrunner 2.0
5d72ef
- fix #683015 - libproxy fails with autoconfiguration
5d72ef
- fix #683018 - libproxy needs BR: NetworkManager-glib-devel  (f14)
5d72ef
- Manually fix libproxy-1.0.pc version field - #664781 / #674854
5d72ef
5d72ef
* Wed Nov 24 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.6-3
5d72ef
- Fix mozjs/webkit obsoletion - rhbz#656849
5d72ef
- Workaround unreliable Version field in pkg-config - rhbz#656484
5d72ef
5d72ef
* Sun Nov 07 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.6-1
5d72ef
- Update to 0.4.6
5d72ef
- Fix python module not arch dependant
5d72ef
5d72ef
* Mon Sep 06 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.5-2
5d72ef
- Update to 0.4.5
5d72ef
- Disable mozjs on fedora >= 15
5d72ef
- Disable webkit
5d72ef
- Add libproxy bootstrap option to disable modules.
5d72ef
5d72ef
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.4-7
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
5d72ef
5d72ef
* Tue Jul 13 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.4-6
5d72ef
- Fix libproxy-1.0.pc
5d72ef
5d72ef
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-5
5d72ef
- Re-enable mozjs and webkit
5d72ef
5d72ef
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-4
5d72ef
- Disable mozjs to get around a build error temporarily
5d72ef
5d72ef
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-3
5d72ef
- Disable webkit subpackage in order to resolve circular dep
5d72ef
5d72ef
* Sat Jul 03 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-2
5d72ef
- Fix missing BuildRequires: libmodman-devel
5d72ef
5d72ef
* Sun Jun 13 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-1
5d72ef
- Update to 0.4.4
5d72ef
- Removed install workarounds (fixed upstream)
5d72ef
- Removed patches (fixed upstream)
5d72ef
- Moved -python to noarch
5d72ef
- Downgrade cmake requirement (upstream change)
5d72ef
- Disabled perl bindings
5d72ef
- Run tests
5d72ef
5d72ef
* Thu Mar 11 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
5d72ef
- Add missing libXmu-devel
5d72ef
5d72ef
* Sun Feb 21 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
5d72ef
- Globalism and update gecko to 1.9.2
5d72ef
- Avoid rpath on _libdir
5d72ef
- Fix BR for kde4 to kdelibs-devel
5d72ef
5d72ef
* Sun Dec 27 2009 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-1
5d72ef
- Update to 0.3.1
5d72ef
- Avoid dependecies on -python and -bin subpackages
5d72ef
- Create -networkmanager sub-package.
5d72ef
5d72ef
* Thu Sep 24 2009 kwizart < kwizart at gmail.com > - 0.3.0-1
5d72ef
- Update to 0.3.0
5d72ef
5d72ef
* Thu Sep 17 2009 kwizart < kwizart at gmail.com > - 0.2.3-12
5d72ef
- Remove Requirement of %%{name}-pac virtual provides 
5d72ef
  from the main package - #524043
5d72ef
5d72ef
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-11
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5d72ef
5d72ef
* Mon Mar  9 2009 kwizart < kwizart at gmail.com > - 0.2.3-10
5d72ef
- Rebuild for webkit
5d72ef
- Raise requirement for xulrunner to 1.9.1
5d72ef
5d72ef
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-9
5d72ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5d72ef
5d72ef
* Thu Jan 22 2009 kwizart < kwizart at gmail.com > - 0.2.3-8
5d72ef
- Merge NetworkManager module into the main libproxy package
5d72ef
- Main Requires the -python and -bin subpackage 
5d72ef
 (splitted for multilibs compliance).
5d72ef
5d72ef
* Fri Oct 24 2008 kwizart < kwizart at gmail.com > - 0.2.3-7
5d72ef
- Disable Gnome/KDE default support via builtin modules.
5d72ef
 (it needs to be integrated via Gconf2/neon instead).
5d72ef
5d72ef
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-6
5d72ef
- Disable Obsoletes.
5d72ef
- Requires ev instead of evr for optionnals sub-packages.
5d72ef
5d72ef
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-5
5d72ef
- Use conditionals build.
5d72ef
5d72ef
* Mon Sep 15 2008 kwizart < kwizart at gmail.com > - 0.2.3-4
5d72ef
- Remove plugin- in the name of the packages
5d72ef
5d72ef
* Mon Aug  4 2008 kwizart < kwizart at gmail.com > - 0.2.3-3
5d72ef
- Move proxy.h to libproxy/proxy.h
5d72ef
  This will prevent it to be included in the default include path
5d72ef
- Split main to libs and util and use libproxy to install all
5d72ef
5d72ef
* Mon Aug  4 2008 kwizart < kwizart at gmail.com > - 0.2.3-2
5d72ef
- Rename binding-python to python
5d72ef
- Add Requires: gecko-libs >= %%{gecko_version}
5d72ef
- Fix some descriptions
5d72ef
- Add plugin-webkit package
5d72ef
 
5d72ef
* Fri Jul 11 2008 kwizart < kwizart at gmail.com > - 0.2.3-1
5d72ef
- Convert to Fedora spec
5d72ef
5d72ef
* Fri Jun 6 2008 - dominique-rpm@leuenberger.net
5d72ef
- Updated to version 0.2.3
5d72ef
* Wed Jun 4 2008 - dominique-rpm@leuenberger.net
5d72ef
- Extended spec file to build all available plugins
5d72ef
* Tue Jun 3 2008 - dominique-rpm@leuenberger.net
5d72ef
- Initial spec file for Version 0.2.2
5d72ef