File mingw32-curl-installer.spec of Package mingw32-curl

#
# spec file for package mingw32-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:           mingw32-%{_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:  mingw32-installer-base
BuildRequires:  mingw32-%{_name}
# language packages

# for debug package
BuildRequires:  mingw32-%{_name}-debug
BuildArch:      noarch

%description
This package contains a setup installer of Curl, command line tool and library for transferring data with URLs.

%_mingw32_installer_package -n mingw32-curl -p curl -P "Curl, command line tool and library for transferring data with URLs"

%prep
%_mingw32_installer_prep

%build
%_mingw32_installer_build -p curl -P Curl -r mingw32-%{_name} -s %{SOURCE0}

%install
%_mingw32_installer_install
%changelog
openSUSE Build Service is sponsored by