LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File yast2.spec of Package yast2 (Project YaST:Head)

#
# spec file for package yast2
#
# Copyright (c) 2012 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 http://bugs.opensuse.org/
#


Name:           yast2
Version:        2.23.6
Release:        0

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

Source1:        yast2-rpmlintrc

BuildRequires:  perl-XML-Writer
BuildRequires:  update-desktop-files
BuildRequires:  yast2-devtools
BuildRequires:  yast2-perl-bindings
BuildRequires:  yast2-testsuite
# Needed already in build time
BuildRequires:  yast2-core >= 2.18.12
BuildRequires:  yast2-pkg-bindings >= 2.20.3
BuildRequires:  yast2-ycp-ui-bindings >= 2.18.4

# pre-requires for filling the sysconfig template (sysconfig.yast2)
PreReq:         %fillup_prereq

# ag_ini section_private
# ag_ini with (un)quoting support
Requires:       yast2-core >= 2.23.0
# Mod_UI
# new UI::OpenContextMenu
Requires:       yast2-ycp-ui-bindings >= 2.18.4

# changed StartPackage callback signature
Requires:       yast2-pkg-bindings >= 2.20.3
Requires:       yui_backend
# For Cron Agent, Module
Requires:       perl-Config-Crontab
# for ag_tty (/bin/stty)
# for /usr/bin/md5sum
Requires:       coreutils
Requires:       sysconfig
Requires:       yast2-hardware-detection
Requires:       yast2-xml
# for SLPAPI.pm
Requires:       yast2-perl-bindings
# for ag_anyxml
Requires:       perl-XML-Simple
# for GPG.ycp
Requires:       gpg2
# for Punycode.ycp (bnc#651893)
Requires:       bind-utils
# xdg-su in .desktops
Recommends:     xdg-utils

# moved cfg_security.scr
Conflicts:      yast2-security <= 2.13.2
# moved ag_netd, cfg_netd.scr, cfg_xinetd.scr
Conflicts:      yast2-inetd <= 2.13.4
Conflicts:      yast2-tune < 2.15.6
Obsoletes:      yast2-mail-aliases <= 2.14.0
Conflicts:      yast2-storage < 2.16.4
Conflicts:      yast2-network < 2.16.6
Conflicts:      yast2-sshd < 2.16.1

# moved ag_content agent 
Conflicts:      yast2-instserver <= 2.16.3

# InstError
Conflicts:      yast2-installation < 2.18.5

Conflicts:      yast2-update < 2.16.1
# Modules 'Slides' and 'SlideShow' moved from yast2-packager to yast2
Conflicts:      yast2-packager < 2.17.12
Conflicts:      yast2-mouse < 2.16.0
Conflicts:      autoyast2-installation < 2.16.2
# country_long.ycp and country.ycp moved to yast2
Conflicts:      yast2-country < 2.16.3
# DnsServerAPI moved to yast2.rpm (by mzugec)
Conflicts:      yast2-dns-server < 2.17.0

Provides:       yast2-lib-sequencer
Obsoletes:      yast2-lib-sequencer
Provides:       yast2-lib-wizard
Provides:       yast2-lib-wizard-devel
Provides:       yast2-trans-wizard
Obsoletes:      yast2-lib-wizard
Obsoletes:      yast2-lib-wizard-devel
Obsoletes:      yast2-trans-wizard
Provides:       y2t_menu
Provides:       yast2-trans-menu
Obsoletes:      y2t_menu
Obsoletes:      yast2-trans-menu

# moved here from another packages
Provides:       yast2-dns-server:/usr/share/YaST2/modules/DnsServerAPI.pm
Provides:       yast2-installation:/usr/share/YaST2/modules/Hotplug.ycp
Provides:       yast2-installation:/usr/share/YaST2/modules/HwStatus.ycp
Provides:       yast2-installation:/usr/share/YaST2/modules/Installation.ycp
Provides:       yast2-installation:/usr/share/YaST2/modules/Product.ycp
Provides:       yast2-mail-aliases
Provides:       yast2-network:/usr/share/YaST2/modules/Internet.ycp
Provides:       yast2-packager:/usr/lib/YaST2/servers_non_y2/ag_anyxml

Summary:        YaST2 - Main Package
License:        GPL-2.0+
Group:          System/YaST

%description
This package contains scripts and data needed for SuSE Linux
installation with YaST2

%package devel-doc
Requires:       yast2 = %version
Provides:       yast2-lib-sequencer-devel
Obsoletes:      yast2-devel
Obsoletes:      yast2-lib-sequencer-devel
Provides:       yast2-devel
Requires:       yast2-core-devel

Summary:        YaST2 - Development Scripts and Documentation
Group:          System/YaST

%description devel-doc
This package contains scripts and data needed for a SUSE Linux
installation with YaST2.

%prep
%setup -n yast2-%{version}

%build
%{_prefix}/bin/y2tool y2autoconf
%{_prefix}/bin/y2tool y2automake
autoreconf --force --install

export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"

./configure --libdir=%{_libdir} --prefix=%{_prefix} --mandir=%{_mandir}
# V=1: verbose build in case we used AM_SILENT_RULES(yes)
# so that RPM_OPT_FLAGS check works
make %{?jobs:-j%jobs} V=1

# removed explicit adding of translations to group desktop files, since it is covered by the general call (they are in a subdirectory) and it caused build fail

%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{_prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{_prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
    d=${f##*/}
    %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done

mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/clients
mkdir -p "$RPM_BUILD_ROOT"%{_prefix}/share/applications/YaST2
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/images
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/locale
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/modules
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/scrconf
mkdir -p "$RPM_BUILD_ROOT"%{_prefix}/lib/YaST2/bin
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/data
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/include
mkdir -p "$RPM_BUILD_ROOT"/var/lib/YaST2
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/schema/control/rnc
mkdir -p "$RPM_BUILD_ROOT"/usr/share/YaST2/schema/autoyast/rnc
mkdir -p "$RPM_BUILD_ROOT"/etc/YaST2

%clean
rm -rf "$RPM_BUILD_ROOT"

%post
%{fillup_only -n yast2}

%files
%defattr(-,root,root)

# basic directory structure

%dir /usr/share/YaST2/clients
%dir %{_prefix}/share/applications/YaST2
%{_prefix}/share/applications/YaST2/groups
%dir /usr/share/YaST2/images
%dir /usr/share/YaST2/locale
%dir /usr/share/YaST2/modules
%dir /usr/share/YaST2/scrconf
%dir %{_prefix}/lib/YaST2/bin
%dir /usr/share/YaST2/data
%dir /usr/share/YaST2/include
%dir /var/lib/YaST2
%dir /usr/share/YaST2/schema
%dir /usr/share/YaST2/schema/control
%dir /usr/share/YaST2/schema/control/rnc
%dir /usr/share/YaST2/schema/autoyast
%dir /usr/share/YaST2/schema/autoyast/rnc
%dir /etc/YaST2

# yast2

/usr/share/YaST2/data/*.ycp
/usr/share/YaST2/clients/*
/usr/share/YaST2/modules/*
/usr/share/YaST2/scrconf/*
%{_prefix}/lib/YaST2/bin/*
/usr/lib/YaST2/servers_non_y2/ag_*
/etc/bash_completion.d/yast2*.sh
/etc/YaST2/XVersion
/var/adm/fillup-templates/sysconfig.yast2

# documentation (not included in devel subpackage)
%doc %dir %{_prefix}/share/doc/packages/yast2
%doc %{_prefix}/share/doc/packages/yast2/COPYING
%doc %{_prefix}/share/doc/packages/yast2/README
%doc %{_mandir}/*/*

/sbin/*

# wizard
%dir /usr/share/YaST2/include/wizard
/usr/share/YaST2/include/wizard/*.ycp

#packags
%dir /usr/share/YaST2/include/packages
/usr/share/YaST2/include/packages/*.ycp

#system
%dir /usr/share/YaST2/include/hwinfo
/usr/share/YaST2/include/hwinfo/*.ycp

# documentation

%files devel-doc
%defattr(-,root,root)

%doc %{_prefix}/share/doc/packages/yast2/autodocs
%doc %{_prefix}/share/doc/packages/yast2/commandline
%doc %{_prefix}/share/doc/packages/yast2/control
%doc %{_prefix}/share/doc/packages/yast2/cron
%doc %{_prefix}/share/doc/packages/yast2/cwm
%doc %{_prefix}/share/doc/packages/yast2/desktop
%doc %{_prefix}/share/doc/packages/yast2/gpg
%doc %{_prefix}/share/doc/packages/yast2/log
%doc %{_prefix}/share/doc/packages/yast2/network
%doc %{_prefix}/share/doc/packages/yast2/packages
%doc %{_prefix}/share/doc/packages/yast2/runlevel
%doc %{_prefix}/share/doc/packages/yast2/sequencer
%doc %{_prefix}/share/doc/packages/yast2/system
%doc %{_prefix}/share/doc/packages/yast2/types
%doc %{_prefix}/share/doc/packages/yast2/wizard
%doc %{_prefix}/share/doc/packages/yast2/xml

%changelog