libproxy/libproxy.spec

417 lines
12 KiB
RPMSpec
Raw Normal View History

2010-02-21 21:52:00 +00:00
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2009-01-23 15:09:44 +00:00
#0 to bootstrap libproxy circle dependencies - 1 normal case
2010-09-06 21:07:56 +00:00
%if 1
%if 0%{?fedora} > 14
%global gecko_version 2.0
%global _with_webkitgtk3 1
2011-06-07 10:17:51 +00:00
%global _with_gnome3 1
%else
%global gecko_version 1.9.2
2010-09-07 15:39:27 +00:00
%global _with_webkit 1
%endif
%global _with_mozjs 1
%global _with_gnome 1
%global _with_kde 1
%global _with_networkmanager 1
%endif
2010-09-06 19:07:19 +00:00
%global _with_python 1
2009-01-23 15:09:44 +00:00
2011-06-07 10:17:51 +00:00
#global svn svn20110412
2009-01-23 15:09:44 +00:00
Name: libproxy
Version: 0.4.7
2011-12-06 05:08:27 +00:00
Release: 2%{?svn}%{?dist}
2009-01-23 15:09:44 +00:00
Summary: A library handling all the details of proxy configuration
Group: System Environment/Libraries
License: LGPLv2+
URL: http://code.google.com/p/libproxy/
Source0: http://libproxy.googlecode.com/files/libproxy-%{version}%{?svn}.tar.gz
Patch0: libproxy-0.4.7-xul2.0.patch
2009-01-23 15:09:44 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%{?_with_python:BuildRequires: python-devel}
%if 0%{?fedora} > 14
BuildRequires: libmodman-devel >= 2.0.1
%endif
BuildRequires: cmake >= 2.6.0
2009-01-23 15:09:44 +00:00
# gnome
%{?_with_gnome:
2009-01-23 15:09:44 +00:00
BuildRequires: GConf2-devel
2010-03-11 22:53:45 +00:00
BuildRequires: libXmu-devel
}
2009-01-23 15:09:44 +00:00
# mozjs
%{?_with_mozjs:BuildRequires: gecko-devel >= %{gecko_version}}
2009-01-23 15:09:44 +00:00
# NetworkManager
%{?_with_networkmanager:
2009-01-23 15:09:44 +00:00
BuildRequires: NetworkManager-devel
2011-03-14 21:25:19 +00:00
%if 0%{?fedora} < 15
#NM nm-version.h , uneeded with later Fedora
BuildRequires: NetworkManager-glib-devel
%endif
2009-01-23 15:09:44 +00:00
BuildRequires: dbus-devel
}
2009-01-23 15:09:44 +00:00
# webkit (gtk)
%{?_with_webkit:BuildRequires: WebKit-gtk-devel}
# webkit (gtk3)
%{?_with_webkitgtk3:BuildRequires: webkitgtk3-devel}
2009-01-23 15:09:44 +00:00
# kde
%{?_with_kde:BuildRequires: kdelibs-devel}
2009-01-23 15:09:44 +00:00
#Obsoletes of disabled subpackages
%{!?_with_mozjs:
2010-11-24 11:12:58 +00:00
Provides: %{name}-mozjs = %{version}-%{release}
Obsoletes: %{name}-mozjs < %{version}-%{release}
}
%{!?_with_webkit:
2010-11-24 11:12:58 +00:00
Provides: %{name}-webkit = %{version}-%{release}
Obsoletes: %{name}-webkit < %{version}-%{release}
}
%{!?_with_webkitgtk3:
Provides: %{name}-webkitgtk3 = %{version}-%{release}
Obsoletes: %{name}-webkitgtk3 < %{version}-%{release}
}
2009-01-23 15:09:44 +00: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
* a sublime sense of joy and accomplishment
%package bin
Summary: Binary to test %{name}
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description bin
The %{name}-bin package contains the proxy binary for %{name}
%{?_with_python:
2009-01-23 15:09:44 +00:00
%package python
Summary: Binding for %{name} and python
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
2009-01-23 15:09:44 +00:00
%description python
The %{name}-python package contains the python binding for %{name}
}
2009-01-23 15:09:44 +00:00
%{?_with_gnome:
2009-01-23 15:09:44 +00:00
%package gnome
Summary: Plugin for %{name} and gnome
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description gnome
The %{name}-gnome package contains the %{name} plugin for gnome.
}
2009-01-23 15:09:44 +00:00
%{?_with_kde:
2009-01-23 15:09:44 +00:00
%package kde
Summary: Plugin for %{name} and kde
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description kde
The %{name}-kde package contains the %{name} plugin for kde.
}
2009-01-23 15:09:44 +00:00
%{?_with_mozjs:
2010-07-05 19:41:16 +00:00
%package mozjs
Summary: Plugin for %{name} and mozjs
Group: System Environment/Libraries
Requires: %{name} = %{version}
2009-01-23 15:09:44 +00:00
#Tweak this according to the current gecko-libs version
2010-07-05 19:41:16 +00:00
Requires: gecko-libs >= %{gecko_version}
Provides: %{name}-pac = %{version}-%{release}
2009-01-23 15:09:44 +00:00
2010-07-05 19:41:16 +00:00
%description mozjs
The %{name}-mozjs package contains the %{name} plugin for mozjs.
}
2009-01-23 15:09:44 +00:00
%{?_with_networkmanager:
2009-12-27 12:10:05 +00:00
%package networkmanager
Summary: Plugin for %{name} and networkmanager
Group: System Environment/Libraries
Requires: %{name} = %{version}
%description networkmanager
The %{name}-networkmanager package contains the %{name} plugin
for networkmanager.
}
2009-12-27 12:10:05 +00:00
%{?_with_webkit:
2010-07-05 19:41:16 +00:00
%package webkit
Summary: Plugin for %{name} and webkit
Group: System Environment/Libraries
Requires: %{name} = %{version}
Provides: %{name}-pac = %{version}-%{release}
2009-01-23 15:09:44 +00:00
2010-07-05 19:41:16 +00:00
%description webkit
The %{name}-webkit package contains the %{name} plugin for
webkit.
}
2009-01-23 15:09:44 +00:00
%{?_with_webkitgtk3:
%package webkitgtk3
Summary: Plugin for %{name} and webkitgtk3
Group: System Environment/Libraries
Requires: %{name} = %{version}
Provides: %{name}-pac = %{version}-%{release}
%description webkitgtk3
The %{name}-webkit package contains the %{name} plugin for
webkitgtk3.
}
2009-01-23 15:09:44 +00:00
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1 -b .xul2
2009-01-23 15:09:44 +00:00
%build
2010-03-24 23:39:12 +00:00
%{cmake} \
-DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
-DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
-DWITH_PERL=OFF \
2011-06-07 10:17:51 +00:00
%{!?_with_gnome3:-DWITH_GNOME3=OFF}\
%{?_with_webkitgtk3:-DWITH_WEBKIT3=ON}\
2010-03-24 23:39:12 +00:00
.
make VERBOSE=1 %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
2010-09-06 15:38:24 +00:00
#In case all modules are disabled
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/modules
%check
make test
2009-01-23 15:09:44 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_libdir}/*.so.*
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/%{version}
2009-10-19 21:22:00 +00:00
%dir %{_libdir}/%{name}/%{version}/modules
2009-01-23 15:09:44 +00:00
%files bin
%defattr(-,root,root,-)
%{_bindir}/proxy
%{?_with_python:
2009-01-23 15:09:44 +00:00
%files python
%defattr(-,root,root,-)
%{python_sitelib}/*
}
2009-01-23 15:09:44 +00:00
%{?_with_gnome:
2009-01-23 15:09:44 +00:00
%files gnome
%defattr(-,root,root,-)
2011-06-07 10:39:13 +00:00
%{!?_with_gnome3:
2009-10-19 21:22:00 +00:00
%{_libdir}/%{name}/%{version}/modules/config_gnome.so
2011-06-07 10:39:13 +00:00
%{_libexecdir}/pxgconf}
%{?_with_gnome3:
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
%{_libexecdir}/pxgsettings}
}
2009-01-23 15:09:44 +00:00
%{?_with_kde:
2009-01-23 15:09:44 +00:00
%files kde
%defattr(-,root,root,-)
2010-02-21 23:27:51 +00:00
%{_libdir}/%{name}/%{version}/modules/config_kde4.so
}
2009-01-23 15:09:44 +00:00
%{?_with_mozjs:
2010-07-05 19:41:16 +00:00
%files mozjs
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
}
2009-01-23 15:09:44 +00:00
%{?_with_networkmanager:
2009-12-27 12:18:56 +00:00
%files networkmanager
2009-12-27 12:10:05 +00:00
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
}
2009-12-27 12:10:05 +00:00
%{?_with_webkit:
2010-07-05 19:41:16 +00:00
%files webkit
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
}
2009-01-23 15:09:44 +00:00
%{?_with_webkitgtk3:
%files webkitgtk3
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
}
2009-01-23 15:09:44 +00:00
%files devel
%defattr(-,root,root,-)
2010-03-24 23:39:12 +00:00
%{_includedir}/proxy.h
2009-01-23 15:09:44 +00:00
%{_libdir}/*.so
%{_libdir}/pkgconfig/libproxy-1.0.pc
%{_datadir}/cmake/Modules/Findlibproxy.cmake
2009-01-23 15:09:44 +00:00
%changelog
2011-12-06 05:08:27 +00:00
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.4.7-2
- Rebuild for new libpng
2011-06-07 10:17:51 +00:00
* Tue Jun 07 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.7-1
- Update to 0.4.7
- libproxy-1.0.pc is now reliable starting with 0.4.7
* Tue Apr 12 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.4.7-0.1svn20110412
- Update to 0.4.7 svn20110412
- Add support for webkitgtk3
- Add support for xulrunner 2.0
- fix #683015 - libproxy fails with autoconfiguration
- fix #683018 - libproxy needs BR: NetworkManager-glib-devel (f14)
- Manually fix libproxy-1.0.pc version field - #664781 / #674854
2010-11-24 11:12:58 +00:00
* Wed Nov 24 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.6-3
- Fix mozjs/webkit obsoletion - rhbz#656849
- Workaround unreliable Version field in pkg-config - rhbz#656484
2010-11-07 18:05:07 +00:00
* Sun Nov 07 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.6-1
2010-09-07 11:49:46 +00:00
- Update to 0.4.6
2010-11-07 18:05:07 +00:00
- Fix python module not arch dependant
2010-09-07 11:49:46 +00:00
2010-09-06 21:07:56 +00:00
* Mon Sep 06 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.5-2
- Update to 0.4.5
- Disable mozjs on fedora >= 15
- Disable webkit
- Add libproxy bootstrap option to disable modules.
2010-08-31 12:15:30 +00:00
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.4-7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-13 08:07:40 +00:00
* Tue Jul 13 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.4-6
- Fix libproxy-1.0.pc
2010-07-05 19:41:16 +00:00
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-5
- Re-enable mozjs and webkit
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-4
- Disable mozjs to get around a build error temporarily
* Mon Jul 05 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-3
- Disable webkit subpackage in order to resolve circular dep
2010-07-03 20:45:46 +00:00
* Sat Jul 03 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-2
- Fix missing BuildRequires: libmodman-devel
* Sun Jun 13 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-1
- Update to 0.4.4
- Removed install workarounds (fixed upstream)
- Removed patches (fixed upstream)
- Moved -python to noarch
- Downgrade cmake requirement (upstream change)
- Disabled perl bindings
- Run tests
2010-03-24 23:39:12 +00:00
2010-03-11 22:53:45 +00:00
* Thu Mar 11 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
- Add missing libXmu-devel
2010-02-21 23:27:51 +00:00
* Sun Feb 21 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
2010-02-21 21:52:00 +00:00
- Globalism and update gecko to 1.9.2
- Avoid rpath on _libdir
2010-02-21 23:27:51 +00:00
- Fix BR for kde4 to kdelibs-devel
2010-02-21 21:52:00 +00:00
2009-12-27 12:10:05 +00:00
* Sun Dec 27 2009 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-1
- Update to 0.3.1
- Avoid dependecies on -python and -bin subpackages
- Create -networkmanager sub-package.
2009-10-19 21:20:20 +00:00
* Thu Sep 24 2009 kwizart < kwizart at gmail.com > - 0.3.0-1
- Update to 0.3.0
2009-09-17 21:01:30 +00:00
* Thu Sep 17 2009 kwizart < kwizart at gmail.com > - 0.2.3-12
- Remove Requirement of %%{name}-pac virtual provides
from the main package - #524043
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-03-09 08:53:24 +00:00
* Mon Mar 9 2009 kwizart < kwizart at gmail.com > - 0.2.3-10
- Rebuild for webkit
- Raise requirement for xulrunner to 1.9.1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-01-23 15:09:44 +00:00
* Thu Jan 22 2009 kwizart < kwizart at gmail.com > - 0.2.3-8
- Merge NetworkManager module into the main libproxy package
- Main Requires the -python and -bin subpackage
(splitted for multilibs compliance).
* Fri Oct 24 2008 kwizart < kwizart at gmail.com > - 0.2.3-7
- Disable Gnome/KDE default support via builtin modules.
(it needs to be integrated via Gconf2/neon instead).
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-6
- Disable Obsoletes.
- Requires ev instead of evr for optionnals sub-packages.
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-5
- Use conditionals build.
* Mon Sep 15 2008 kwizart < kwizart at gmail.com > - 0.2.3-4
- Remove plugin- in the name of the packages
* Mon Aug 4 2008 kwizart < kwizart at gmail.com > - 0.2.3-3
- Move proxy.h to libproxy/proxy.h
This will prevent it to be included in the default include path
- Split main to libs and util and use libproxy to install all
* Mon Aug 4 2008 kwizart < kwizart at gmail.com > - 0.2.3-2
- Rename binding-python to python
- Add Requires: gecko-libs >= %%{gecko_version}
- Fix some descriptions
- Add plugin-webkit package
* Fri Jul 11 2008 kwizart < kwizart at gmail.com > - 0.2.3-1
- Convert to Fedora spec
* Fri Jun 6 2008 - dominique-rpm@leuenberger.net
- Updated to version 0.2.3
* Wed Jun 4 2008 - dominique-rpm@leuenberger.net
- Extended spec file to build all available plugins
* Tue Jun 3 2008 - dominique-rpm@leuenberger.net
- Initial spec file for Version 0.2.2