Update to libproxy bootstrap special case

This commit is contained in:
Nicolas Chauvet 2010-09-06 17:28:33 +02:00
parent 20f1af4a2c
commit 9970be7bb7

View File

@ -1,9 +1,17 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global gecko_version 1.9.2 #0 to bootstrap libproxy circle dependencies - 1 normal case
%if 0
%if 0%{?fedora} < 15 %if 0%{?fedora} < 15
%global gecko_version 1.9.2
%global _with_mozjs 1 %global _with_mozjs 1
%endif %endif
%global _with_gnome 1
%global _with_kde 1
%global _with_networkmanager 1
%global _with_python 1
%global _with_webkit 1
%endif
Name: libproxy Name: libproxy
Version: 0.4.5 Version: 0.4.5
@ -16,22 +24,26 @@ URL: http://code.google.com/p/libproxy/
Source0: http://libproxy.googlecode.com/files/libproxy-%{version}.tar.gz Source0: http://libproxy.googlecode.com/files/libproxy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel %{?_with_python:BuildRequires: python-devel}
BuildRequires: libmodman-devel BuildRequires: libmodman-devel >= 2.0.0
BuildRequires: cmake >= 2.6.0 BuildRequires: cmake >= 2.6.0
# gnome # gnome
%{?_with_gnome:
BuildRequires: GConf2-devel BuildRequires: GConf2-devel
BuildRequires: libXmu-devel BuildRequires: libXmu-devel
}
# mozjs # mozjs
%{?_with_mozjs:BuildRequires: gecko-devel} %{?_with_mozjs:BuildRequires: gecko-devel}
# NetworkManager # NetworkManager
%{?_with_networkmanager:
BuildRequires: NetworkManager-devel BuildRequires: NetworkManager-devel
BuildRequires: dbus-devel BuildRequires: dbus-devel
}
# webkit (gtk) # webkit (gtk)
BuildRequires: WebKit-gtk-devel %{?_with_webkit:BuildRequires: WebKit-gtk-devel}
# kde # kde
BuildRequires: kdelibs-devel %{?_with_kde:BuildRequires: kdelibs-devel}
%description %description
@ -54,6 +66,7 @@ Requires: %{name} = %{version}-%{release}
%description bin %description bin
The %{name}-bin package contains the proxy binary for %{name} The %{name}-bin package contains the proxy binary for %{name}
%{?_with_python:
%package python %package python
Summary: Binding for %{name} and python Summary: Binding for %{name} and python
Group: System Environment/Libraries Group: System Environment/Libraries
@ -62,7 +75,9 @@ BuildArch: noarch
%description python %description python
The %{name}-python package contains the python binding for %{name} The %{name}-python package contains the python binding for %{name}
}
%{?_with_gnome:
%package gnome %package gnome
Summary: Plugin for %{name} and gnome Summary: Plugin for %{name} and gnome
Group: System Environment/Libraries Group: System Environment/Libraries
@ -70,7 +85,9 @@ Requires: %{name} = %{version}-%{release}
%description gnome %description gnome
The %{name}-gnome package contains the %{name} plugin for gnome. The %{name}-gnome package contains the %{name} plugin for gnome.
}
%{?_with_kde:
%package kde %package kde
Summary: Plugin for %{name} and kde Summary: Plugin for %{name} and kde
Group: System Environment/Libraries Group: System Environment/Libraries
@ -78,6 +95,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.
}
%{?_with_mozjs: %{?_with_mozjs:
%package mozjs %package mozjs
@ -92,6 +110,7 @@ Provides: %{name}-pac = %{version}-%{release}
The %{name}-mozjs package contains the %{name} plugin for mozjs. The %{name}-mozjs package contains the %{name} plugin for mozjs.
} }
%{?_with_networkmanager:
%package networkmanager %package networkmanager
Summary: Plugin for %{name} and networkmanager Summary: Plugin for %{name} and networkmanager
Group: System Environment/Libraries Group: System Environment/Libraries
@ -100,7 +119,9 @@ Requires: %{name} = %{version}
%description networkmanager %description networkmanager
The %{name}-networkmanager package contains the %{name} plugin The %{name}-networkmanager package contains the %{name} plugin
for networkmanager. for networkmanager.
}
%{?_with_webkit:
%package webkit %package webkit
Summary: Plugin for %{name} and webkit Summary: Plugin for %{name} and webkit
Group: System Environment/Libraries Group: System Environment/Libraries
@ -110,6 +131,7 @@ Provides: %{name}-pac = %{version}-%{release}
%description webkit %description webkit
The %{name}-webkit package contains the %{name} plugin for The %{name}-webkit package contains the %{name} plugin for
webkit. webkit.
}
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
@ -159,18 +181,24 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/proxy %{_bindir}/proxy
%{?_with_python:
%files python %files python
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitelib}/* %{python_sitelib}/*
}
%{?_with_gnome:
%files gnome %files gnome
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/config_gnome.so %{_libdir}/%{name}/%{version}/modules/config_gnome.so
%{_libexecdir}/pxgconf %{_libexecdir}/pxgconf
}
%{?_with_kde:
%files kde %files kde
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/config_kde4.so %{_libdir}/%{name}/%{version}/modules/config_kde4.so
}
%{?_with_mozjs: %{?_with_mozjs:
%files mozjs %files mozjs
@ -178,13 +206,17 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so %{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
} }
%{?_with_networkmanager:
%files networkmanager %files networkmanager
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so %{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
}
%{?_with_webkit:
%files webkit %files webkit
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so %{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
}
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -198,6 +230,7 @@ rm -rf $RPM_BUILD_ROOT
* Mon Sep 6 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.5-1 * Mon Sep 6 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.4.5-1
- Update to 0.4.5 - Update to 0.4.5
- Disable mozjs on fedora >= 15 - Disable mozjs on fedora >= 15
- Add libproxy bootstrap option to disable modules.
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.4-7 * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.4-7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild