File yast2.spec of Package yast2

#
# spec file for package yast2 (Version 2.17.69)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           yast2
Version:        2.17.69
Release:        0.<RELEASE1>
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-2.17.69.tar.bz2
Prefix:         /usr
Source1:        yast2-rpmlintrc
BuildRequires:  perl-XML-Writer update-desktop-files yast2-devtools yast2-perl-bindings yast2-testsuite
# Needed already in build time
BuildRequires:  yast2-core >= 2.17.1 yast2-pkg-bindings >= 2.17.32
# pre-requires for filling the sysconfig template (sysconfig.yast2)
PreReq:         %fillup_prereq
# y2base foo -S (hello) UI, list:: namespace
Requires:       yast2-core >= 2.17.1
# Mod_UI
# new YButtonBox widget (fate #303446)
Requires:       yast2-ycp-ui-bindings >= 2.17.8
# Pkg::Get(Set)SolverFlags()
Requires:       yast2-pkg-bindings >= 2.17.32
Requires:       yast2_ui yast2-branding
# For Cron Agent, Module
Requires:       perl-Config-Crontab
# for ag_tty (/bin/stty)
# for /usr/bin/md5sum
Requires:       coreutils sysconfig
Requires:       yast2-xml yast2-hardware-detection
# for SLPAPI.pm
Requires:       yast2-perl-bindings
# for ag_anyxml
Requires:       perl-XML-Simple
# 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
# InstExtensionImage module moved here from installation
Conflicts:      yast2-installation < 2.16.18
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 yast2-lib-wizard-devel yast2-trans-wizard
Obsoletes:      yast2-lib-wizard yast2-lib-wizard-devel yast2-trans-wizard
Provides:       yast2-trans-menu y2t_menu
Obsoletes:      yast2-trans-menu y2t_menu
# moved here from another packages
Provides:       yast2-installation:/usr/share/YaST2/modules/Installation.ycp
Provides:       yast2-installation:/usr/share/YaST2/modules/Product.ycp
Provides:       yast2-installation:/usr/share/YaST2/modules/Hotplug.ycp
Provides:       yast2-installation:/usr/share/YaST2/modules/HwStatus.ycp
Provides:       yast2-network:/usr/share/YaST2/modules/Internet.ycp
Provides:       yast2-packager:/usr/lib/YaST2/servers_non_y2/ag_anyxml
Provides:       yast2-dns-server:/usr/share/YaST2/modules/DnsServerAPI.pm
Provides:       yast2-mail-aliases
Summary:        YaST2 - Main Package

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



Authors:
--------
    Michael Andres <ma@suse.de>
    Waldo Bastian <bastian@suse.de>
    Michael Hager <mike@suse.de>
    Stefan Hundhammer <sh@suse.de>
    Klaus Kaempf <kkaempf@suse.de>
    Mathias Kettner <kettner@suse.de>
    Thomas Roelz <tom@suse.de>
    Arvin Schnell <arvin@suse.de>
    Stefan Schubert <schubi@suse.de>
    Andreas Schwab <schwab@suse.de>
    Steffen Winterfeldt <snwint@suse.de>
    Martin Vidner <mvidner@suse.cz>
    Jiri Srain <jsrain@suse.cz>
    Lukas Ocilka <locilka@suse.cz>
    Stanislav Visnovsky <visnov@suse.cz>
    Jiri Suchomel <jsuchome@suse.cz>
    Ladislav Slezak <lslezak@suse.cz>

%package devel-doc
License:        GPL v2 or later
Requires:       yast2 = %version
Group:          System/YaST
Provides:       yast2-lib-sequencer-devel
Obsoletes:      yast2-lib-sequencer-devel
Obsoletes:      yast2-devel
Provides:       yast2-devel
Requires:       yast2-core-devel
Summary:        YaST2 - Development Scripts and Documentation

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



Authors:
--------
    Michael Andres <ma@suse.de>
    Waldo Bastian <bastian@suse.de>
    Michael Hager <mike@suse.de>
    Stefan Hundhammer <sh@suse.de>
    Klaus Kaempf <kkaempf@suse.de>
    Mathias Kettner <kettner@suse.de>
    Thomas Roelz <tom@suse.de>
    Arvin Schnell <arvin@suse.de>
    Stefan Schubert <schubi@suse.de>
    Andreas Schwab <schwab@suse.de>
    Steffen Winterfeldt <snwint@suse.de>

%prep
%setup -n yast2-2.17.69

%build
%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./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/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

%changelog
openSUSE Build Service is sponsored by