File mingw64-libproxy.spec of Package mingw64-libproxy
#
# spec file for package mingw64-libproxy
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw64-libproxy
Version: 0.4.6
Release: 0
Summary: Libproxy provides consistent proxy configuration to applications
License: GPL-2.0-or-later and LGPL-2.1-or-later
Group: System/Libraries
Url: http://code.google.com/p/libproxy/
Source: libproxy-%{version}.tar.gz
Patch0: libproxy-0.4.6-windows.patch
Patch1: libproxy-0.4.6-pkgconfig.patch
Patch2: libproxy-0.4.6-gcc6.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libmodman-devel
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
libproxy offers the following features: * extremely small core
footprint (< 35K)
* no external dependencies within libproxy core (libproxy modules
may have dependencies)
* only 3 functions in the stable external API
* dynamic adjustment to changing network topology
* a standard way of dealing with proxy settings across all scenarios
%package devel
Summary: Libproxy provides consistent proxy configuration to applications - Development Files
Group: System/Libraries
%description devel
libproxy offers the following features: * extremely small core
footprint (< 35K)
* no external dependencies within libproxy core (libproxy modules
may have dependencies)
* only 3 functions in the stable external API
* dynamic adjustment to changing network topology
* a standard way of dealing with proxy settings across all scenarios
%package tools
Summary: A simple application using libproxy
Group: System/Libraries
%description tools
A simple application that will use libproxy to give the results you can
expect from other applications. It can be used to debug what would
happen in various cases.
%_mingw64_debug_package
%prep
%setup -q -n libproxy-%{version}
%patch -P 0 -p1 -b .windows
%patch -P 1 -p1 -b .pkgconfig
%patch -P 2 -p1 -b .gcc6
%build
rm -rf CMakeCache.txt
MINGW64_CXXFLAGS="%_mingw64_cxxflags -std=c++11 -DWIN32"
%{_mingw64_cmake} \
-DCMAKE_RC_COMPILER="%{_bindir}/%{_mingw64_windres}" \
-DSHARE_INSTALL_DIR=%{_mingw64_datadir} \
-DBIN_INSTALL_DIR=%{_mingw64_bindir} \
-DCMAKE_MODULE_PATH=%{_mingw64_datadir}/cmake/Modules \
-DWITH_PERL=OFF -DWITH_PYTHON=OFF -DWITH_DOTNET=OFF -DWITH_VALA=OFF .
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
mv %{buildroot}%{_mingw64_libdir}/liblibproxy.dll.a \
%{buildroot}%{_mingw64_libdir}/libproxy.dll.a
mkdir -p %{buildroot}%{_mingw64_bindir}
mv %{buildroot}%{_mingw64_libdir}/*.dll \
%{buildroot}%{_mingw64_bindir}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/libproxy.dll
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libproxy.dll.a
%{_mingw64_libdir}/pkgconfig/libproxy-1.0.pc
%{_mingw64_includedir}/proxy.h
%{_mingw64_datadir}/cmake/Modules/Findlibproxy.cmake
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/proxy.exe
%changelog