2007-01-04 12:10:54 +01:00
|
|
|
#
|
2009-11-04 16:21:32 +01:00
|
|
|
# spec file for package yast2-network (Version 2.18.55)
|
2009-11-02 12:48:34 +01:00
|
|
|
#
|
|
|
|
# norootforbuild
|
2009-10-29 17:49:04 +01:00
|
|
|
|
2009-11-03 15:37:04 +01:00
|
|
|
Name: yast2-network
|
2009-11-04 16:21:32 +01:00
|
|
|
Version: 2.18.55
|
2009-11-03 15:37:04 +01:00
|
|
|
Release: 0
|
2009-10-29 17:49:04 +01:00
|
|
|
|
2009-11-03 15:37:04 +01:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-11-04 16:21:32 +01:00
|
|
|
Source0: yast2-network-2.18.55.tar.bz2
|
2009-11-03 15:37:04 +01:00
|
|
|
|
|
|
|
prefix: /usr
|
|
|
|
|
|
|
|
Group: System/YaST
|
|
|
|
License: GPL v2 or later
|
2007-01-04 12:10:54 +01:00
|
|
|
# should be required by devtools
|
2009-11-03 15:37:04 +01:00
|
|
|
BuildRequires: pkgconfig perl-XML-Writer rpm
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: yast2-devtools yast2-testsuite
|
|
|
|
BuildRequires: yast2-country
|
|
|
|
BuildRequires: yast2-installation >= 2.15.27
|
|
|
|
BuildRequires: yast2 >= 2.16.6
|
|
|
|
|
2009-09-17 00:23:09 +02:00
|
|
|
# ProductControl::Disable* - yast2-2.18.23
|
2009-11-03 15:37:04 +01:00
|
|
|
Requires: yast2 >= 2.18.23
|
2008-09-06 05:05:09 +02:00
|
|
|
#netconfig (FaTE #303618)
|
2009-11-03 15:37:04 +01:00
|
|
|
Requires: sysconfig >= 0.71.2
|
2008-01-07 12:38:59 +01:00
|
|
|
#GetLanguageCountry
|
|
|
|
#(in newly created yast2-country-data)
|
2009-11-03 15:37:04 +01:00
|
|
|
Requires: yast2-country-data >= 2.16.3
|
|
|
|
|
|
|
|
PreReq: /bin/rm
|
|
|
|
|
|
|
|
Provides: y2c_lan y2c_dial yast2-config-adsl y2c_adsl
|
|
|
|
Obsoletes: y2c_lan y2c_dial yast2-config-adsl y2c_adsl
|
|
|
|
Provides: yast2-lib-network yast2-config-network
|
|
|
|
Obsoletes: yast2-lib-network yast2-config-network
|
|
|
|
Provides: yast2-trans-network yast2-trans-adsl
|
|
|
|
Obsoletes: yast2-trans-network yast2-trans-adsl
|
|
|
|
Provides: y2t_lan y2t_adsl y2t_dial
|
|
|
|
Obsoletes: y2t_lan y2t_adsl y2t_dial
|
|
|
|
|
2007-03-12 12:03:03 +01:00
|
|
|
# carrier detection
|
2009-11-03 15:37:04 +01:00
|
|
|
Conflicts: yast2-core < 2.10.6
|
|
|
|
|
|
|
|
Summary: YaST2 - Network Configuration
|
2007-09-18 15:33:49 +02:00
|
|
|
|
2007-07-25 23:09:43 +02:00
|
|
|
%package devel-doc
|
|
|
|
Group: System/YaST
|
2009-11-03 15:37:04 +01:00
|
|
|
Summary: YaST2 - Developer documentation for yast2-network
|
|
|
|
|
2007-01-04 12:10:54 +01:00
|
|
|
|
2007-07-25 23:09:43 +02:00
|
|
|
%description
|
2007-01-04 12:10:54 +01:00
|
|
|
This package contains the YaST2 component for network configuration.
|
|
|
|
|
2007-07-25 23:09:43 +02:00
|
|
|
%description devel-doc
|
|
|
|
This package contains autogenerated documentation for yast2-network
|
|
|
|
|
2007-01-04 12:10:54 +01:00
|
|
|
%prep
|
2009-11-04 16:21:32 +01:00
|
|
|
%setup -n yast2-network-2.18.55
|
2007-01-04 12:10:54 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{prefix}/bin/y2tool y2autoconf
|
|
|
|
%{prefix}/bin/y2tool y2automake
|
|
|
|
autoreconf --force --install
|
2009-11-03 15:37:04 +01:00
|
|
|
|
2007-01-04 12:10:54 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
2009-11-03 15:37:04 +01:00
|
|
|
|
2007-01-04 12:10:54 +01:00
|
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
|
|
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
|
2009-06-29 17:00:41 +02:00
|
|
|
# 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
|
2007-01-04 12:10:54 +01:00
|
|
|
|
|
|
|
%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
|
2009-11-03 15:37:04 +01:00
|
|
|
|
2007-01-04 12:10:54 +01:00
|
|
|
%ifarch s390 s390x
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/dsl.desktop
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/isdn.desktop
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/modem.desktop
|
|
|
|
%endif
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/network.desktop
|
|
|
|
/bin/rm -f $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/provider.desktop
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%post -p /bin/bash
|
|
|
|
# This fixes the files that were touched when #24842 was in effect.
|
|
|
|
# #42990: shut up when no wlan files are there.
|
|
|
|
shopt -s nullglob
|
|
|
|
files=`echo /etc/sysconfig/network/ifcfg-wlan*`
|
|
|
|
if [ -n "$files" ]; then
|
|
|
|
/bin/chown root:root $files
|
|
|
|
/bin/chmod 0600 $files
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{prefix}/lib/YaST2/bin/*
|
|
|
|
/usr/share/YaST2/data/*
|
|
|
|
/usr/share/YaST2/include/network
|
|
|
|
/usr/share/YaST2/clients/*.ycp
|
2009-09-17 00:23:09 +02:00
|
|
|
/usr/share/YaST2/modules/YaPI/NETWORK.pm
|
2007-01-04 12:10:54 +01:00
|
|
|
/usr/share/YaST2/modules/*.ycp
|
|
|
|
/usr/share/YaST2/modules/*.ybc
|
|
|
|
%{prefix}/share/applications/YaST2/*.desktop
|
|
|
|
/usr/share/YaST2/scrconf/*.scr
|
2007-07-03 11:21:45 +02:00
|
|
|
/usr/lib/YaST2/servers_non_y2/ag_udev_persistent
|
2007-01-04 12:10:54 +01:00
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/networking.rnc
|
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/host.rnc
|
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/proxy.rnc
|
2009-11-03 15:37:04 +01:00
|
|
|
|
2007-07-25 23:09:43 +02:00
|
|
|
%dir %{prefix}/share/doc/packages/yast2-network
|
|
|
|
%{prefix}/share/doc/packages/yast2-network/COPYING
|
|
|
|
%readme %{prefix}/share/doc/packages/yast2-network/README
|
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{prefix}/share/doc/packages/yast2-network
|
|
|
|
%exclude %{prefix}/share/doc/packages/yast2-network/COPYING
|
|
|
|
%exclude %{prefix}/share/doc/packages/yast2-network/README
|