Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win32
mingw32-cross-filesystem
mingw32-cross-filesystem.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-cross-filesystem.spec of Package mingw32-cross-filesystem
# # spec file for package mingw32-cross-filesystem # # 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/ # %define _mingw32_target i686-w64-mingw32 # Tumbleweed %if %suse_version >= 1550 %define _rpmlintdir /opt/testing/share/rpmlint %else %define _rpmlintdir /opt/testing/share/rpmlint/mini %endif %define debug_package %{nil} %if %{undefined _distconfdir} %define _distconfdir %{_sysconfdir} %endif %if %{undefined _rpmmacrodir} %define _rpmmacrodir %{_sysconfdir}/rpm %endif Name: mingw32-cross-filesystem Version: 1.0.0 Release: 0 Summary: MinGW base filesystem and environment License: GPL-2.0-or-later Group: Development/Libraries/Other URL: https://en.opensuse.org/Build:projects:windows:mingw:win32 Source0: COPYING Source1: macros.mingw32-cross Source2: mingw32-cross.sh Source3: mingw32-cross-rpmlintrc Source4: mingw32-cross-filesystem-rpmlintrc #!BuildIgnore: post-build-checks BuildArch: noarch %description This package contains the base filesystem layout, RPM macros and environment for native packages installed in the root path of the associated target (in this case /usr/i686-w64-mingw32) and needed to build cross-compiled MinGW packages. %prep %setup -q -c -T cp %{SOURCE0} COPYING %build # nothing %install mkdir -p %{buildroot} mkdir -p %{buildroot}%_rpmlintdir # tumbleweed %if %suse_version >= 1550 # convert to toml file format, which seems to be required sed "s,addFilter *(\", ',g;s#\")#',#g" %{SOURCE3} | gawk 'BEGIN { print "Filters = ["} { print $0 } END { print "]"}' > %{SOURCE3}.toml install -m 644 %{SOURCE3}.toml %{buildroot}%_rpmlintdir/mingw32-cross.toml %else install -m 644 %{SOURCE3} %{buildroot}%_rpmlintdir/mingw32-cross-rpmlint.config %endif mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/include mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/bin mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/lib %ifnarch i586 mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/lib64/{pkgconfig,cmake,qt5} %else mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/lib/{pkgconfig,cmake,qt5} %endif mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/share/doc mkdir -p %{buildroot}%{_distconfdir}/profile.d install -m 644 %{SOURCE2} %{buildroot}%{_distconfdir}/profile.d/ mkdir -p %{buildroot}%{_rpmmacrodir} install -m 644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.mingw32-cross # kf5 mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/lib64/qt5/mkspecs/modules mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/share/qlogging-categories5 mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/mime/packages pushd /usr/share/locale for i in *; do mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/share/locale/$i/LC_MESSAGES done popd %files %license COPYING %{_rpmmacrodir}/macros.mingw32-cross %if %{undefined _distconfdir} %config %{_sysconfdir}/profile.d/mingw32-cross.sh %else %{_distconfdir}/profile.d/mingw32-cross.sh %endif %if %suse_version >= 1550 %_rpmlintdir/mingw32-cross.toml %else %_rpmlintdir/mingw32-cross-rpmlint.config %endif %{_prefix}/i686-w64-mingw32/ %{_rpmmacrodir}/macros.mingw32-cross %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor