File yast2-sshd.spec of Package yast2-sshd

#
# spec file for package yast2-sshd (Version 2.16.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           yast2-sshd
Version:        2.16.2
Release:        17
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-sshd-2.16.2.tar.bz2
Prefix:         /usr
Requires:       yast2 >= 2.16.41
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite
BuildArch:      noarch
Summary:        YaST2 - SSH Server Configuration

%description
This package contains the YaST2 component for SSH server configuration.



Authors:
--------
    Lukas Ocilka <locilka@suse.cz>
    Katarina Machalkova <kmachalkova@suse.cz>

%prep
%setup -n yast2-sshd-2.16.2

%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}
make %{?jobs:-j%jobs}

%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

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/sshd
/usr/share/YaST2/include/sshd/*
/usr/share/YaST2/clients/sshd.ycp
/usr/share/YaST2/clients/sshd_auto.ycp
/usr/share/YaST2/modules/*.ybc
/usr/share/YaST2/modules/*.ycp
%{prefix}/share/applications/YaST2/sshd.desktop
/usr/share/YaST2/schema/autoyast/rnc/sshd_config.rnc
%doc %{prefix}/share/doc/packages/yast2-sshd
%changelog
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Wed Apr 16 2008 locilka@suse.cz
- Added support for AutoYaST (bnc #375850).
- 2.16.2
* Wed Apr 02 2008 locilka@suse.cz
- SCR Agent has been moved to yast2-2.16.41.
- Adapted to new agent paths.
- 2.16.1
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
* Fri Nov 16 2007 locilka@suse.cz
- Changing module layout to use CWM Tabs instead of Wizard Workflow
  (#333655)
- 2.16.0
* Tue Aug 14 2007 jsuchome@suse.cz
- Merged proofread texts
- 2.15.3
* Mon Aug 06 2007 locilka@suse.cz
- New icon: yast2-sshd
- 2.15.2
* Tue Jul 31 2007 locilka@suse.cz
- Added package description.
- 2.15.1
* Mon Jul 30 2007 locilka@suse.cz
- Module moved to the public SVN at opensuse.org.
- Module officially included in openSUSE 10.3 (FATE #120098).
- 2.15.0
* Wed Aug 09 2006 locilka@suse.cz
- Added example of Command Line.
- Added example of AutoYaST support.
- Added example of testsuite.
- 0.0.2
* Tue May 23 2006 locilka@suse.cz
- Initial version.
- 0.0.1
openSUSE Build Service is sponsored by