File yast2-users.spec of Package yast2-users

#
# spec file for package yast2-users
#
# Copyright (c) 2013 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-users
Version:        3.0.1
Release:        0

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

BuildRequires:  cracklib-devel
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  perl-Digest-SHA1
BuildRequires:  perl-XML-Writer
BuildRequires:  update-desktop-files
BuildRequires:  yast2
BuildRequires:  yast2-core-devel
BuildRequires:  yast2-devtools
BuildRequires:  yast2-ldap-client
BuildRequires:  yast2-perl-bindings
BuildRequires:  yast2-security
BuildRequires:  yast2-testsuite

Requires:       cracklib
Requires:       perl-Digest-SHA1
Requires:       perl-X500-DN
Requires:       perl-gettext
Requires:       yast2-country
Requires:       yast2-pam
Requires:       yast2-security
Obsoletes:      y2c_users
Obsoletes:      y2t_inst-user
Obsoletes:      y2t_users
Obsoletes:      yast2-config-users
Obsoletes:      yast2-trans-inst-user
Obsoletes:      yast2-trans-users
Provides:       y2c_users
Provides:       y2t_inst-user
Provides:       y2t_users
Provides:       yast2-config-users
Provides:       yast2-trans-inst-user
Provides:       yast2-trans-users

# y2usernote, y2useritem
Requires:       yast2-perl-bindings >= 2.18.0

# this forces using yast2-ldap with orrect LDAP object names (fate#303596)
Requires:       yast2-ldap-client >= 2.17.1

# Syslog.ycp
Requires:       yast2 >= 2.23.7
# cryptsha256, cryptsha516
Requires:       yast2-core >= 2.21.0

Requires:       yast2-ruby-bindings >= 1.0.0

Summary:        YaST2 - User and Group Configuration
License:        GPL-2.0
Group:          System/YaST

%description
This package provides GUI for maintenance of linux users and groups.

%package devel-doc
Requires:       yast2-users = %version
Summary:        YaST2 - User and Group Configuration - Development Documentation
Group:          System/YaST

%description devel-doc
This package contains development documentation for using the API
provided by yast2-users package.

%prep
%setup -n yast2-users-%{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

%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/users
%dir /usr/share/YaST2/modules/YaPI
/usr/share/YaST2/clients/*.rb
%{_prefix}/share/applications/YaST2/*.desktop
/usr/share/YaST2/modules/*.pm
/usr/share/YaST2/modules/UsersUI.rb
/usr/share/YaST2/modules/YaPI/*.pm
/usr/share/YaST2/include/users/*
/usr/share/YaST2/schema/autoyast/rnc/users.rnc
#agents:
/usr/share/YaST2/scrconf/*.scr
/usr/lib/YaST2/servers_non_y2/ag_nis
/usr/lib/YaST2/servers_non_y2/ag_uid
%{_libdir}/YaST2/plugin/libpy2ag_crack.so.*
%{_libdir}/YaST2/plugin/libpy2ag_crack.so
%{_libdir}/YaST2/plugin/libpy2ag_crack.la
%dir %{_prefix}/share/doc/packages/yast2-users
%doc %{_prefix}/share/doc/packages/yast2-users/README
%doc %{_prefix}/share/doc/packages/yast2-users/COPYING
%doc %{_prefix}/share/doc/packages/yast2-users/TODO.txt
%doc %{_prefix}/share/doc/packages/yast2-users/users.html

%files devel-doc
%doc %{_prefix}/share/doc/packages/yast2-users/autodocs
%doc %{_prefix}/share/doc/packages/yast2-users/crack.html

%changelog
openSUSE Build Service is sponsored by