File mingw64-qml-autoreqprov.spec of Package mingw64-qml-autoreqprov

#
# spec file for package qml-autoreqprov
#
# Copyright (c) 2024 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 _name qml-autoreqprov
Name:           mingw64-%{_name}
Version:        1.4.1
Release:        0
Summary:        Automatic dependency generator for QML files and modules
License:        GPL-3.0-or-later
Group:          Development/Tools/Building
URL:            http://www.opensuse.org
Source0:        LICENSE
Source1:        mingw64_qml.attr
Source2:        mingw64-qml.req
Source3:        mingw64_qmldir.attr
Source4:        mingw64-qmldirreqprov.sh
Source5:        README
Requires:       jq
Requires:       rpm
BuildArch:      noarch
# qmlimportscanner
# We cannot use qmlimportscanner from mingw64-libqt5-qtdeclarative-tools
# as it will only be available when building qtdeclarative
Requires:       libqt5-qtdeclarative-tools
# qmlpluginexports
Requires:       mingw64-cross-qmlpluginexports-qt5
#Requires:       (qmlpluginexports-qt6 if qt6-qml-devel)
#Requires:       (qt6-base-common-devel if libQt6Qml6)
#Requires:       (qt6-declarative-tools if libQt6Qml6)
# Version 1.1 is not compatible with qt6-declarative < 6.2
Conflicts:      qt6-declarative-tools < 6.2.0

%description
Automatic dependency generator for QML files and modules.
If installed, rpm uses this to generate Requires of .qml files
and Provides of QML modules.

%prep
cp %{SOURCE0} .
cp %{SOURCE5} .

%build

%install
install -D -m 644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/fileattrs/mingw64_qml.attr
install -D -m 755 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/mingw64-qml.req
install -D -m 644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/fileattrs/mingw64_qmldir.attr
install -D -m 755 %{SOURCE4} %{buildroot}%{_rpmconfigdir}/mingw64-qmldirreqprov.sh

%files
%license LICENSE
%doc README
%{_rpmconfigdir}/fileattrs/mingw64_qml.attr
%{_rpmconfigdir}/fileattrs/mingw64_qmldir.attr
%{_rpmconfigdir}/mingw64-qml.req
%{_rpmconfigdir}/mingw64-qmldirreqprov.sh

%changelog
openSUSE Build Service is sponsored by