forked from pool/mingw32-cross-cmake
- Update to version 1.1.5 * Ignore the '--' parameter when calling the mingw32-cmake macro from the command line (boo#1214641). * Add support for using '..' as source directory when calling the mingw32-cmake macro (boo#1214642) OBS-URL: https://build.opensuse.org/request/show/1106032 OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-cross-cmake?expand=0&rev=15
80 lines
2.3 KiB
RPMSpec
80 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package mingw32-cross-cmake
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: mingw32-cross-cmake
|
|
Version: 1.1.5
|
|
Release: 0
|
|
Summary: Cross build support for CMake
|
|
License: BSD-3-Clause
|
|
Group: Development/Tools/Building
|
|
URL: https://www.cmake.org/
|
|
Source1: macros.mingw32-cmake
|
|
Source2: mingw32-cmake.prov
|
|
Source3: mingw32_cmake.attr
|
|
Source4: mingw32-cmake.lua
|
|
BuildRequires: mingw32-filesystem
|
|
Requires: cmake >= 3.10
|
|
Requires: mingw32-filesystem
|
|
BuildArch: noarch
|
|
%_mingw32_package_header
|
|
|
|
%description
|
|
This package provides the required support files and macros
|
|
to create binary package for Windows with the CMake build system
|
|
|
|
%package -n mingw32-cross-ctest
|
|
Summary: CTest support for cross CMake package
|
|
Requires: mingw32-cross-cmake
|
|
Requires: mingw32-cross-wine
|
|
|
|
%description -n mingw32-cross-ctest
|
|
This package provides the required package to running tests
|
|
with cross compiled binaries.
|
|
|
|
%prep
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_rpmmacrodir}
|
|
cp %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.mingw32-cmake
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
ln -s %{_libexecdir}/mingw32-scripts %{buildroot}%{_bindir}/mingw32-cmake
|
|
|
|
# cmake support
|
|
install -m 0755 %{SOURCE2} %{buildroot}%{_rpmconfigdir}
|
|
mkdir -p %{buildroot}%{_fileattrsdir}
|
|
install -m 0644 %{SOURCE3} %{buildroot}%{_fileattrsdir}
|
|
|
|
# lua macros
|
|
mkdir -p %{buildroot}%{_rpmluadir}
|
|
install -m 0644 %{SOURCE4} %{buildroot}%{_rpmluadir}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_rpmluadir}
|
|
%{_rpmmacrodir}
|
|
%{_bindir}/mingw32-cmake
|
|
%{_rpmconfigdir}/mingw32-cmake.prov
|
|
%{_fileattrsdir}/mingw32_cmake.attr
|
|
|
|
%files -n mingw32-cross-ctest
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|