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