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

#
# spec file for package yast2-nfs-server (Version 2.17.4)
#
# Copyright (c) 2008 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-nfs-server
Version:        2.17.4
Release:        1
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-nfs-server-2.17.4.tar.bz2
Prefix:         /usr
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite
# Service::Find
Requires:       yast2 >= 2.17.28
Requires:       yast2-nfs-common
Provides:       yast2-config-nfs-server yast2-config-nfs-server-devel
Obsoletes:      yast2-config-nfs-server yast2-config-nfs-server-devel
Provides:       yast2-trans-nfs-server
Obsoletes:      yast2-trans-nfs-server
Provides:       yast2-config-network:/usr/lib/YaST2/clients/lan_nfs_server.ycp
BuildArch:      noarch
Summary:        YaST2 - NFS Server Configuration

%description
The YaST2 component for configuration of an NFS server. NFS stands for
network file system access. It allows access to files on remote
machines.



Authors:
--------
    Dan Vesely <dan@suse.cz>
    Martin Vidner <mvidner@suse.cz>

%package -n yast2-nfs-common
License:        GPL v2 or later
Summary:        YaST2 - NFS Configuration, common parts
Group:          System/YaST
Requires:       limal-nfs-server
Requires:       limal-nfs-server-perl

%description -n yast2-nfs-common
The common parts for YaST2 NFS configuration, both server and client.
NFS stands for network file system access. It allows access to files on
remote machines.



Authors:
--------
    Dan Vesely <dan@suse.cz>
    Martin Vidner <mvidner@suse.cz>

%prep
%setup -n yast2-nfs-server-2.17.4

%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/nfs_server
/usr/share/YaST2/include/nfs_server/*
/usr/share/YaST2/clients/nfs-server.ycp
/usr/share/YaST2/clients/nfs_server.ycp
/usr/share/YaST2/clients/nfs_server_auto.ycp
/usr/share/YaST2/modules/NfsServer.ycp
/usr/share/YaST2/modules/NfsServer.ybc
%{prefix}/share/applications/YaST2/nfs_server.desktop
/usr/share/YaST2/scrconf/etc_exports.scr
/usr/lib/YaST2/servers_non_y2/ag_exports
%doc %{prefix}/share/doc/packages/yast2-nfs-server
/usr/share/YaST2/schema/autoyast/rnc/nfs_server.rnc

%files -n yast2-nfs-common
%defattr(-,root,root)
/usr/share/YaST2/scrconf/cfg_nfs.scr
/usr/share/YaST2/scrconf/etc_idmapd_conf.scr
/usr/lib/YaST2/servers_non_y2/ag_idmapd_conf
%changelog
* Wed Nov 19 2008 mvidner@suse.cz
- Fixed firewall port punching by updating the service reference
  (bnc#446163).
- 2.17.4
* Fri Nov 07 2008 mvidner@suse.cz
- Adjusted dialog buttons according to YaST Style Guide
  (bnc#440528).
- 2.17.3
* Thu Oct 09 2008 jsuchome@suse.cz
- fixed failing testsuite (Service.ycp)
- 2.17.2
* Thu Oct 02 2008 mvidner@suse.cz
- Use rpcbind by default and fall back to portmap (bnc#423026).
- 2.17.1
* Mon Sep 08 2008 mvidner@suse.cz
- Applied proofreading changes from Andrew Spackman.
* Wed Jul 23 2008 mvidner@suse.cz
- Help text: clarified that "*" works only in host names, not network
  IPs (bnc#405207).
- 2.17.0
* Wed May 21 2008 mvidner@suse.cz
- Split off yast2-nfs-common (bnc#387088).
- 2.16.1
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Wed Apr 16 2008 mvidner@suse.cz
- Merged proofread texts.
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
- 2.16.0
* Wed Jan 02 2008 mvidner@suse.cz
- Do not touch NFS4 during autoinstallation; really fixing "Unable to
  write idmapd.conf" (#287338).
- Do not pop up an error about idmapd during autoinstallation
  (#260723).
* Mon Aug 20 2007 mvidner@suse.cz
- Require nfs-kernel-server.rpm because nfs-utils.rpm got split (#286300).
- 2.15.4
* Fri May 25 2007 jsrain@suse.cz
- removed outdated translations from .desktop-files (#271209)
* Wed Mar 14 2007 pchakravarthi@novell.com
- Added CLI for setting parameters related to NFSv4 server.
  (nfs_server.ycp)
- Modified the testsuite out files to reflect the changes made to
  NfsServer.ycp
- 2.15.3
* Tue Mar 13 2007 mvidner@suse.cz
- Removed obsolete dependency on yast2-packager (#252979).
- 2.15.2
* Mon Feb 26 2007 pchakravarthi@novell.com
- Fixed #242545: settings were not visible.
- Do not ignore changes when an item is deleted and readded (#243466).
- Do not continue with no directory entered (#243034).
- Fixed "Unable to start idmapd please check the domain settings"
  (/etc/sysconfig/nfs was not flushed, #242565).
- 2.15.1
* Mon Feb 26 2007 pchakravarthi@novell.com
- Added a perl module ag_idmapd_conf for configuring entries in
  /etc/idmapd.conf
- Added two scr agents - etc_idmapd_conf.scr and cfg_nfs.scr, the
  former making use of ag_idmapd_conf and the later to configure
  entries in /etc/sysconfig/nfs
- Modified Makefile.am in agents directory to reflect above.
- Modified NfsServer.ycp, ui.ycp and routines.ycp to make use of
  all above and adding ui pieces to make the module NFSv4 aware.
- Modified the *.out files in testsuite/tests/ to reflect changes
  made above.
- modified .spec.in file to add 'Requires' for limal-nfs-server
  package and to include names of additional agent files.
- Relevant FATE ID : #300609
- merged all this from SLE10-SP1 (mvidner).
* Mon Feb 26 2007 mvidner@suse.cz
- Added no_subtree_check to the default options to reflect a change in
  nfs-utils-1.1.0 (#233709).
- 2.15.0
* Mon Nov 20 2006 mvidner@suse.cz
- Have all yast packages with 2.14.x in OS-10.2.
- 2.14.0
* Mon Sep 11 2006 mvidner@suse.cz
- Fixed Progress nesting (#202351).
- Using autodocs-ycp.ami (with parentheses for automake-1.9.6).
- 2.13.6
* Tue Jul 11 2006 mvidner@suse.cz
- Warn if there are unbalanced parentheses, probably because of
  misplaced whitespace in /etc/exports.
- 2.13.5
* Mon Jul 10 2006 mvidner@suse.cz
- Join multiple entries for a single export path (#191218).
- Filter out duplicated client specifications (#191218).
- 2.13.4
* Tue Mar 07 2006 mvidner@suse.cz
- Converted neededforbuild to BuildRequires
  and removed yast2-devel-packages.
- 2.13.3
* Mon Jan 16 2006 mvidner@suse.cz
- Again adjusted test cases for NetworkManager related changes (~#135595).
- 2.13.2
* Thu Jan 05 2006 mvidner@suse.cz
- Adjusted testsuite for changes in firewall code.
- 2.13.1
* Fri Sep 23 2005 mvidner@suse.cz
- Moved RNC schema from autoyast2.rpm.
- 2.13.0
* Fri Aug 12 2005 mvidner@suse.cz
- Note the difference in anonymous wildcard between knfsd and unfsd in
  the help text (#91175).
- Added comments for translators and ycpdoc.
- 2.12.1
* Wed May 18 2005 mvidner@suse.cz
- Texts proofread by rwalter.
- 2.12.0
* Thu Feb 10 2005 mvidner@suse.cz
- Another testsuite adjustment for firewall.
- 2.11.5
* Mon Feb 07 2005 mvidner@suse.cz
- Merged proofread texts.
- 2.11.4
* Mon Jan 31 2005 mvidner@suse.cz
- Adjusted testsuite for changes in firewall (build fix).
- 2.11.3
* Fri Jan 14 2005 jsuchome@suse.cz
- added basic command line support
- 2.11.2
* Mon Jan 03 2005 mvidner@suse.cz
- Adjusted for firewall's move to yast2.rpm.
- Using Progress::set.
- 2.11.1
* Wed Nov 10 2004 mvidner@suse.cz
- Updated to new Mode.
- Replaced lookups and selects by brackets.
- 2.11.0
* Wed Sep 15 2004 mvidner@suse.cz
- Use Package instead of Require.
- 2.10.5
* Tue Sep 14 2004 jsrain@suse.cz
- adapted testsuite to more changes in yast2-firewall
- 2.10.4
* Mon Sep 06 2004 mvidner@suse.cz
- Adjusted testsuite to changes in yast2-firewall (#44650).
- 2.10.3
* Mon Aug 30 2004 nashif@suse.de
- use modified flag (#43904)
* Fri Aug 27 2004 mvidner@suse.cz
- Added Open Firewall button.
- autoinst: check if nfslock is available during import (nashif)
- 2.10.1
* Thu Jun 17 2004 mvidner@suse.cz
- Added "testedfiles" to test cases to make it work with the new testsuite.
- 2.10.0
* Fri Apr 02 2004 mvidner@suse.cz
- changed license to GPL
- 2.9.9
* Mon Mar 15 2004 mvidner@suse.cz
- fixed canceling Abort (#35991)
- re-enabled testsuite
- 2.9.8
* Wed Mar 10 2004 kkaempf@suse.de
- disable testsuite
- 2.9.7
* Wed Mar 10 2004 sh@suse.de
- V 2.9.6
- Migration to new wizard
* Tue Mar 09 2004 lslezak@suse.cz
- use Service::, Sequencer::
- set icon
- testsuite update
- version 2.9.5
* Sun Mar 07 2004 kkaempf@suse.de
- fix testsuite
* Fri Mar 05 2004 mvidner@suse.cz
- added typing information (lslezak)
- 2.9.3
* Mon Feb 09 2004 lslezak@suse.cz
- NfsServer.ycp - fixed data type
- removed *.y2cc file
- version 2.9.2
* Fri Jan 30 2004 mvidner@suse.cz
- Adapted for the new interpreter (jhumpol)
- 2.9.1
* Fri Nov 21 2003 lslezak@suse.cz
- use UI:: file popup
- fixed nonroot build (mvidner)
- version 2.9.0
* Tue Sep 16 2003 nashif@suse.de
- Dont show help messages during autoinstallation
- 2.8.7
* Fri Sep 12 2003 nashif@suse.de
- #30291: return list of required packages for autoinstallation
- 2.8.6
* Fri Sep 05 2003 lslezak@suse.cz
- merged text from proofread
- version 2.8.5
* Fri Aug 22 2003 nashif@suse.de
- return required packages during autoinstallation
* Thu Aug 14 2003 jsuchome@suse.cz
- removed confirmation dialog, success dialog and added writing
  progress dialog (#28729)
- 2.8.3
* Mon Aug 04 2003 mvidner@suse.cz
- Added desktop file (supersedes y2cc file).
- 2.8.2
* Wed Jul 23 2003 mvidner@suse.cz
- Autoinst: if start_nfsserver is false, write /etc/exports anyway
  (for heartbeat, #27001).
- Using Label, Popup, Require.
- 2.8.1
* Mon Mar 03 2003 mvidner@suse.de
- Import accepts empty list and can reset settings (#24544).
- Don't set Mode::config to true in _auto clients (nashif).
- 2.7.4
* Mon Feb 17 2003 mvidner@suse.de
- Changed _auto::Result to Export (nashif).
- 2.7.2
* Mon Feb 03 2003 mvidner@suse.de
- Added Read to _auto (nashif).
- 2.7.1
* Mon Jan 20 2003 mvidner@suse.de
- Using the new *_auto dispatcher (nashif).
- Added function key shortcuts.
- Fixed export options checking (phadraba).
- Prevent agent from returning strings as integers/booleans (~#21804).
- 2.7.0
* Mon Sep 09 2002 nashif@suse.de
- Implemented WriteOnly to 'only' write configuration without
  actuallu activating any services
- 2.6.13
* Fri Sep 06 2002 mvidner@suse.cz
- If nfslock is present, enable/start it along with nfsserver (#18952).
- Options popup widened so that in ncurses "ro,root_squash,sync" fits in.
- Fixed truncated buttons in ncurses.
- 2.6.12
* Mon Aug 26 2002 mvidner@suse.cz
- Adapted for the new packagemanager.
- 2.6.11
* Fri Aug 09 2002 mvidner@suse.cz
- Explicitly set sync, the new default of nfs-utils-1.0.1,
  so that exportfs does not produce a warning.
- Let the table keep the keyboard focus (#16116 workaround).
- Report Runlevel::error_msg if enabling a service fails.
- Make "yast2 nfs-server" invoke "yast2 nfs_server" (#17570).
- 2.6.10
* Mon Aug 05 2002 mvidner@suse.cz
- Added autoyast interface (nashif).
- 2.6.9
* Mon Jul 29 2002 mvidner@suse.cz
- After adding a directory to be exported, the restriction dialog
  pops up automatically, with explicit defaults: "*" and "ro,root_squash".
- WM close button means to abort.
- Added missing comments for translators.
- 2.6.8
* Fri Jul 19 2002 mvidner@suse.cz
- Errors when creating directories are non fatal, so don't abort writing.
- Merged proofread texts.
- 2.6.7
* Fri Jul 12 2002 arvin@suse.de
- use proper namespace for Args and CallFunction (#16776)
* Fri Jul 12 2002 mvidner@suse.cz
- Fixed dependencies, using devtools 2.6.6.
- 2.6.5
* Thu Jul 04 2002 arvin@suse.de
- moved non binary files to /usr/share/YaST2
* Fri Jun 28 2002 mvidner@suse.cz
- Renamed to "yast2-nfs-server"
- menuentries -> config
- 2.6.2
* Wed Apr 24 2002 mvidner@suse.cz
- Check that the exported directory exists and ask if it should be created.
- Better /etc/exports handling:
  Don't insert \\\n (#15937)
  Handle spaces in paths (allowed only for the kernel based server) (#15524)
- Use * to mean all clients only if using the kernel based server.
  The user mode server still needs an empty string to mean that.
- Fix for automake 1.6
- 2.6.1
* Thu Feb 07 2002 mvidner@suse.cz
- Allow also the user mode nfs-server.
- Sometimes buttons were not enabled.
- Added SetFocus to input popups.
- Had the English texts proofread.
- 2.5.7
* Mon Jan 21 2002 mvidner@suse.cz
- Using Wizard module.
- Moved etc_exports.scr from yast2-agent-any.
- Keyboard shortcut fixes.
- 2.5.6
* Wed Jan 09 2002 mvidner@suse.cz
- Removed old menu entry. (2.5.5)
* Tue Dec 18 2001 mvidner@suse.cz
- Using Report module for errors.
- New style menu entry.
- 2.5.4
* Thu Nov 29 2001 mvidner@suse.cz
- Converted to a Module.
- Using y2automake and create-spec.
- 2.5.3
* Tue Nov 13 2001 mvidner@suse.cz
- Added default values for lookups.
- 2.5.2
* Thu Oct 11 2001 mvidner@suse.cz
- Better export options checking; default options are nonempty ("*()")
  to avoid warnings. (#11615)
- 2.5.1
* Thu Sep 20 2001 mvidner@suse.cz
- Leave disabled the Add host button until a mount point is selected
  that the host will apply to. (#11075)
- Allow empty export options (parens are supplied automatically) (#11076);
  empty host wildcard is translated to "*".
- 2.4.11
* Mon Sep 03 2001 mvidner@suse.cz
- Start portmap only if not running already (Bug #9999). (2.4.10)
* Thu Aug 30 2001 ro@suse.de
- added <libycp-devel> to neededforbuild (for testsuite)
* Tue Aug 28 2001 mvidner@suse.cz
- Fixed a truncated table label (#9907). (2.4.8)
* Thu Aug 23 2001 mvidner@suse.cz
- Added documentation in a devel subpackage (2.4.7)
* Tue Aug 21 2001 mvidner@suse.cz
- Only one <p> per string.
- Switched from START_* to runlevel_adjust.
- 2.4.6
* Tue Aug 07 2001 mvidner@suse.cz
- Changed from RPM Requires to require.ycp.
- 2.4.5
* Mon Jul 30 2001 mvidner@suse.cz
- Turned off autoheader.
- Added an Abort button.
- Parentheses are filtered from exports options, this time correctly.
- Replaced _("&OK") by OKButtonLabel() etc.
- Unified the buttons to Add-Edit-Delete.
- Made keyboard shortcuts unique.
- version 2.4.4
* Tue Jul 24 2001 mvidner@suse.cz
- Fixed a stupid error in the specfile.
- version 2.4.3
* Mon Jul 23 2001 mvidner@suse.cz
- Fixed calling the writing function. Fixed obsolete Shell call.
- Requires nfs-utils.
- Parentheses are filtered from exports options.
- version 2.4.2
* Thu Jul 19 2001 msvec@suse.cz
- correct textdomain
- correct provides
- version 2.4.1
* Wed Jul 18 2001 msvec@suse.cz
- split of the yast2-config-network
- version 2.4.0
openSUSE Build Service is sponsored by