Blame SPECS/libproxy.spec

da0210
da0210
#0 to bootstrap libproxy circle dependencies - 1 normal case
da0210
%if 1
da0210
%global _with_webkitgtk3 1
da0210
%global _with_gnome3 1
da0210
%global _with_mozjs 1
da0210
%global _with_gnome 1
da0210
%global _with_kde 1
da0210
%global _with_networkmanager 1
da0210
%global _with_python 1
da0210
%endif
da0210
da0210
Name:           libproxy
da0210
Version:        0.4.11
28fc30
Release:        8%{?svn}%{?dist}
da0210
Summary:        A library handling all the details of proxy configuration
da0210
da0210
Group:          System Environment/Libraries
da0210
License:        LGPLv2+
da0210
URL:            http://code.google.com/p/libproxy/
da0210
da0210
Source0:        http://libproxy.googlecode.com/files/libproxy-%{version}%{?svn}.tar.gz
da0210
Patch0:         libproxy-0.4.10-mozjs.patch
da0210
Patch1:         0001-pacrunner_mozjs-Also-support-mozjs-17.0.patch
28fc30
Patch3:         libproxy-0.4.11-fdleak.patch
28fc30
Patch4:         libproxy-0.4.11-crash.patch
da0210
da0210
BuildRequires:  python-devel
da0210
BuildRequires:  libmodman-devel >= 2.0.1
da0210
BuildRequires:  cmake >= 2.6.0
da0210
da0210
# gnome
da0210
%{?_with_gnome:
da0210
BuildRequires:  GConf2-devel
da0210
BuildRequires:  libXmu-devel
da0210
}
da0210
# mozjs
da0210
%{?_with_mozjs:BuildRequires: mozjs17-devel}
da0210
# NetworkManager
da0210
%{?_with_networkmanager:
da0210
BuildRequires:  NetworkManager-devel
da0210
BuildRequires:  dbus-devel
da0210
}
da0210
# webkit (gtk)
da0210
%{?_with_webkit:BuildRequires:  WebKit-gtk-devel}
da0210
# webkit (gtk3)
da0210
%{?_with_webkitgtk3:BuildRequires:  webkitgtk3-devel}
da0210
# kde
da0210
%{?_with_kde:BuildRequires:  kdelibs-devel}
da0210
da0210
#Obsoletes of disabled subpackages
da0210
%{!?_with_mozjs:
da0210
Provides: %{name}-mozjs = %{version}-%{release}
da0210
Obsoletes: %{name}-mozjs < %{version}-%{release}
da0210
}
da0210
%{!?_with_webkit:
da0210
Provides: %{name}-webkit = %{version}-%{release}
da0210
Obsoletes: %{name}-webkit < %{version}-%{release}
da0210
}
da0210
%{!?_with_webkitgtk3:
da0210
Provides: %{name}-webkitgtk3 = %{version}-%{release}
da0210
Obsoletes: %{name}-webkitgtk3 < %{version}-%{release}
da0210
}
da0210
da0210
da0210
%description
da0210
libproxy offers the following features:
da0210
da0210
    * extremely small core footprint (< 35K)
da0210
    * no external dependencies within libproxy core
da0210
      (libproxy plugins may have dependencies)
da0210
    * only 3 functions in the stable external API
da0210
    * dynamic adjustment to changing network topology
da0210
    * a standard way of dealing with proxy settings across all scenarios
da0210
    * a sublime sense of joy and accomplishment 
da0210
da0210
da0210
%package        bin
da0210
Summary:        Binary to test %{name}
da0210
Group:          Applications/System
da0210
Requires:       %{name} = %{version}-%{release}
da0210
da0210
%description    bin
da0210
The %{name}-bin package contains the proxy binary for %{name}
da0210
da0210
%{?_with_python:
da0210
%package        python
da0210
Summary:        Binding for %{name} and python
da0210
Group:          System Environment/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
BuildArch:      noarch
da0210
da0210
%description    python
da0210
The %{name}-python package contains the python binding for %{name}
da0210
}
da0210
da0210
%{?_with_gnome:
da0210
%package        gnome
da0210
Summary:        Plugin for %{name} and gnome
da0210
Group:          System Environment/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
da0210
%description    gnome
da0210
The %{name}-gnome package contains the %{name} plugin for gnome.
da0210
}
da0210
da0210
%{?_with_kde:
da0210
%package        kde
da0210
Summary:        Plugin for %{name} and kde
da0210
Group:          System Environment/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
da0210
%description    kde
da0210
The %{name}-kde package contains the %{name} plugin for kde.
da0210
}
da0210
da0210
%{?_with_mozjs:
da0210
%package        mozjs
da0210
Summary:        Plugin for %{name} and mozjs
da0210
Group:          System Environment/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
Provides:       %{name}-pac = %{version}-%{release}
da0210
da0210
%description    mozjs
da0210
The %{name}-mozjs package contains the %{name} plugin for mozjs.
da0210
}
da0210
da0210
%{?_with_networkmanager:
da0210
%package        networkmanager
da0210
Summary:        Plugin for %{name} and networkmanager
da0210
Group:          System Environment/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
da0210
%description    networkmanager
da0210
The %{name}-networkmanager package contains the %{name} plugin
da0210
for networkmanager.
da0210
}
da0210
da0210
%{?_with_webkit:
da0210
%package        webkit
da0210
Summary:        Plugin for %{name} and webkit
da0210
Group:          System Environment/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
Provides:       %{name}-pac = %{version}-%{release}
da0210
da0210
%description    webkit
da0210
The %{name}-webkit package contains the %{name} plugin for
da0210
webkit.
da0210
}
da0210
da0210
%{?_with_webkitgtk3:
da0210
%package        webkitgtk3
da0210
Summary:        Plugin for %{name} and webkitgtk3
da0210
Group:          System Environment/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
Provides:       %{name}-pac = %{version}-%{release}
da0210
da0210
%description    webkitgtk3
da0210
The %{name}-webkit package contains the %{name} plugin for
da0210
webkitgtk3.
da0210
}
da0210
da0210
da0210
%package        devel
da0210
Summary:        Development files for %{name}
da0210
Group:          Development/Libraries
da0210
Requires:       %{name} = %{version}-%{release}
da0210
Requires:       pkgconfig
da0210
da0210
%description    devel
da0210
The %{name}-devel package contains libraries and header files for
da0210
developing applications that use %{name}.
da0210
da0210
%prep
da0210
%setup -q
da0210
%patch0 -p1 -b .orig
da0210
%patch1 -p1 -b .orig
28fc30
%patch3 -p1 -b .fdleak
28fc30
%patch4 -p1 -b .crash
da0210
da0210
%build
da0210
%{cmake} \
da0210
  -DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
da0210
  -DWITH_PERL=OFF \
da0210
  %{!?_with_gnome3:-DWITH_GNOME3=OFF}\
da0210
  %{?_with_webkitgtk3:-DWITH_WEBKIT3=ON}\
da0210
  %{?_with_mozjs:-DWITH_MOZJS=ON}\
da0210
   .
da0210
make VERBOSE=1 %{?_smp_mflags}
da0210
da0210
da0210
%install
da0210
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
da0210
da0210
#In case all modules are disabled
da0210
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/modules
da0210
da0210
%{?_with_test:
da0210
%check
da0210
make test
da0210
}
da0210
da0210
%post -p /sbin/ldconfig
da0210
da0210
%postun -p /sbin/ldconfig
da0210
da0210
da0210
%files 
da0210
%defattr(-,root,root,-)
da0210
%doc AUTHORS COPYING README
da0210
%{_libdir}/*.so.*
da0210
%dir %{_libdir}/%{name}
da0210
%dir %{_libdir}/%{name}/%{version}
da0210
%dir %{_libdir}/%{name}/%{version}/modules
da0210
da0210
%files bin
da0210
%defattr(-,root,root,-)
da0210
%{_bindir}/proxy
da0210
da0210
%{?_with_python:
da0210
%files python
da0210
%defattr(-,root,root,-)
da0210
%{python_sitelib}/*
da0210
}
da0210
da0210
%{?_with_gnome:
da0210
%files gnome
da0210
%defattr(-,root,root,-)
da0210
%{!?_with_gnome3:
da0210
%{_libdir}/%{name}/%{version}/modules/config_gnome.so
da0210
%{_libexecdir}/pxgconf}
da0210
%{?_with_gnome3:
da0210
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
da0210
%{_libexecdir}/pxgsettings}
da0210
}
da0210
da0210
%{?_with_kde:
da0210
%files kde
da0210
%defattr(-,root,root,-)
da0210
%{_libdir}/%{name}/%{version}/modules/config_kde4.so
da0210
}
da0210
da0210
%{?_with_mozjs:
da0210
%files mozjs
da0210
%defattr(-,root,root,-)
da0210
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
da0210
}
da0210
da0210
%{?_with_networkmanager:
da0210
%files networkmanager
da0210
%defattr(-,root,root,-)
da0210
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
da0210
}
da0210
da0210
%{?_with_webkit:
da0210
%files webkit
da0210
%defattr(-,root,root,-)
da0210
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
da0210
}
da0210
da0210
%{?_with_webkitgtk3:
da0210
%files webkitgtk3
da0210
%defattr(-,root,root,-)
da0210
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
da0210
}
da0210
da0210
%files devel
da0210
%defattr(-,root,root,-)
da0210
%{_includedir}/proxy.h
da0210
%{_libdir}/*.so
da0210
%{_libdir}/pkgconfig/libproxy-1.0.pc
da0210
%{_datadir}/cmake/Modules/Findlibproxy.cmake
da0210
da0210
da0210
%changelog
28fc30
* Fri Mar 20 2015 Dan Winship <danw@redhat.com> - 0.4.11-8
28fc30
- Fix pacrunner crash (#1201658)
28fc30
0b6bf4
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.4.11-6
0b6bf4
- Mass rebuild 2014-01-24
0b6bf4
0b6bf4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.4.11-5
0b6bf4
- Mass rebuild 2013-12-27
0b6bf4
da0210
* Mon Jul  8 2013 Dan Winship <danw@redhat.com> - 0.4.11-4.el7.1
da0210
- Rebuild to fix RPM changelog
da0210
da0210
* Mon Jun 03 2013 Colin Walters <walters@redhat.com> - 0.4.11-4
da0210
- Add patch to build with mozjs17, use it by default
da0210
da0210
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-3
da0210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
da0210
da0210
* Thu Jan  3 2013 Dan Winship <danw@redhat.com> - 0.4.11-2
da0210
- Minor dependency fixes
da0210
da0210
* Mon Dec 03 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.4.11-1
da0210
- Update to 0.4.11 -  CVE-2012-5580
da0210
da0210
* Tue Oct 16 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.4.10-1
da0210
- Update to 0.4.10
da0210
- Fix CVE-2012-4504
da0210
da0210
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.7-5
da0210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
da0210
da0210
* Mon Feb 27 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.4.7-4
da0210
- Add upstream patches to use js rather than xulrunner
da0210
- Add patch to fix FTBFS on gcc 4.7
da0210
- Cleanup spec for latest updates and remove obsolete bits
da0210
da0210
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.7-3
da0210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
da0210
da0210
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.4.7-2
da0210
- Rebuild for new libpng
da0210
da0210
* Tue Jun 07 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.7-1
da0210
- Update to 0.4.7
da0210
- libproxy-1.0.pc is now reliable starting with 0.4.7
da0210
da0210
* Tue Apr 12 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.7-0.1svn20110412
da0210
- Update to 0.4.7 svn20110412
da0210
- Add support for webkitgtk3
da0210
- Add support for xulrunner 2.0
da0210
- fix #683015 - libproxy fails with autoconfiguration
da0210
- fix #683018 - libproxy needs BR: NetworkManager-glib-devel  (f14)
da0210
- Manually fix libproxy-1.0.pc version field - #664781 / #674854
da0210
da0210
* Wed Nov 24 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.6-3
da0210
- Fix mozjs/webkit obsoletion - rhbz#656849
da0210
- Workaround unreliable Version field in pkg-config - rhbz#656484
da0210
da0210
* Sun Nov 07 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.6-1
da0210
- Update to 0.4.6
da0210
- Fix python module not arch dependant
da0210
da0210
* Mon Sep 06 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.5-2
da0210
- Update to 0.4.5
da0210
- Disable mozjs on fedora >= 15
da0210
- Disable webkit
da0210
- Add libproxy bootstrap option to disable modules.
da0210
da0210
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.4-7
da0210
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
da0210
da0210
* Tue Jul 13 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.4-6
da0210
- Fix libproxy-1.0.pc
da0210
da0210
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-5
da0210
- Re-enable mozjs and webkit
da0210
da0210
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-4
da0210
- Disable mozjs to get around a build error temporarily
da0210
da0210
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-3
da0210
- Disable webkit subpackage in order to resolve circular dep
da0210
da0210
* Sat Jul 03 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-2
da0210
- Fix missing BuildRequires: libmodman-devel
da0210
da0210
* Sun Jun 13 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-1
da0210
- Update to 0.4.4
da0210
- Removed install workarounds (fixed upstream)
da0210
- Removed patches (fixed upstream)
da0210
- Moved -python to noarch
da0210
- Downgrade cmake requirement (upstream change)
da0210
- Disabled perl bindings
da0210
- Run tests
da0210
da0210
* Thu Mar 11 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
da0210
- Add missing libXmu-devel
da0210
da0210
* Sun Feb 21 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
da0210
- Globalism and update gecko to 1.9.2
da0210
- Avoid rpath on _libdir
da0210
- Fix BR for kde4 to kdelibs-devel
da0210
da0210
* Sun Dec 27 2009 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-1
da0210
- Update to 0.3.1
da0210
- Avoid dependecies on -python and -bin subpackages
da0210
- Create -networkmanager sub-package.
da0210
da0210
* Thu Sep 24 2009 kwizart < kwizart at gmail.com > - 0.3.0-1
da0210
- Update to 0.3.0
da0210
da0210
* Thu Sep 17 2009 kwizart < kwizart at gmail.com > - 0.2.3-12
da0210
- Remove Requirement of %%{name}-pac virtual provides 
da0210
  from the main package - #524043
da0210
da0210
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-11
da0210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
da0210
da0210
* Mon Mar  9 2009 kwizart < kwizart at gmail.com > - 0.2.3-10
da0210
- Rebuild for webkit
da0210
- Raise requirement for xulrunner to 1.9.1
da0210
da0210
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-9
da0210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
da0210
da0210
* Thu Jan 22 2009 kwizart < kwizart at gmail.com > - 0.2.3-8
da0210
- Merge NetworkManager module into the main libproxy package
da0210
- Main Requires the -python and -bin subpackage 
da0210
 (splitted for multilibs compliance).
da0210
da0210
* Fri Oct 24 2008 kwizart < kwizart at gmail.com > - 0.2.3-7
da0210
- Disable Gnome/KDE default support via builtin modules.
da0210
 (it needs to be integrated via Gconf2/neon instead).
da0210
da0210
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-6
da0210
- Disable Obsoletes.
da0210
- Requires ev instead of evr for optionnals sub-packages.
da0210
da0210
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-5
da0210
- Use conditionals build.
da0210
da0210
* Mon Sep 15 2008 kwizart < kwizart at gmail.com > - 0.2.3-4
da0210
- Remove plugin- in the name of the packages
da0210
da0210
* Mon Aug  4 2008 kwizart < kwizart at gmail.com > - 0.2.3-3
da0210
- Move proxy.h to libproxy/proxy.h
da0210
  This will prevent it to be included in the default include path
da0210
- Split main to libs and util and use libproxy to install all
da0210
da0210
* Mon Aug  4 2008 kwizart < kwizart at gmail.com > - 0.2.3-2
da0210
- Rename binding-python to python
da0210
- Add Requires: gecko-libs >= %%{gecko_version}
da0210
- Fix some descriptions
da0210
- Add plugin-webkit package
da0210
 
da0210
* Fri Jul 11 2008 kwizart < kwizart at gmail.com > - 0.2.3-1
da0210
- Convert to Fedora spec
da0210
da0210
* Fri Jun 6 2008 - dominique-rpm@leuenberger.net
da0210
- Updated to version 0.2.3
da0210
* Wed Jun 4 2008 - dominique-rpm@leuenberger.net
da0210
- Extended spec file to build all available plugins
da0210
* Tue Jun 3 2008 - dominique-rpm@leuenberger.net
da0210
- Initial spec file for Version 0.2.2
da0210