]> git.pld-linux.org Git - packages/fish.git/commitdiff
- up to 2.1.1
authorJan Palus <atler@pld-linux.org>
Sun, 12 Oct 2014 09:02:53 +0000 (11:02 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 12 Oct 2014 09:02:53 +0000 (11:02 +0200)
- drop old patches
- add fish to /etc/shells

fish-includes.patch [deleted file]
fish-link.patch [deleted file]
fish.spec

diff --git a/fish-includes.patch b/fish-includes.patch
deleted file mode 100644 (file)
index 0ad87a8..0000000
+++ /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 (file)
index 1caef26..0000000
+++ /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
index 6e072e11314e63da871d9dce809009a8b9f85c1d..26b1df49522002a5801072d9c0c14f5d78ac04f5 100644 (file)
--- 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*
This page took 0.117448 seconds and 4 git commands to generate.