catanzaro / rpms / libproxy

Forked from rpms/libproxy 3 years ago
Clone
9ee9b95
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
9ee9b95
583ef79
%define gecko_version 1.9.1
9ee9b95
9ee9b95
Name:           libproxy
9ee9b95
Version:        0.2.3
a0e286e
Release:        11%{?dist}
9ee9b95
Summary:        A library handling all the details of proxy configuration
9ee9b95
9ee9b95
Group:          System Environment/Libraries
9ee9b95
License:        LGPLv2+
9ee9b95
URL:            http://code.google.com/p/libproxy/
9ee9b95
Source0:        http://libproxy.googlecode.com/files/libproxy-%{version}.tar.gz
9ee9b95
Patch0:         libproxy-0.2.3-dbus.patch
9ee9b95
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9ee9b95
9ee9b95
BuildRequires:  python-devel
9ee9b95
#Virtual Provides - We need either mozjs or WebKit
9ee9b95
Requires: %{name}-pac >= %{version}
9ee9b95
#
9ee9b95
Requires: libproxy-python = %{version}-%{release}
9ee9b95
Requires: libproxy-bin = %{version}-%{release}
9ee9b95
9ee9b95
# gnome
9ee9b95
BuildRequires:  GConf2-devel
9ee9b95
# mozjs
9ee9b95
BuildRequires:  gecko-devel >= %{gecko_version}
9ee9b95
# NetworkManager
9ee9b95
BuildRequires:  NetworkManager-devel
9ee9b95
BuildRequires:  dbus-devel
9ee9b95
# webkit (gtk)
9ee9b95
BuildRequires:  WebKit-gtk-devel
9ee9b95
# kde
9ee9b95
BuildRequires:  libXmu-devel
9ee9b95
BuildRequires:  libX11-devel
9ee9b95
9ee9b95
9ee9b95
%description
9ee9b95
libproxy offers the following features:
9ee9b95
9ee9b95
    * extremely small core footprint (< 35K)
9ee9b95
    * no external dependencies within libproxy core
9ee9b95
      (libproxy plugins may have dependencies)
9ee9b95
    * only 3 functions in the stable external API
9ee9b95
    * dynamic adjustment to changing network topology
9ee9b95
    * a standard way of dealing with proxy settings across all scenarios
9ee9b95
    * a sublime sense of joy and accomplishment 
9ee9b95
9ee9b95
Non-default rpmbuild options:
9ee9b95
--with webkit:           Enable WebKit-gtk support
9ee9b95
9ee9b95
9ee9b95
%package        bin
9ee9b95
Summary:        Binary to test %{name}
9ee9b95
Group:          Applications/System
9ee9b95
Requires:       %{name} = %{version}-%{release}
9ee9b95
9ee9b95
%description    bin
9ee9b95
The %{name}-bin package contains the proxy binary for %{name}
9ee9b95
9ee9b95
%package        python
9ee9b95
Summary:        Binding for %{name} and python
9ee9b95
Group:          System Environment/Libraries
9ee9b95
Requires:       %{name} = %{version}-%{release}
9ee9b95
9ee9b95
%description    python
9ee9b95
The %{name}-python package contains the python binding for %{name}
9ee9b95
9ee9b95
%package        gnome
9ee9b95
Summary:        Plugin for %{name} and gnome
9ee9b95
Group:          System Environment/Libraries
9ee9b95
Requires:       %{name} = %{version}-%{release}
9ee9b95
9ee9b95
%description    gnome
9ee9b95
The %{name}-gnome package contains the %{name} plugin for gnome.
9ee9b95
9ee9b95
%package        kde
9ee9b95
Summary:        Plugin for %{name} and kde
9ee9b95
Group:          System Environment/Libraries
9ee9b95
Requires:       %{name} = %{version}-%{release}
9ee9b95
9ee9b95
%description    kde
9ee9b95
The %{name}-kde package contains the %{name} plugin for kde.
9ee9b95
9ee9b95
%package        mozjs
9ee9b95
Summary:        Plugin for %{name} and mozjs
9ee9b95
Group:          System Environment/Libraries
9ee9b95
Requires:       %{name} = %{version}
9ee9b95
#Tweak this according to the current gecko-libs version
9ee9b95
Requires:       gecko-libs >= %{gecko_version}
9ee9b95
Provides:       %{name}-pac = %{version}-%{release}
9ee9b95
9ee9b95
%description    mozjs
9ee9b95
The %{name}-mozjs package contains the %{name} plugin for mozjs.
9ee9b95
9ee9b95
%package        webkit
9ee9b95
Summary:        Plugin for %{name} and webkit
9ee9b95
Group:          System Environment/Libraries
9ee9b95
Requires:       %{name} = %{version}
9ee9b95
Provides:       %{name}-pac = %{version}-%{release}
9ee9b95
9ee9b95
%description    webkit
9ee9b95
The %{name}-webkit package contains the %{name} plugin for
9ee9b95
webkit.
9ee9b95
9ee9b95
%package        devel
9ee9b95
Summary:        Development files for %{name}
9ee9b95
Group:          Development/Libraries
9ee9b95
Requires:       %{name} = %{version}-%{release}
9ee9b95
Requires:       pkgconfig
9ee9b95
9ee9b95
%description    devel
9ee9b95
The %{name}-devel package contains libraries and header files for
9ee9b95
developing applications that use %{name}.
9ee9b95
9ee9b95
9ee9b95
%prep
9ee9b95
%setup -q
9ee9b95
%patch0 -p1 -b .dbus
9ee9b95
touch -r configure.dbus configure
9ee9b95
touch -r configure.ac.dbus configure.ac
9ee9b95
9ee9b95
9ee9b95
%build
9ee9b95
%configure --includedir=%{_includedir}/libproxy --disable-static --with-python
9ee9b95
make %{?_smp_mflags}
9ee9b95
9ee9b95
9ee9b95
%install
9ee9b95
rm -rf $RPM_BUILD_ROOT
9ee9b95
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
9ee9b95
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
9ee9b95
9ee9b95
9ee9b95
%clean
9ee9b95
rm -rf $RPM_BUILD_ROOT
9ee9b95
9ee9b95
9ee9b95
%post -p /sbin/ldconfig
9ee9b95
9ee9b95
%postun -p /sbin/ldconfig
9ee9b95
9ee9b95
9ee9b95
%files 
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%doc AUTHORS COPYING README
9ee9b95
%{_libdir}/*.so.*
9ee9b95
%dir %{_libdir}/%{name}
9ee9b95
%dir %{_libdir}/%{name}/%{version}
9ee9b95
%dir %{_libdir}/%{name}/%{version}/plugins
9ee9b95
%{_libdir}/%{name}/%{version}/plugins/envvar.so
9ee9b95
%{_libdir}/%{name}/%{version}/plugins/file.so
9ee9b95
%{_libdir}/%{name}/%{version}/plugins/networkmanager.so
9ee9b95
9ee9b95
%files bin
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%{_bindir}/proxy
9ee9b95
9ee9b95
%files python
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%{python_sitelib}/*
9ee9b95
9ee9b95
%files gnome
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%{_libdir}/%{name}/%{version}/plugins/gnome.so
9ee9b95
9ee9b95
%files kde
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%{_libdir}/%{name}/%{version}/plugins/kde.so
9ee9b95
9ee9b95
%files mozjs
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%{_libdir}/%{name}/%{version}/plugins/mozjs.so
9ee9b95
9ee9b95
%files webkit
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%{_libdir}/%{name}/%{version}/plugins/webkit.so
9ee9b95
9ee9b95
%files devel
9ee9b95
%defattr(-,root,root,-)
9ee9b95
%{_includedir}/libproxy/
9ee9b95
%{_libdir}/*.so
9ee9b95
%{_libdir}/pkgconfig/libproxy-1.0.pc
9ee9b95
9ee9b95
9ee9b95
%changelog
a0e286e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-11
a0e286e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a0e286e
583ef79
* Mon Mar  9 2009 kwizart < kwizart at gmail.com > - 0.2.3-10
583ef79
- Rebuild for webkit
583ef79
- Raise requirement for xulrunner to 1.9.1
583ef79
ee3e9cf
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-9
ee3e9cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ee3e9cf
9ee9b95
* Thu Jan 22 2009 kwizart < kwizart at gmail.com > - 0.2.3-8
9ee9b95
- Merge NetworkManager module into the main libproxy package
9ee9b95
- Main Requires the -python and -bin subpackage 
9ee9b95
 (splitted for multilibs compliance).
9ee9b95
9ee9b95
* Fri Oct 24 2008 kwizart < kwizart at gmail.com > - 0.2.3-7
9ee9b95
- Disable Gnome/KDE default support via builtin modules.
9ee9b95
 (it needs to be integrated via Gconf2/neon instead).
9ee9b95
9ee9b95
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-6
9ee9b95
- Disable Obsoletes.
9ee9b95
- Requires ev instead of evr for optionnals sub-packages.
9ee9b95
9ee9b95
* Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-5
9ee9b95
- Use conditionals build.
9ee9b95
9ee9b95
* Mon Sep 15 2008 kwizart < kwizart at gmail.com > - 0.2.3-4
9ee9b95
- Remove plugin- in the name of the packages
9ee9b95
9ee9b95
* Mon Aug  4 2008 kwizart < kwizart at gmail.com > - 0.2.3-3
9ee9b95
- Move proxy.h to libproxy/proxy.h
9ee9b95
  This will prevent it to be included in the default include path
9ee9b95
- Split main to libs and util and use libproxy to install all
9ee9b95
9ee9b95
* Mon Aug  4 2008 kwizart < kwizart at gmail.com > - 0.2.3-2
9ee9b95
- Rename binding-python to python
9ee9b95
- Add Requires: gecko-libs >= %%{gecko_version}
9ee9b95
- Fix some descriptions
9ee9b95
- Add plugin-webkit package
9ee9b95
 
9ee9b95
* Fri Jul 11 2008 kwizart < kwizart at gmail.com > - 0.2.3-1
9ee9b95
- Convert to Fedora spec
9ee9b95
9ee9b95
* Fri Jun 6 2008 - dominique-rpm@leuenberger.net
9ee9b95
- Updated to version 0.2.3
9ee9b95
* Wed Jun 4 2008 - dominique-rpm@leuenberger.net
9ee9b95
- Extended spec file to build all available plugins
9ee9b95
* Tue Jun 3 2008 - dominique-rpm@leuenberger.net
9ee9b95
- Initial spec file for Version 0.2.2
9ee9b95