Hello community, here is the log from the commit of package mingw32-filesystem for openSUSE:Factory checked in at 2020-08-25 09:36:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mingw32-filesystem (Old) and /work/SRC/openSUSE:Factory/.mingw32-filesystem.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mingw32-filesystem" Tue Aug 25 09:36:54 2020 rev:4 rq:828962 version:20200816 Changes: -------- --- /work/SRC/openSUSE:Factory/mingw32-filesystem/mingw32-filesystem.changes 2020-04-21 13:10:13.580759519 +0200 +++ /work/SRC/openSUSE:Factory/.mingw32-filesystem.new.3399/mingw32-filesystem.changes 2020-08-25 09:38:02.072185498 +0200 @@ -1,0 +2,21 @@ +Thu Aug 20 12:06:28 UTC 2020 - Ralf Habacker <[email protected]> + +- Add missing Fortran case into macros.mingw32* (boo#1173990) + +------------------------------------------------------------------- +Sun Aug 16 04:26:24 UTC 2020 - Ralf Habacker <[email protected]> + +- Fix warning about non standard group (boo#1173189) +- Make cmake package support to be more in sync with native package + * Add mingw32-cmake.prov and mingw32-cmake.attr ported from native + cmake package to support generating mingw32(cmake:xxx) dependencies + required by newer KDE Frameworks 5 and other packages. + * Move out cmake related macros from macros.mingw32 into macros.mingw32-cmake + * Define macro _mingw32_cmake_build + * Fix deprecated call to %make_jobs + CMake support may be better located in a package named mingw32-cross-cmake + but need to be used here until the deprecated dependency generator provided + by this package is converted to sets of *.attr/*.prov files. +- Add additional man languages 'id' and 'uk' used by KDE Frameworks5 packages + +------------------------------------------------------------------- New: ---- macros.mingw32-cmake mingw32-cmake.attr mingw32-cmake.prov ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mingw32-filesystem.spec ++++++ --- /var/tmp/diff_new_pack.vHD2Kz/_old 2020-08-25 09:38:03.612186396 +0200 +++ /var/tmp/diff_new_pack.vHD2Kz/_new 2020-08-25 09:38:03.616186398 +0200 @@ -1,7 +1,7 @@ # # spec file for package mingw32-filesystem # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,18 +12,18 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define debug_package %{nil} Name: mingw32-filesystem -Version: 20191217 +Version: 20200816 Release: 0 Summary: MinGW base filesystem and environment -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Development/Libraries -Url: http://hg.et.redhat.com/misc/fedora-mingw--devel/ +URL: http://hg.et.redhat.com/misc/fedora-mingw--devel/ Source0: COPYING Source1: macros.mingw32 Source2: mingw32.sh @@ -36,6 +36,9 @@ Source9: mingw32-find-lang.sh Source10: languages Source11: languages.man +Source12: mingw32-cmake.prov +Source13: mingw32-cmake.attr +Source14: macros.mingw32-cmake Provides: mingw32(dbghelp.dll) Provides: mingw32(mpr.dll) Provides: mingw32(odbccp32.dll) @@ -48,6 +51,7 @@ Provides: mingw32(d3d11.dll) Provides: mingw32(dwrite.dll) Requires: mingw32-cross-breakpad-tools +Requires: python3 Requires: rpm BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -87,6 +91,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/rpm install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.mingw32 +install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/rpm/$(basename %{SOURCE14}) mkdir -p %{buildroot}%{_sysconfdir}/rpmlint install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/rpmlint/ @@ -137,6 +142,11 @@ install -m 0755 %{SOURCE5} %{buildroot}%{_libexecdir}/rpm install -m 0755 %{SOURCE8} %{buildroot}%{_libexecdir}/rpm install -m 0755 %{SOURCE9} %{buildroot}%{_libexecdir}/rpm +# cmake support +mkdir -p %{buildroot}%{_libexecdir}/rpm +install -m 0755 %{SOURCE12} %{buildroot}%{_libexecdir}/rpm +mkdir -p %{buildroot}%{_libexecdir}/rpm/fileattrs +install -m 0755 %{SOURCE13} %{buildroot}%{_libexecdir}/rpm/fileattrs # Create the locale directories: while read LANG ; do @@ -155,8 +165,11 @@ %defattr(-,root,root,-) %doc COPYING %config %{_sysconfdir}/rpm/macros.mingw32 +%config %{_sysconfdir}/rpm/macros.mingw32-cmake %config %{_sysconfdir}/profile.d/mingw32.sh %config %{_sysconfdir}/rpmlint/mingw32-rpmlint.config +%config %{_libexecdir}/rpm/mingw32-cmake.prov +%config %{_libexecdir}/rpm/fileattrs/mingw32-cmake.attr %{_bindir}/mingw32-* %{_libexecdir}/mingw32-scripts %{_prefix}/i686-w64-mingw32/ ++++++ languages.man ++++++ --- /var/tmp/diff_new_pack.vHD2Kz/_old 2020-08-25 09:38:03.708186452 +0200 +++ /var/tmp/diff_new_pack.vHD2Kz/_new 2020-08-25 09:38:03.712186455 +0200 @@ -7,6 +7,7 @@ es fr hu +id it ja nl @@ -16,6 +17,7 @@ ru sk sv +uk zh zh_CN zh_TW ++++++ macros.mingw32 ++++++ --- /var/tmp/diff_new_pack.vHD2Kz/_old 2020-08-25 09:38:03.748186476 +0200 +++ /var/tmp/diff_new_pack.vHD2Kz/_new 2020-08-25 09:38:03.752186478 +0200 @@ -43,6 +43,7 @@ %_mingw32_as %{_mingw32_target}-as %_mingw32_dlltool %{_mingw32_target}-dlltool %_mingw32_dllwrap %{_mingw32_target}-dllwrap +%_mingw32_fc %{_mingw32_target}-gfortran %_mingw32_gcov %{_mingw32_target}-gcov %_mingw32_gprof %{_mingw32_target}-gprof %_mingw32_ld %{_mingw32_target}-ld @@ -73,7 +74,7 @@ %_mingw32_debug_package(n:) \ %package %{-n:-n %{-n*}-}debug \ Summary: Debug information for package %{name} \ -Group: Development/Debug \ +Group: Development/Sources \ BuildArch: noarch \ %description %{-n:-n %{-n*}-}debug \ This package provides debug information for package %{name}.\ @@ -184,32 +185,3 @@ # deprecated, use _mingw32_make_install (unix variant is named %make_install) %_mingw32_makeinstall %_mingw32_make_install - -# internal macro used by related filesystem packages -%__mingw32_cmake %{_mingw32_env} ; \ - cmake \\\ - -DCMAKE_SYSTEM_NAME="Windows" \\\ - -DCMAKE_VERBOSE_MAKEFILE=ON \\\ - -DCMAKE_BUILD_TYPE="RelWithDebInfo" \\\ - -DCMAKE_INSTALL_PREFIX:PATH=%{_mingw32_prefix} \\\ - -DCMAKE_INSTALL_LIBDIR:PATH=%{_mingw32_libdir} \\\ - -DBIN_INSTALL_DIR=%{_mingw32_bindir} \\\ - -DINCLUDE_INSTALL_DIR:PATH=%{_mingw32_includedir} \\\ - -DLIB_INSTALL_DIR:PATH=%{_mingw32_libdir} \\\ - -DSHARE_INSTALL_DIR:PATH=%{_mingw32_datadir} \\\ - -DSYSCONF_INSTALL_DIR:PATH=%{_mingw32_sysconfdir} \\\ - -DSHARE_INSTALL_PREFIX:PATH=%{_mingw32_datadir} \\\ - -DBUILD_SHARED_LIBS:BOOL=ON \\\ - -DCMAKE_C_COMPILER="%{_bindir}/%{_mingw32_cc}" \\\ - -DCMAKE_CXX_COMPILER="%{_bindir}/%{_mingw32_cxx}" \\\ - -DCMAKE_RC_COMPILER="%{_bindir}/%{_mingw32_windres}" \\\ - -DCMAKE_FIND_ROOT_PATH="%{_mingw32_prefix}" \\\ - -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \\\ - -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \\\ - -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER - -# cmake > 3.13.1 requires setting source dir -%_mingw32_cmake %{__mingw32_cmake} . - -%_mingw32_cmake_install %{_mingw32_env} ; \ - make VERBOSE=1 DESTDIR=%{buildroot} install/fast ++++++ macros.mingw32-cmake ++++++ # internal macro used by related filesystem packages %__mingw32_cmake %{_mingw32_env} ; \ cmake \\\ -DCMAKE_SYSTEM_NAME="Windows" \\\ -DCMAKE_VERBOSE_MAKEFILE=ON \\\ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \\\ -DCMAKE_INSTALL_PREFIX:PATH=%{_mingw32_prefix} \\\ -DCMAKE_INSTALL_LIBDIR:PATH=%{_mingw32_libdir} \\\ -DBIN_INSTALL_DIR=%{_mingw32_bindir} \\\ -DINCLUDE_INSTALL_DIR:PATH=%{_mingw32_includedir} \\\ -DLIB_INSTALL_DIR:PATH=%{_mingw32_libdir} \\\ -DSHARE_INSTALL_DIR:PATH=%{_mingw32_datadir} \\\ -DSYSCONF_INSTALL_DIR:PATH=%{_mingw32_sysconfdir} \\\ -DSHARE_INSTALL_PREFIX:PATH=%{_mingw32_datadir} \\\ -DBUILD_SHARED_LIBS:BOOL=ON \\\ -DCMAKE_C_COMPILER="%{_bindir}/%{_mingw32_cc}" \\\ -DCMAKE_CXX_COMPILER="%{_bindir}/%{_mingw32_cxx}" \\\ -DCMAKE_Fortran_COMPILER="%{_bindir}/%{_mingw32_fc}" \\\ -DCMAKE_RC_COMPILER="%{_bindir}/%{_mingw32_windres}" \\\ -DCMAKE_FIND_ROOT_PATH="%{_mingw32_prefix}" \\\ -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \\\ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \\\ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER # cmake > 3.13.1 requires setting source dir %_mingw32_cmake %{__mingw32_cmake} . %_mingw32_cmake_build %cmake_build %_mingw32_cmake_install %{_mingw32_env} ; \ make VERBOSE=1 DESTDIR=%{buildroot} install/fast ++++++ mingw32-cmake.attr ++++++ %__mingw32_cmake_provides %{_rpmconfigdir}/mingw32-cmake.prov %__mingw32_cmake_path ^/usr/i686-w64-mingw32/sys-root/mingw/lib/cmake/.*/.*(Config\.cmake|-config\.cmake)$++++++ mingw32-cmake.prov ++++++ #!/usr/bin/python3 # -*- coding:utf-8 -*- # # Copyright (C) 2015 Daniel Vrátil <[email protected]> # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # import sys import re import glob class CMakeParser: def __init__(self, filelist = None): if filelist == None: filelist = sys.stdin paths = map(lambda x: x.rstrip(), filelist.readlines()) for path in paths: for (modulePath, cmakeModule, lowercase) in self.parseCmakeModuleConfig(path): version = self.resolveCMakeModuleVersion(modulePath, cmakeModule, lowercase) if version: print("mingw32(cmake:%s) = %s" % (cmakeModule, version)) else: print("mingw32(cmake:%s)" % cmakeModule) def parseCmakeModuleConfig(self, configFile): paths = configFile.rsplit("/", 3) modulePath = "%s/cmake/%s" % (paths[0], paths[2]) result = [] for configFile in glob.glob("%s/*Config.cmake" % modulePath): moduleName = configFile[len(modulePath) + 1:-len("Config.cmake")] result.append( (modulePath, moduleName, False) ) for configFile in glob.glob("%s/*-config.cmake" % modulePath): moduleName = configFile[len(modulePath) + 1:-len("-config.cmake")] if (modulePath, moduleName, False) not in result: result.append( (modulePath, moduleName, True) ) return result def resolveCMakeModuleVersion(self, modulePath, cmakeModule, lowercase): versionFile = ("%s/%s-config-version.cmake" if lowercase else "%s/%sConfigVersion.cmake") % (modulePath, cmakeModule) try: f = open(versionFile, 'r') except: return None for line in f: line = line.strip() # set(PACKAGE_VERSION <version>) version = re.match(r"^set[\ ]*\([\ ]*PACKAGE_VERSION[\ ]+[\"]*([0-9\.]+)[\"]*[\ ]*[.]*\)", line) if version: return version.groups(1)[0] return None if __name__ == "__main__": parser = CMakeParser() ++++++ mingw32-find-provides.sh ++++++ --- /var/tmp/diff_new_pack.vHD2Kz/_old 2020-08-25 09:38:03.856186538 +0200 +++ /var/tmp/diff_new_pack.vHD2Kz/_new 2020-08-25 09:38:03.860186541 +0200 @@ -17,6 +17,7 @@ dlls=$(grep '\.dll$' "$filelist") pcs=$(grep '\.pc$' "$filelist") libs=$(grep '\.a$' "$filelist") +cmakes=$(grep '[cC]onfig.cmake$' "$filelist") for f in $dlls; do [ ! -f "$f" ] && continue @@ -35,4 +36,9 @@ echo "$target(lib:$libname)" done +for h in $cmakes; do + [ ! -f "$h" ] && continue + echo $h | /usr/lib/rpm/mingw32-cmake.prov +done + rm "$filelist"
