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