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