From bffb58584b028f1aeb69ddf31fb1f7fb0fa33c28 Mon Sep 17 00:00:00 2001 From: MahnoKropotkinvich Date: Tue, 4 Feb 2025 14:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yast2-devtools.spec | 161 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 yast2-devtools.spec diff --git a/yast2-devtools.spec b/yast2-devtools.spec new file mode 100644 index 0000000..0b184ad --- /dev/null +++ b/yast2-devtools.spec @@ -0,0 +1,161 @@ +# +# spec file for package yast2-devtools +# +# 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/ +# + + +Name: yast2-devtools +Version: 5.0.1 +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" <