cc4141f
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
9ee9b95
cc4141f
%global gecko_version 1.9.2
9ee9b95
9ee9b95
Name:           libproxy
10d58e6
Version:        0.4.4
10d58e6
Release:        1%{?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/
95da386
Source0:        http://libproxy.googlecode.com/files/libproxy-%{version}.tar.gz
9ee9b95
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9ee9b95
9ee9b95
BuildRequires:  python-devel
10d58e6
BuildRequires:  cmake >= 2.6.0
9ee9b95
9ee9b95
# gnome
9ee9b95
BuildRequires:  GConf2-devel
8ac700f
BuildRequires:  libXmu-devel
9ee9b95
# mozjs
dd4ad08
BuildRequires:  gecko-devel
9ee9b95
# NetworkManager
9ee9b95
BuildRequires:  NetworkManager-devel
9ee9b95
BuildRequires:  dbus-devel
9ee9b95
# webkit (gtk)
9ee9b95
BuildRequires:  WebKit-gtk-devel
9ee9b95
# kde
7b5df6c
BuildRequires:  kdelibs-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
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}
10d58e6
BuildArch:      noarch
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
880b20c
%package        networkmanager
880b20c
Summary:        Plugin for %{name} and networkmanager
880b20c
Group:          System Environment/Libraries
880b20c
Requires:       %{name} = %{version}
880b20c
880b20c
%description    networkmanager
10d58e6
The %{name}-networkmanager package contains the %{name} plugin
10d58e6
for networkmanager.
880b20c
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
%prep
9ee9b95
%setup -q
9ee9b95
9ee9b95
%build
95da386
%{cmake} \
10d58e6
  -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
10d58e6
  -DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
10d58e6
  -DWITH_PERL=OFF \
95da386
   .
95da386
make VERBOSE=1 %{?_smp_mflags}
95da386
10d58e6
%check
10d58e6
make test
9ee9b95
9ee9b95
%install
9ee9b95
rm -rf $RPM_BUILD_ROOT
9ee9b95
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
9ee9b95
9ee9b95
%clean
9ee9b95
rm -rf $RPM_BUILD_ROOT
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}
f82d6b0
%dir %{_libdir}/%{name}/%{version}/modules
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,-)
f82d6b0
%{_libdir}/%{name}/%{version}/modules/config_gnome.so
10d58e6
%{_libexecdir}/pxgconf
9ee9b95
9ee9b95
%files kde
9ee9b95
%defattr(-,root,root,-)
7b5df6c
%{_libdir}/%{name}/%{version}/modules/config_kde4.so
9ee9b95
9ee9b95
%files mozjs
9ee9b95
%defattr(-,root,root,-)
f82d6b0
%{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so
9ee9b95
73cfa4e
%files networkmanager
880b20c
%defattr(-,root,root,-)
880b20c
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
880b20c
9ee9b95
%files webkit
9ee9b95
%defattr(-,root,root,-)
f82d6b0
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
9ee9b95
9ee9b95
%files devel
9ee9b95
%defattr(-,root,root,-)
95da386
%{_includedir}/proxy.h
9ee9b95
%{_libdir}/*.so
9ee9b95
%{_libdir}/pkgconfig/libproxy-1.0.pc
10d58e6
%{_datadir}/cmake/Modules/Findlibproxy.cmake
9ee9b95
9ee9b95
9ee9b95
%changelog
10d58e6
* Sun Jun 13 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.4.4-1
10d58e6
- Update to 0.4.4
10d58e6
- Removed install workarounds (fixed upstream)
10d58e6
- Removed patches (fixed upstream)
10d58e6
- Moved -python to noarch
10d58e6
- Downgrade cmake requirement (upstream change)
10d58e6
- Disabled perl bindings
10d58e6
- Run tests
95da386
8ac700f
* Thu Mar 11 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
8ac700f
- Add missing libXmu-devel
8ac700f
7b5df6c
* Sun Feb 21 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-4
cc4141f
- Globalism and update gecko to 1.9.2
dd4ad08
- Avoid rpath on _libdir
7b5df6c
- Fix BR for kde4 to kdelibs-devel
cc4141f
880b20c
* Sun Dec 27 2009 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.3.1-1
880b20c
- Update to 0.3.1
880b20c
- Avoid dependecies on -python and -bin subpackages
880b20c
- Create -networkmanager sub-package.
880b20c
37c6477
* Thu Sep 24 2009 kwizart < kwizart at gmail.com > - 0.3.0-1
37c6477
- Update to 0.3.0
37c6477
d746922
* Thu Sep 17 2009 kwizart < kwizart at gmail.com > - 0.2.3-12
d746922
- Remove Requirement of %%{name}-pac virtual provides 
d746922
  from the main package - #524043
d746922
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