[4616] | 1 | %{!?python_sitelib: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
[521] | 2 | |
---|
| 3 | Summary: A library handling all the details of proxy configuration |
---|
| 4 | Name: libproxy |
---|
[4616] | 5 | Version: 0.4.7 |
---|
[2041] | 6 | Release: 1%{?_dist_release} |
---|
[521] | 7 | |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | License: LGPLv2+ |
---|
| 10 | URL: http://code.google.com/p/libproxy/ |
---|
| 11 | Source0: http://libproxy.googlecode.com/files/libproxy-%{version}.tar.gz |
---|
[4616] | 12 | Patch0: libproxy-0.4.7-cmake-modules.patch |
---|
[521] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 14 | |
---|
| 15 | BuildRequires: python-devel |
---|
| 16 | #Virtual Provides - We need either mozjs or WebKit |
---|
| 17 | Requires: %{name}-pac >= %{version} |
---|
| 18 | # |
---|
| 19 | Requires: libproxy-python = %{version}-%{release} |
---|
| 20 | Requires: libproxy-bin = %{version}-%{release} |
---|
| 21 | |
---|
[2041] | 22 | BuildRequires: cmake |
---|
[521] | 23 | # gnome |
---|
| 24 | BuildRequires: GConf2-devel |
---|
| 25 | # mozjs |
---|
[4616] | 26 | BuildRequires: js-devel |
---|
[521] | 27 | # NetworkManager |
---|
| 28 | BuildRequires: NetworkManager-devel |
---|
| 29 | BuildRequires: dbus-devel |
---|
| 30 | # webkit (gtk) |
---|
[4616] | 31 | BuildRequires: WebKit3-gtk-devel |
---|
[521] | 32 | # kde |
---|
[2041] | 33 | BuildRequires: kdelibs-devel |
---|
[521] | 34 | BuildRequires: libXmu-devel |
---|
| 35 | BuildRequires: libX11-devel |
---|
| 36 | |
---|
| 37 | |
---|
[4616] | 38 | Provides: %{name}-webkit = %{version}-%{release} |
---|
| 39 | Obsoletes: %{name}-webkit < %{version}-%{release} |
---|
| 40 | |
---|
| 41 | Vendor: Project Vine |
---|
| 42 | Distribution: Vine Linux |
---|
| 43 | |
---|
[521] | 44 | %description |
---|
| 45 | libproxy offers the following features: |
---|
| 46 | |
---|
| 47 | * extremely small core footprint (< 35K) |
---|
| 48 | * no external dependencies within libproxy core |
---|
| 49 | (libproxy plugins may have dependencies) |
---|
| 50 | * only 3 functions in the stable external API |
---|
| 51 | * dynamic adjustment to changing network topology |
---|
| 52 | * a standard way of dealing with proxy settings across all scenarios |
---|
| 53 | * a sublime sense of joy and accomplishment |
---|
| 54 | |
---|
| 55 | Non-default rpmbuild options: |
---|
| 56 | --with webkit: Enable WebKit-gtk support |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %package bin |
---|
| 60 | Summary: Binary to test %{name} |
---|
| 61 | Group: Applications/System |
---|
| 62 | Requires: %{name} = %{version}-%{release} |
---|
| 63 | |
---|
| 64 | %description bin |
---|
| 65 | The %{name}-bin package contains the proxy binary for %{name} |
---|
| 66 | |
---|
| 67 | %package python |
---|
| 68 | Summary: Binding for %{name} and python |
---|
| 69 | Group: System Environment/Libraries |
---|
| 70 | Requires: %{name} = %{version}-%{release} |
---|
| 71 | |
---|
| 72 | %description python |
---|
| 73 | The %{name}-python package contains the python binding for %{name} |
---|
| 74 | |
---|
| 75 | %package gnome |
---|
| 76 | Summary: Plugin for %{name} and gnome |
---|
| 77 | Group: System Environment/Libraries |
---|
| 78 | Requires: %{name} = %{version}-%{release} |
---|
| 79 | |
---|
| 80 | %description gnome |
---|
| 81 | The %{name}-gnome package contains the %{name} plugin for gnome. |
---|
| 82 | |
---|
| 83 | %package kde |
---|
| 84 | Summary: Plugin for %{name} and kde |
---|
| 85 | Group: System Environment/Libraries |
---|
| 86 | Requires: %{name} = %{version}-%{release} |
---|
| 87 | |
---|
| 88 | %description kde |
---|
| 89 | The %{name}-kde package contains the %{name} plugin for kde. |
---|
| 90 | |
---|
| 91 | %package mozjs |
---|
| 92 | Summary: Plugin for %{name} and mozjs |
---|
| 93 | Group: System Environment/Libraries |
---|
| 94 | Requires: %{name} = %{version} |
---|
| 95 | #Tweak this according to the current gecko-libs version |
---|
[4616] | 96 | Requires: js |
---|
[521] | 97 | Provides: %{name}-pac = %{version}-%{release} |
---|
| 98 | |
---|
| 99 | %description mozjs |
---|
| 100 | The %{name}-mozjs package contains the %{name} plugin for mozjs. |
---|
| 101 | |
---|
[4616] | 102 | %package webkitgtk3 |
---|
| 103 | Summary: Plugin for %{name} and webkitgtk3 |
---|
[521] | 104 | Group: System Environment/Libraries |
---|
| 105 | Requires: %{name} = %{version} |
---|
| 106 | Provides: %{name}-pac = %{version}-%{release} |
---|
| 107 | |
---|
[4616] | 108 | %description webkitgtk3 |
---|
| 109 | The %{name}-webkitgtk3 package contains the %{name} plugin for |
---|
| 110 | webkitgtk3. |
---|
[521] | 111 | |
---|
| 112 | %package devel |
---|
| 113 | Summary: Development files for %{name} |
---|
| 114 | Group: Development/Libraries |
---|
| 115 | Requires: %{name} = %{version}-%{release} |
---|
| 116 | Requires: pkgconfig |
---|
| 117 | |
---|
| 118 | %description devel |
---|
| 119 | The %{name}-devel package contains libraries and header files for |
---|
| 120 | developing applications that use %{name}. |
---|
| 121 | |
---|
| 122 | |
---|
| 123 | %prep |
---|
| 124 | %setup -q |
---|
[4616] | 125 | %patch0 -p1 -b .old_cmake |
---|
[521] | 126 | |
---|
| 127 | |
---|
| 128 | %build |
---|
[2041] | 129 | %cmake \ |
---|
| 130 | -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \ |
---|
| 131 | -DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \ |
---|
| 132 | -DWITH_PERL=OFF \ |
---|
[4616] | 133 | -DWITH_WEBKIT3=ON \ |
---|
[2041] | 134 | . |
---|
| 135 | make VERBOSE=1 %{?_smp_mflags} |
---|
[521] | 136 | |
---|
| 137 | |
---|
| 138 | %install |
---|
| 139 | rm -rf $RPM_BUILD_ROOT |
---|
| 140 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
---|
| 141 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | %clean |
---|
| 145 | rm -rf $RPM_BUILD_ROOT |
---|
| 146 | |
---|
| 147 | |
---|
| 148 | %post -p /sbin/ldconfig |
---|
| 149 | |
---|
| 150 | %postun -p /sbin/ldconfig |
---|
| 151 | |
---|
| 152 | |
---|
| 153 | %files |
---|
| 154 | %defattr(-,root,root,-) |
---|
| 155 | %doc AUTHORS COPYING README |
---|
| 156 | %{_libdir}/*.so.* |
---|
| 157 | %dir %{_libdir}/%{name} |
---|
| 158 | %dir %{_libdir}/%{name}/%{version} |
---|
[2041] | 159 | %dir %{_libdir}/%{name}/%{version}/modules |
---|
| 160 | %{_libdir}/%{name}/%{version}/modules/network_networkmanager.so |
---|
[521] | 161 | |
---|
| 162 | %files bin |
---|
| 163 | %defattr(-,root,root,-) |
---|
| 164 | %{_bindir}/proxy |
---|
| 165 | |
---|
| 166 | %files python |
---|
| 167 | %defattr(-,root,root,-) |
---|
[4616] | 168 | %{python_sitelib}/libproxy.py |
---|
[521] | 169 | |
---|
| 170 | %files gnome |
---|
| 171 | %defattr(-,root,root,-) |
---|
[4616] | 172 | %{_libdir}/%{name}/%{version}/modules/config_gnome3.so |
---|
| 173 | %{_libexecdir}/pxgsettings |
---|
[521] | 174 | |
---|
| 175 | %files kde |
---|
| 176 | %defattr(-,root,root,-) |
---|
[2041] | 177 | %{_libdir}/%{name}/%{version}/modules/config_kde4.so |
---|
[521] | 178 | |
---|
| 179 | %files mozjs |
---|
| 180 | %defattr(-,root,root,-) |
---|
[2041] | 181 | %{_libdir}/%{name}/%{version}/modules/pacrunner_mozjs.so |
---|
[521] | 182 | |
---|
[4616] | 183 | %files webkitgtk3 |
---|
[521] | 184 | %defattr(-,root,root,-) |
---|
[2041] | 185 | %{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so |
---|
[521] | 186 | |
---|
| 187 | %files devel |
---|
| 188 | %defattr(-,root,root,-) |
---|
[2041] | 189 | %{_includedir}/proxy.h |
---|
[521] | 190 | %{_libdir}/*.so |
---|
| 191 | %{_libdir}/pkgconfig/libproxy-1.0.pc |
---|
[2041] | 192 | %{_datadir}/cmake/Modules/Findlibproxy.cmake |
---|
[521] | 193 | |
---|
| 194 | |
---|
| 195 | %changelog |
---|
[4616] | 196 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.7-1 |
---|
| 197 | - new upstream release |
---|
| 198 | - change BuildRequires: WebKit3-gtk-devel instead of WebKit-gtk-devel |
---|
| 199 | - change BuildRequires: js-devel instead of gecko-devel |
---|
| 200 | - replace Patch0 (libproxy-0.4.7-cmake-modules.patch) |
---|
| 201 | - detele -webkit sub package |
---|
| 202 | - create -webkitgtk3 sub package |
---|
| 203 | |
---|
[2041] | 204 | * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.6-1 |
---|
| 205 | - new upstream release |
---|
| 206 | - drop Patch0 |
---|
| 207 | - add BuildRequires: cmake, kdelibs-devel |
---|
| 208 | - fix %files (from %{_libdir}/%{name}/%{version}/plugins to %{_libdir}/%{name}/%{version}/modules) |
---|
| 209 | |
---|
[1901] | 210 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.3-5 |
---|
| 211 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 212 | |
---|
[521] | 213 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.2.3-4 |
---|
| 214 | - rebuild with python-2.6 |
---|
| 215 | |
---|
| 216 | * Tue Jun 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.3-3 |
---|
| 217 | - rebuild with gecko-1.9.1 |
---|
| 218 | |
---|
| 219 | * Thu Mar 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.3-2 |
---|
| 220 | - rebuild with WebKit-gtk-1.0.0-8.svn41944 |
---|
| 221 | |
---|
| 222 | * Sat Mar 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.3-1 |
---|
| 223 | - initial build for Vine Linux |
---|
| 224 | |
---|
| 225 | * Mon Mar 9 2009 kwizart < kwizart at gmail.com > - 0.2.3-10 |
---|
| 226 | - Rebuild for webkit |
---|
| 227 | - Raise requirement for xulrunner to 1.9.1 |
---|
| 228 | |
---|
| 229 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-9 |
---|
| 230 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 231 | |
---|
| 232 | * Thu Jan 22 2009 kwizart < kwizart at gmail.com > - 0.2.3-8 |
---|
| 233 | - Merge NetworkManager module into the main libproxy package |
---|
| 234 | - Main Requires the -python and -bin subpackage |
---|
| 235 | (splitted for multilibs compliance). |
---|
| 236 | |
---|
| 237 | * Fri Oct 24 2008 kwizart < kwizart at gmail.com > - 0.2.3-7 |
---|
| 238 | - Disable Gnome/KDE default support via builtin modules. |
---|
| 239 | (it needs to be integrated via Gconf2/neon instead). |
---|
| 240 | |
---|
| 241 | * Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-6 |
---|
| 242 | - Disable Obsoletes. |
---|
| 243 | - Requires ev instead of evr for optionnals sub-packages. |
---|
| 244 | |
---|
| 245 | * Tue Oct 21 2008 kwizart < kwizart at gmail.com > - 0.2.3-5 |
---|
| 246 | - Use conditionals build. |
---|
| 247 | |
---|
| 248 | * Mon Sep 15 2008 kwizart < kwizart at gmail.com > - 0.2.3-4 |
---|
| 249 | - Remove plugin- in the name of the packages |
---|
| 250 | |
---|
| 251 | * Mon Aug 4 2008 kwizart < kwizart at gmail.com > - 0.2.3-3 |
---|
| 252 | - Move proxy.h to libproxy/proxy.h |
---|
| 253 | This will prevent it to be included in the default include path |
---|
| 254 | - Split main to libs and util and use libproxy to install all |
---|
| 255 | |
---|
| 256 | * Mon Aug 4 2008 kwizart < kwizart at gmail.com > - 0.2.3-2 |
---|
| 257 | - Rename binding-python to python |
---|
| 258 | - Add Requires: gecko-libs >= %%{gecko_version} |
---|
| 259 | - Fix some descriptions |
---|
| 260 | - Add plugin-webkit package |
---|
| 261 | |
---|
| 262 | * Fri Jul 11 2008 kwizart < kwizart at gmail.com > - 0.2.3-1 |
---|
| 263 | - Convert to Fedora spec |
---|
| 264 | |
---|
| 265 | * Fri Jun 6 2008 - dominique-rpm@leuenberger.net |
---|
| 266 | - Updated to version 0.2.3 |
---|
| 267 | * Wed Jun 4 2008 - dominique-rpm@leuenberger.net |
---|
| 268 | - Extended spec file to build all available plugins |
---|
| 269 | * Tue Jun 3 2008 - dominique-rpm@leuenberger.net |
---|
| 270 | - Initial spec file for Version 0.2.2 |
---|
| 271 | |
---|