File yast2-core.spec of Package yast2-core

# spec file for package yast2-core
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           yast2-core
Version:        3.1.11
Release:        0

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2

Group:	        System/YaST
License:        GPL-2.0+
# obviously
BuildRequires:	gcc-c++ boost-devel libtool
# we have a parser
BuildRequires:	flex bison
# incompatible change, parser.h -> parser.hh
BuildRequires:  automake >= 1.12
# needed for all yast packages
BuildRequires:	yast2-devtools >= 3.1.10
# testsuite
BuildRequires:	dejagnu
# autodocs
BuildRequires:	doxygen
# docbook docs
BuildRequires:	docbook-xsl-stylesheets libxslt
# catalog: convert URIs to local filenames
BuildRequires:	sgml-skel

Summary:	YaST2 - Core Libraries
Requires:	perl = %{perl_version}
Provides:	liby2util = 2.16.1
Obsoletes:	liby2util < 2.16.1

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
Provides:	liby2util-devel = 2.16.1
Obsoletes:	liby2util-devel < 2.16.1
Requires:	hwinfo-devel
Requires:	glibc-devel libstdc++-devel sysfsutils
# required for libscr
# for FlexLexer.h; I think that this dependency could be made
# private but it seems not worth the effort
Requires:	flex

%description devel
This package contains include and documentation files for developing
applications using the YaST2 YCP interpreter.

%package debugger
Requires:       yast2-core = %version
Group:          Development/Libraries
Summary:	YaST2 - Core Libraries

%description debugger
YCP debugger client.

%setup -n %{name}-%{version}


%ifarch %arm
%if 0%{?qemu_user_space_build}
# disable autodoc building on qemu-arm only
sed -i SUBDIRS -e 's/autodocs//'

export SUSE_ASNEEDED=0 # disable --as-needed until this package is fixed



mkdir -p "$RPM_BUILD_ROOT"%{yast_logdir}

# bnc#485992, since oS 11.2
if test -f /etc/modprobe.d/$C; then
     mv -f /etc/modprobe.d/$C /etc/modprobe.d/50-$C.conf

%postun -p /sbin/ldconfig


%dir %{_libdir}/YaST2
%if "%_lib" == "lib64"
%dir /usr/lib/YaST2
%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

# perl part (stdio agents)
# *: regular build compresses them, debug does not
%dir %{perl_vendorlib}/YaST

%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
#  .packlist

%files devel
%doc %{yast_docdir}
%doc %{_datadir}/doc/yastdoc

%files debugger
%attr(0755,-,-) %{yast_ybindir}/ycp-debugger
openSUSE Build Service is sponsored by