File yast2-ftp-server.spec of Package yast2-ftp-server

#
# spec file for package yast2-ftp-server (Version 2.18.0)
#
# 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-ftp-server
Version:        2.18.0
Release:        1
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-ftp-server-2.18.0.tar.bz2
Prefix:         /usr
Requires:       yast2 yast2-inetd
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-inetd yast2-testsuite
BuildArch:      noarch
Summary:        YaST2 - FTP configuration

%description
This package contains the YaST2 component for FTP configuration. It can
to configure two daemons: pure-ftpd and vsftpd.



Authors:
--------
    Jozef Uhliarik <juhliarik@suse.cz>

%prep
%setup -n yast2-ftp-server-2.18.0

%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/ftp-server
/usr/share/YaST2/include/ftp-server/*
/usr/share/YaST2/clients/ftp-server.ycp
/usr/share/YaST2/clients/ftp-server_*.ycp
/usr/share/YaST2/modules/FtpServer.*
%{prefix}/share/applications/YaST2/ftp-server.desktop
/usr/share/YaST2/schema/autoyast/rnc/ftp-server.rnc
/usr/share/YaST2/scrconf/*.scr
%doc %{prefix}/share/doc/packages/yast2-ftp-server

%changelog
* Wed Feb 11 2009 juhliarik@suse.de
- deleted unecessary Back button (bnc#440531)
- using popup question about really abort only after some changes
  (bnc#460154 )
- 2.18.0
* Thu Nov 20 2008 juhliarik@suse.cz
- updated ftp-server for using yast module Users (bnc #445463)
- 2.17.3
* Thu Nov 13 2008 juhliarik@suse.cz
- added fix for settings upload directory for anonymous
  (bnc #409203)
- fixed typo (bnc #438092)
- 2.17.2
* Tue Sep 30 2008 juhliarik@suse.cz
- corrected typo in help text (bnc #407517)
- 2.17.1
* Thu Sep 11 2008 jsrain@suse.cz
- merged texts from proofread
* Fri Jun 27 2008 juhliarik@suse.cz
- added fix for using <b></b> in dialog (bnc #398519)
- 2.17.0
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Mon Apr 21 2008 juhliarik@suse.cz
- added fix for help text (bnc# 376702)
- V 2.16.11
* Wed Mar 19 2008 juhliarik@suse.cz
- fate #120373: Unified Button Labels
- V 2.16.10
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
* Sun Feb 03 2008 juhliarik@suse.cz
- selected text for localization  (bnc #446659)
* Fri Aug 24 2007 juhliarik@suse.cz
- added patch for changing permission and starting daemons
- V 2.15.9
* Tue Jul 31 2007 juhliarik@suse.cz
- added path for "Bad or unknown file 'ftp-server/uiforms.ycp'"
- V 2.15.8
* Mon Jul 30 2007 juhliarik@suse.cz
- added patch for pure-ftpd and running via xinetd
- added corrections into help text
- V 2.15.7
* Fri Jun 29 2007 juhliarik@suse.cz
- added patch for creating upload dir
- added patch for position of ftp-server icon in YaST
- V 2.15.6
* Wed May 30 2007 juhliarik@suse.cz
- added patch for uploading anonymous users via vsftpd
- added creation "upload" subdirectory with writing permission
- V 2.15.5
* Thu May 10 2007 juhliarik@suse.cz
- added corrections for starting daemon via "when booting"
- added corrections for help text
- changed UI for installing package (if missing)
- V 2.15.4
* Thu May 03 2007 juhliarik@suse.cz
- added parsing of options from xinetd for pure-ftpd
- correction for changes ftp directories for ftp users
- changed UI
- V 2.15.3
* Thu Apr 19 2007 juhliarik@suse.cz
- added ftp-server icon
- added correct name (FTP Server)
- changed destop file
- V 2.15.2
* Wed Apr 18 2007 juhliarik@suse.cz
- add checking certificate (SSL)
- corrections for UI selection version of SSL
- update commandline
- 2.15.1
* Fri Apr 06 2007 juhliarik@suse.cz
- initial version
- 2.15.0
openSUSE Build Service is sponsored by