Sync from SUSE:ALP:Source:Standard:1.0 yast2-core revision a86a11d66a1003a1fad6cb1b4af89f15

This commit is contained in:
Adrian Schröter 2023-06-07 10:14:24 +02:00
commit 1ae621c094
4 changed files with 5118 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
yast2-core-4.6.0.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

4923
yast2-core.changes Normal file

File diff suppressed because it is too large Load Diff

169
yast2-core.spec Normal file
View File

@ -0,0 +1,169 @@
#
# spec file for package yast2-core
#
# Copyright (c) 2023 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/
#
%bcond_with clang
# Optionally treat C/C++ warnings as errors.
# It is off by default so that it will not block mass tests of new GCC
# but we want to enable it in a side repo
# to be able to fix newly detected problems relatively early.
%bcond_with werror
Name: yast2-core
Version: 4.6.0
Release: 0
URL: https://github.com/yast/yast-core
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
# obviously
BuildRequires: boost-devel
%if %{with clang}
BuildRequires: llvm-clang
%else
BuildRequires: gcc-c++
%endif
BuildRequires: libtool
# we have a parser
BuildRequires: bison
BuildRequires: flex
# incompatible change, parser.h -> parser.hh
BuildRequires: automake >= 1.12
# needed for all yast packages
BuildRequires: yast2-devtools >= 3.1.10
# testsuite
BuildRequires: glibc-locale
BuildRequires: dejagnu
Summary: YaST2 - Core Libraries
License: GPL-2.0-or-later
Group: System/YaST
Requires: perl = %{perl_version}
%description
This package contains the scanner, parser, and interpreter runtime
library for the YCP scripting language used in YaST2.
%package devel
Requires: yast2-core = %version
Summary: YaST2 - Core Libraries
Group: Development/Libraries
Provides: liby2util-devel = 2.16.1
Obsoletes: liby2util-devel < 2.16.1
Requires: glibc-devel
Requires: libstdc++-devel
%description devel
This package contains include and documentation files for developing
applications using the YaST2 YCP interpreter.
%prep
%setup -n %{name}-%{version}
%build
%ifarch %arm
%if 0%{?qemu_user_space_build}
# disable autodoc building on qemu-arm only
sed -i SUBDIRS -e 's/autodocs//'
%endif
%endif
export SUSE_ASNEEDED=0 # disable --as-needed until this package is fixed
%if %{with werror}
export CFLAGS="${RPM_OPT_FLAGS} -Werror"
export CXXFLAGS="${RPM_OPT_FLAGS} -Werror"
%endif
%if %{with clang}
export CC=clang CXX=clang++
# warning/error: argument unused during compilation
CFLAGS="${CFLAGS/-grecord-gcc-switches/}"
CXXFLAGS="${CXXFLAGS/-grecord-gcc-switches/}"
# "unsupported argument 'auto' to option 'flto='"
# This time it comes from RPM macro expansion
# so let's override /usr/lib/rpm/suse/macros
%define _lto_cflags %{nil}
%endif
%yast_build
%install
%yast_install
mkdir -p "$RPM_BUILD_ROOT"%{yast_logdir}
%perl_process_packlist
%post
/sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_libdir}/YaST2
%if "%_lib" == "lib64"
%dir /usr/lib/YaST2
%endif
%dir /usr/share/YaST2
%dir %attr(0700,root,root) %{yast_logdir}
%dir %{yast_ybindir}
%dir %{yast_plugindir}
%dir %{yast_scrconfdir}
%dir %{yast_execcompdir}/servers_non_y2
/usr/bin/ycpc
%{_libdir}/lib*.so.*
%{yast_ybindir}/y2base
%{yast_ybindir}/startshell
%{yast_ybindir}/tty_wrapper
%{yast_ybindir}/md_autorun
%{yast_ybindir}/elf-arch
%{yast_plugindir}/lib*.so.*
%{yast_scrconfdir}/*.scr
%{yast_execcompdir}/servers_non_y2/ag_*
# perl part (stdio agents)
# *: regular build compresses them, debug does not
%{_mandir}/man3/ycp.3pm*
%{_mandir}/man3/YaST::SCRAgent.3pm*
%{perl_vendorlib}/ycp.pm
%dir %{perl_vendorlib}/YaST
%{perl_vendorlib}/YaST/SCRAgent.pm
%files devel
%defattr(-,root,root)
%{yast_ybindir}/ybcdump
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{yast_plugindir}/lib*.so
%{yast_plugindir}/lib*.la
%{yast_includedir}
%{_libdir}/pkgconfig/yast2-core.pc
%doc %{yast_docdir}
%doc %{_datadir}/doc/yastdoc
%license COPYING
%{yast_ydatadir}/devtools/bin/generateYCPWrappers
%changelog