Hello community,

here is the log from the commit of package netcat-openbsd for openSUSE:Factory
checked in at Thu Apr 21 13:40:56 CEST 2011.



--------
--- netcat-openbsd/netcat-openbsd.changes       2010-05-28 18:28:14.000000000 
+0200
+++ /mounts/work_src_done/STABLE/netcat-openbsd/netcat-openbsd.changes  
2010-06-25 18:51:42.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Jun 25 16:55:06 UTC 2010 - [email protected]
+
+- Use update-alternatives to set netcat symbolic links for compatibility.
+- Provides and obsoltes netcat.
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ netcat-openbsd.spec ++++++
--- /var/tmp/diff_new_pack.xY3aot/_old  2011-04-21 13:40:20.000000000 +0200
+++ /var/tmp/diff_new_pack.xY3aot/_new  2011-04-21 13:40:20.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package netcat-openbsd (Version 1.89)
+# spec file for package netcat-openbsd
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 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
@@ -21,17 +21,18 @@
 
 Name:           netcat-openbsd
 Version:        1.89
-Release:        67
+Release:        77
 License:        BSD3c
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  cmake glib2-devel quilt
+PreReq:         update-alternatives
 Group:          Productivity/Networking/Other
 Summary:        TCP/IP swiss army knife
 Source:         %{name}-%{version}.tar.bz2
 Source1:        CMakeLists.txt
 Patch0:         netcat-openbsd_1.89-3ubuntu2.diff.gz
-Provides:       nc6 = %{version}
-Obsoletes:      nc6 <= 1.0
+Provides:       nc6 = %{version} netcat
+Obsoletes:      nc6 <= 1.0 netcat <= 1.10
 
 %description
 A simple Unix utility which reads and writes data across network
@@ -65,6 +66,13 @@
 
 %install
 %makeinstall
+mkdir -p \
+       ${RPM_BUILD_ROOT}/etc/alternatives
+touch \
+       ${RPM_BUILD_ROOT}/etc/alternatives/netcat \
+       ${RPM_BUILD_ROOT}/etc/alternatives/netcat.1.gz
+%{__ln_s} -f %{_bindir}/nc ${RPM_BUILD_ROOT}/%{_bindir}/netcat
+%{__ln_s} -f nc.1.gz ${RPM_BUILD_ROOT}/%{_mandir}/man1/netcat.1.gz
 
 %clean
 rm -rf "$RPM_BUILD_ROOT"
@@ -72,6 +80,21 @@
 %files
 %defattr(-,root,root)
 %{_bindir}/nc
+%{_bindir}/netcat
 %{_mandir}/man1/nc.1.gz
+%{_mandir}/man1/netcat.1.gz
+%ghost /etc/alternatives/netcat
+%ghost /etc/alternatives/netcat.1.gz
+
+%post
+/usr/sbin/update-alternatives --install \
+       %{_bindir}/netcat netcat %{_bindir}/nc 10 \
+       --slave %{_mandir}/man1/netcat.1.gz netcat.1.gz %{_mandir}/man1/nc.1.gz
+
+%preun
+if [ "$1" = 0 ] ; then
+       /usr/sbin/update-alternatives --remove \
+               netcat %{_bindir}/nc
+fi
 
 %changelog


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to