2013-09-23 11:44:04 +00:00
|
|
|
#
|
|
|
|
# spec file for package mingw64-filesystem
|
|
|
|
#
|
2022-05-24 08:26:51 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-09-23 11:44:04 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-11-11 07:22:07 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-09-23 11:44:04 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-09-16 11:49:42 +00:00
|
|
|
# Tumbleweed
|
2021-12-02 14:07:53 +00:00
|
|
|
%if %suse_version >= 1550
|
2021-09-16 11:49:42 +00:00
|
|
|
%define _rpmlintdir /opt/testing/share/rpmlint
|
|
|
|
%else
|
|
|
|
%define _rpmlintdir /opt/testing/share/rpmlint/mini
|
|
|
|
%endif
|
|
|
|
|
2009-04-08 13:11:27 +00:00
|
|
|
%define debug_package %{nil}
|
2021-06-14 14:13:51 +00:00
|
|
|
%if %{undefined _distconfdir}
|
|
|
|
%define _distconfdir %{_sysconfdir}
|
|
|
|
%endif
|
|
|
|
%if %{undefined _rpmmacrodir}
|
|
|
|
%define _rpmmacrodir %{_sysconfdir}/rpm
|
|
|
|
%endif
|
2009-04-08 13:11:27 +00:00
|
|
|
Name: mingw64-filesystem
|
2022-05-24 08:26:51 +00:00
|
|
|
Version: 20220524
|
2009-04-08 13:11:27 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: MinGW base filesystem and environment
|
2020-08-24 14:03:28 +00:00
|
|
|
License: GPL-2.0-or-later
|
2020-08-27 07:41:37 +00:00
|
|
|
Group: Development/Libraries/Other
|
2020-11-11 07:22:07 +00:00
|
|
|
URL: http://hg.et.redhat.com/misc/fedora-mingw--devel/
|
2009-04-08 13:11:27 +00:00
|
|
|
Source0: COPYING
|
|
|
|
Source1: macros.mingw64
|
|
|
|
Source2: mingw64.sh
|
|
|
|
Source3: mingw64-find-debuginfo.sh
|
|
|
|
Source4: mingw64-find-requires.sh
|
|
|
|
Source5: mingw64-find-provides.sh
|
|
|
|
Source6: mingw64-scripts.sh
|
2020-08-27 07:41:37 +00:00
|
|
|
Source7: mingw64-rpmlintrc
|
2009-04-08 13:11:27 +00:00
|
|
|
Source8: mingw64-install-post.sh
|
2015-07-15 06:03:41 +00:00
|
|
|
Source9: mingw64-find-lang.sh
|
|
|
|
Source10: languages
|
|
|
|
Source11: languages.man
|
2020-08-24 14:03:28 +00:00
|
|
|
Source12: mingw64-cmake.prov
|
|
|
|
Source13: mingw64-cmake.attr
|
|
|
|
Source14: macros.mingw64-cmake
|
2021-12-02 14:07:53 +00:00
|
|
|
Source15: mingw64-filesystem-rpmlintrc
|
2021-08-03 06:05:54 +00:00
|
|
|
Provides: mingw64(bcrypt.dll)
|
2015-11-30 22:17:00 +00:00
|
|
|
Provides: mingw64(dbghelp.dll)
|
|
|
|
Provides: mingw64(mpr.dll)
|
2019-07-22 10:18:05 +00:00
|
|
|
Provides: mingw64(odbccp32.dll)
|
2015-11-30 22:17:00 +00:00
|
|
|
Provides: mingw64(userenv.dll)
|
2017-07-20 11:19:10 +00:00
|
|
|
Provides: mingw64(uxtheme.dll)
|
2018-10-19 06:09:11 +00:00
|
|
|
# TODO: The available DLL's can be identified by the
|
|
|
|
# available import libraries of the mingw64-runtime package.
|
2021-09-14 06:40:27 +00:00
|
|
|
# needed by mingw64-libqt5-qtbase
|
2020-08-27 07:41:37 +00:00
|
|
|
Provides: mingw64(d2d1.dll)
|
2018-10-19 06:09:11 +00:00
|
|
|
Provides: mingw64(d3d11.dll)
|
|
|
|
Provides: mingw64(dwrite.dll)
|
2021-07-12 14:52:51 +00:00
|
|
|
Provides: mingw64(ncrypt.dll)
|
2014-08-28 08:51:03 +00:00
|
|
|
Requires: mingw64-cross-breakpad-tools
|
2020-08-24 14:03:28 +00:00
|
|
|
Requires: python3
|
2014-10-21 07:29:38 +00:00
|
|
|
Requires: rpm
|
2021-09-16 11:49:42 +00:00
|
|
|
Requires: rpmlint-mini
|
2014-06-01 12:03:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
#!BuildIgnore: post-build-checks
|
2009-04-08 13:11:27 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the base filesystem layout, RPM macros and
|
2009-12-16 10:46:30 +00:00
|
|
|
environment for all MinGW packages.
|
2009-04-08 13:11:27 +00:00
|
|
|
|
|
|
|
This environment is maintained by the Fedora MinGW SIG at:
|
|
|
|
|
|
|
|
http://fedoraproject.org/wiki/SIGs/MinGW
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
cp %{SOURCE0} COPYING
|
|
|
|
sed 's/@VERSION@/%{version}/' < %{SOURCE4} > mingw64-find-requires.sh
|
|
|
|
|
|
|
|
%build
|
|
|
|
# nothing
|
|
|
|
|
|
|
|
%install
|
2014-06-01 12:03:02 +00:00
|
|
|
mkdir -p %{buildroot}
|
2009-04-08 13:11:27 +00:00
|
|
|
|
2014-06-05 05:06:25 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib
|
2020-08-27 07:41:37 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}
|
2014-10-21 07:29:38 +00:00
|
|
|
install -m 755 %{SOURCE6} %{buildroot}%{_libexecdir}/mingw64-scripts
|
2009-04-08 13:11:27 +00:00
|
|
|
|
2020-11-11 07:22:07 +00:00
|
|
|
# this is already provided by _mingw64_create_macro_links
|
|
|
|
# but including macros.mingw64 results into an unknown failure
|
2014-06-01 12:03:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
pushd %{buildroot}%{_bindir}
|
2020-11-11 07:22:07 +00:00
|
|
|
for i in mingw64-configure mingw64-make mingw64-cmake mingw64-gdb ; do
|
2014-10-21 07:29:38 +00:00
|
|
|
ln -s %{_libexecdir}/mingw64-scripts $i
|
2009-04-08 13:11:27 +00:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2021-06-14 14:13:51 +00:00
|
|
|
mkdir -p %{buildroot}%{_distconfdir}/profile.d
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_distconfdir}/profile.d
|
2009-04-08 13:11:27 +00:00
|
|
|
|
2021-06-14 14:13:51 +00:00
|
|
|
mkdir -p %{buildroot}%{_rpmmacrodir}
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.mingw64
|
2021-09-16 11:49:42 +00:00
|
|
|
install -m 644 %{SOURCE14} %{buildroot}%{_rpmmacrodir}/$(basename %{SOURCE14})
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%_rpmlintdir
|
|
|
|
# tumbleweed
|
2021-12-02 14:07:53 +00:00
|
|
|
%if %suse_version >= 1550
|
2021-09-16 11:49:42 +00:00
|
|
|
# convert to toml file format, which seems to be required
|
|
|
|
sed "s,addFilter *(\", ',g;s#\")#',#g" %{SOURCE7} | gawk 'BEGIN { print "Filters = ["} { print $0 } END { print "]"}' > %{SOURCE7}.toml
|
|
|
|
install -m 644 %{SOURCE7}.toml %{buildroot}%_rpmlintdir/mingw64.toml
|
|
|
|
%else
|
|
|
|
install -m 644 %{SOURCE7} %{buildroot}%_rpmlintdir/mingw64-rpmlint.config
|
|
|
|
%endif
|
2009-04-08 13:11:27 +00:00
|
|
|
|
2014-06-01 12:03:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32
|
2009-04-08 13:11:27 +00:00
|
|
|
|
|
|
|
# GCC requires these directories, even though they contain links
|
|
|
|
# to binaries which are also installed in /usr/bin etc. These
|
2014-09-25 09:25:19 +00:00
|
|
|
# contain native binaries.
|
2014-06-01 12:03:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/bin
|
2014-06-11 20:55:53 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/lib
|
2009-04-08 13:11:27 +00:00
|
|
|
|
|
|
|
# The MinGW system root which will contain Windows native binaries
|
2011-04-13 22:09:45 +00:00
|
|
|
# and Windows-specific header files, pkgconfig, etc.
|
2014-06-01 12:03:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/bin
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/include
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/include/sys
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib
|
2017-07-20 11:19:10 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib/cmake
|
2014-06-01 12:03:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/aclocal
|
2017-07-20 11:19:10 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig
|
2014-06-11 20:55:53 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/var
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw%{_localstatedir}/lib
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw%{_localstatedir}/lib/rpm-state
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw%{_localstatedir}/lib/rpm-state/gconf
|
2014-06-01 12:03:02 +00:00
|
|
|
|
|
|
|
(cd %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root && ln -s mingw x86_64-w64-mingw32)
|
|
|
|
|
2015-03-31 20:44:17 +00:00
|
|
|
# Let programs locate their plugins relative to the executable without using
|
|
|
|
# upward movement ("..") in those packages, cf. libdbi, libenchant.
|
2021-09-14 06:40:27 +00:00
|
|
|
#
|
2015-03-31 20:44:17 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/bin/lib
|
|
|
|
ln -s ../../lib "%buildroot/%_prefix/x86_64-w64-mingw32/sys-root/mingw/bin/lib/x86_64-pc"
|
|
|
|
|
2014-06-01 12:03:02 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/doc
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/info
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man/man{1,2,3,4,5,6,7,8,9,n}
|
2009-04-08 13:11:27 +00:00
|
|
|
|
|
|
|
# NB. NOT _libdir
|
2021-06-14 14:13:51 +00:00
|
|
|
mkdir -p %{buildroot}%{_rpmconfigdir}
|
|
|
|
install -m 0755 %{SOURCE3} %{buildroot}%{_rpmconfigdir}
|
|
|
|
install -m 0755 %{SOURCE4} %{buildroot}%{_rpmconfigdir}
|
|
|
|
install -m 0755 %{SOURCE5} %{buildroot}%{_rpmconfigdir}
|
|
|
|
install -m 0755 %{SOURCE8} %{buildroot}%{_rpmconfigdir}
|
|
|
|
install -m 0755 %{SOURCE9} %{buildroot}%{_rpmconfigdir}
|
2015-07-15 06:03:41 +00:00
|
|
|
|
2020-08-24 14:03:28 +00:00
|
|
|
# cmake support
|
2021-06-14 14:13:51 +00:00
|
|
|
install -m 0755 %{SOURCE12} %{buildroot}%{_rpmconfigdir}
|
|
|
|
mkdir -p %{buildroot}%{_fileattrsdir}
|
|
|
|
install -m 0644 %{SOURCE13} %{buildroot}%{_fileattrsdir}
|
2020-08-24 14:03:28 +00:00
|
|
|
|
2015-07-15 06:03:41 +00:00
|
|
|
# Create the locale directories:
|
|
|
|
while read LANG ; do
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/locale/$LANG/LC_MESSAGES
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/help/$LANG
|
|
|
|
done < %{SOURCE10}
|
|
|
|
# Create the locale directories for man:
|
|
|
|
while read LANG ; do
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man/$LANG
|
|
|
|
for sec in 1 2 3 4 5 6 7 8 9 n; do
|
2017-07-20 11:19:10 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man/$LANG/man$sec
|
2015-07-15 06:03:41 +00:00
|
|
|
done
|
|
|
|
done < %{SOURCE11}
|
2009-04-08 13:11:27 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
2021-06-14 14:13:51 +00:00
|
|
|
%{_rpmmacrodir}/macros.mingw64
|
|
|
|
%{_rpmmacrodir}/macros.mingw64-cmake
|
|
|
|
%if %{undefined _distconfdir}
|
2015-07-15 06:03:41 +00:00
|
|
|
%config %{_sysconfdir}/profile.d/mingw64.sh
|
2021-06-14 14:13:51 +00:00
|
|
|
%else
|
|
|
|
%{_distconfdir}/profile.d/mingw64.sh
|
|
|
|
%endif
|
2021-12-02 14:07:53 +00:00
|
|
|
%if %suse_version >= 1550
|
2021-09-16 11:49:42 +00:00
|
|
|
%_rpmlintdir/mingw64.toml
|
|
|
|
%else
|
|
|
|
%_rpmlintdir/mingw64-rpmlint.config
|
|
|
|
%endif
|
2021-06-14 14:13:51 +00:00
|
|
|
%{_rpmconfigdir}/mingw64-cmake.prov
|
|
|
|
%{_fileattrsdir}/mingw64-cmake.attr
|
2009-04-08 13:11:27 +00:00
|
|
|
%{_bindir}/mingw64-*
|
2014-10-21 07:29:38 +00:00
|
|
|
%{_libexecdir}/mingw64-scripts
|
2011-03-15 11:44:43 +00:00
|
|
|
%{_prefix}/x86_64-w64-mingw32/
|
2021-06-14 14:13:51 +00:00
|
|
|
%{_rpmconfigdir}/mingw64-*
|
2017-07-20 11:19:10 +00:00
|
|
|
%dir %{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib/cmake
|
2009-04-08 13:11:27 +00:00
|
|
|
|
|
|
|
%changelog
|