File mingw64-curl-installer.spec of Package mingw64-curl
#
# spec file for package mingw64-curl-installer
#
# 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/
#
%define _name curl
%define _version %(find -name 'curl-[0-9]*.tar.*' | sed 's,^.*-,,g;s,.tar.*$,,g')
Name: mingw64-%{_name}-installer
Version: %{_version}
Release: 0
Summary: Installer for MinGW Windows port of curl and libcurl
License: MIT
Group: Development/Libraries/C and C++
Url: https://curl.se/
Source0: https://curl.se/download/curl-%{version}.tar.xz
BuildRequires: mingw64-installer-base
BuildRequires: mingw64-%{_name}
# language packages
# for debug package
BuildRequires: mingw64-%{_name}-debug
BuildArch: noarch
%description
This package contains a setup installer of Curl, command line tool and library for transferring data with URLs.
%_mingw64_installer_package -n mingw64-curl -p curl -P "Curl, command line tool and library for transferring data with URLs"
%prep
%_mingw64_installer_prep
%build
%_mingw64_installer_build -p curl -P Curl -r mingw64-%{_name} -s %{SOURCE0}
%install
%_mingw64_installer_install
%changelog