# # spec file for package yast2-devtools # # Copyright (c) 2025 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: yast2-devtools Version: 5.0.2 Release: 0 Summary: YaST2 - Development Tools License: GPL-2.0-or-later Group: System/YaST URL: https://github.com/yast/yast-devtools Source0: %{name}-%{version}.tar.bz2 BuildRequires: automake BuildRequires: docbook-xsl-stylesheets BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: libxslt BuildRequires: perl-XML-Writer BuildRequires: pkgconfig BuildRequires: sgml-skel # required by some scripts like y2makepot Requires: which Requires: yast2-buildtools BuildArch: noarch %description Scripts and templates for developing YaST2 modules and components. %package -n yast2-buildtools Summary: Minimal set of tools needed to build yast module # we install our .pc under $prefix/share Requires: autoconf Requires: automake Requires: gettext-tools Requires: perl Requires: perl-XML-Writer Requires: pkgconfig >= 0.16 Recommends: cmake # /usr/lib/YaST2/bin/ydoxygen needs it Recommends: doxygen # for svn builds of binary packages Recommends: libtool # for extracting translatable strings from *.rb files using "make pot" command # weak dependency, "make pot" is usually not needed Suggests: rubygem(gettext) %description -n yast2-buildtools Scripts and templates required for rebuilding the existing YaST2 modules and components (both ruby and C++). %prep %setup -q %build make -f Makefile.cvs all %configure %make_build %install %make_install [ -e "%{_datadir}/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="%{buildroot}%{_datadir}/YaST2" make check DESTDIR=%{buildroot} for f in `find %{buildroot}%{_datadir}/applications/YaST2 -name "*.desktop"` ; do d=${f##*/} %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop} done %if 0%{?qemu_user_space_build} # disable testsuite on QEMU builds, will fail cat > "%{buildroot}%{_datadir}/YaST2/data/devtools/NO_MAKE_CHECK" < "%{buildroot}%{_datadir}/YaST2/data/devtools/NO_MAKE_CHECK" <