[packages/fish] - up to 2.1.1 - drop old patches - add fish to /etc/shells

atler atler at pld-linux.org
Sun Oct 12 11:03:29 CEST 2014


commit 83b8611873a6689b9e4728bafb5cc0b1c9bc6822
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Oct 12 11:02:53 2014 +0200

    - up to 2.1.1
    - drop old patches
    - add fish to /etc/shells

 fish-includes.patch | 11 -----------
 fish-link.patch     | 11 -----------
 fish.spec           | 40 ++++++++++++++++++++++++----------------
 3 files changed, 24 insertions(+), 38 deletions(-)
---
diff --git a/fish.spec b/fish.spec
index 6e072e1..26b1df4 100644
--- a/fish.spec
+++ b/fish.spec
@@ -1,14 +1,12 @@
 Summary:	fish - A friendly interactive shell
 Summary(pl.UTF-8):	fish - przyjazna interaktywna powłoka
 Name:		fish
-Version:	1.23.1
-Release:	3
+Version:	2.1.1
+Release:	1
 License:	GPL v2
 Group:		Applications/Shells
-Source0:	http://www.fishshell.com/files/%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5:	ead6b7c6cdb21f35a3d4aa1d5fa596f1
-Patch0:		%{name}-link.patch
-Patch1:		%{name}-includes.patch
+Source0:	http://fishshell.com/files/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	0251e6e5f25d1f326e071425ea1dee22
 URL:		http://fishshell.com/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	doxygen
@@ -30,17 +28,12 @@ nie jest zgodna z innymi językami powłoki.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
+%{__aclocal}
 %{__autoconf}
 %{__autoheader}
-CPPFLAGS="-I/usr/include/ncurses"
-
-%configure \
-	--docdir=%{_docdir}/%{name}-%{version} \
-	--without-xsel
+%configure
 
 %{__make}
 
@@ -49,20 +42,35 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+umask 022
+if [ ! -f /etc/shells ]; then
+        echo "%{_bindir}/fish" >> /etc/shells
+else
+        grep -q '^%{_bindir}/fish$' /etc/shells || echo "%{_bindir}/fish" >> /etc/shells
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+        umask 022
+        grep -v '^%{_bindir}/fish$' /etc/shells > /etc/shells.new
+        mv -f /etc/shells.new /etc/shells
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc ChangeLog README user_doc/html/*.{html,css,png}
+%doc CHANGELOG README.md user_doc/html/*.{html,css,png}
 %attr(755,root,root) %{_bindir}/fish*
 %attr(755,root,root) %{_bindir}/mimedb
-%attr(755,root,root) %{_bindir}/set_color
 %{_datadir}/%{name}
 %dir %{_sysconfdir}/fish
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fish/config.fish
 %{_mandir}/man1/fish*.1*
 %{_mandir}/man1/mimedb.1*
-%{_mandir}/man1/set_color.1*
diff --git a/fish-includes.patch b/fish-includes.patch
deleted file mode 100644
index 0ad87a8..0000000
--- a/fish-includes.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- fish-1.23.0/exec.c~	2008-01-13 02:47:44.000000000 +0100
-+++ fish-1.23.0/exec.c	2008-08-17 16:32:08.834622002 +0200
-@@ -17,7 +17,7 @@
- #include <errno.h>
- #include <wchar.h>
- #include <string.h>
--#include <limits.h>
-+#include <linux/limits.h>
- #include <signal.h>
- #include <sys/wait.h>
- #include <assert.h>
diff --git a/fish-link.patch b/fish-link.patch
deleted file mode 100644
index 1caef26..0000000
--- a/fish-link.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- fish-1.23.1/configure.ac.orig	2011-06-12 01:33:45.029917874 +0200
-+++ fish-1.23.1/configure.ac	2011-06-12 01:34:13.111213245 +0200
-@@ -504,7 +504,7 @@
- LIBS=""
- AC_SEARCH_LIBS( connect, socket, , [AC_MSG_ERROR([Cannot find the socket library, needed to build this package.] )] )
- AC_SEARCH_LIBS( nanosleep, rt, , [AC_MSG_ERROR([Cannot find the rt library, needed to build this package.] )] )
--AC_SEARCH_LIBS( setupterm, [ncurses curses], , [AC_MSG_ERROR([Could not find a curses implementation, needed to build fish])] )
-+AC_SEARCH_LIBS( setupterm, [tinfo ncurses curses], , [AC_MSG_ERROR([Could not find a curses implementation, needed to build fish])] )
- AC_SEARCH_LIBS( [nan], [m], [AC_DEFINE( [HAVE_NAN], [1], [Define to 1 if you have the nan function])] )
- LIBS_SHARED=$LIBS
- LIBS=$LIBS_COMMON
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fish.git/commitdiff/83b8611873a6689b9e4728bafb5cc0b1c9bc6822



More information about the pld-cvs-commit mailing list