Blame fish.spec

Andy Lutomirski b1dfe6
Name:                   fish
Andy Lutomirski 97c015
Version:                2.1.0
Andy Lutomirski 4de0b6
Release:                11%{?dist}
Andy Lutomirski 97c015
Summary:                A friendly interactive shell
Andy Lutomirski 97c015
Andy Lutomirski b1dfe6
Group:                  System Environment/Shells
Andy Lutomirski 97c015
License:                GPLv2
Andy Lutomirski 97c015
URL:                    http://fishshell.com/
Andy Lutomirski 97c015
Source0:                http://fishshell.com/files/%{version}/fish-%{version}.tar.gz
Andy Lutomirski 97c015
Patch0:                 fish-remove-usr-local.patch
Andy Lutomirski 97c015
Patch1:                 fish-add-link-cxxflags.patch
Andy Lutomirski 85febc
Patch2:                 fish-use-usrbinpython.patch
Andy Lutomirski fbcf04
Patch3:                 fish-upstream-CVE-2014-2914.patch
Andy Lutomirski 4de0b6
Patch4:                 fish-upstream-CVE-2014-2914-part2.patch
Andy Lutomirski 4de0b6
Patch5:                 fish-upstream-CVE-2014-2905.patch
Andy Lutomirski 4de0b6
Patch6:                 fish-upstream-CVE-2014-2905-part2.patch
Andy Lutomirski 4de0b6
Patch7:                 fish-upstream-CVE-2014-2906.patch
Andy Lutomirski 4de0b6
Patch8:                 fish-webconfig-CVE-2014-2914-followup-1.patch
Andy Lutomirski 4de0b6
Patch9:                 fish-webconfig-CVE-2014-2914-followup-2.patch
Andy Lutomirski 4de0b6
Patch10:                fish-webconfig-CVE-2014-2914-followup-3.patch
Andy Lutomirski 97c015
Andy Lutomirski 85febc
BuildRequires:          ncurses-devel gettext groff doxygen
Andy Lutomirski b1dfe6
Andy Lutomirski fa9ec4
# Temporary -- remove once CVE-2014-2905 is fixed in a release
Andy Lutomirski fa9ec4
BuildRequires:          autoconf
Andy Lutomirski fa9ec4
Andy Lutomirski b1dfe6
%description
Andy Lutomirski 97c015
fish is a fully-equipped command line shell (like bash or zsh) that is
Andy Lutomirski 97c015
smart and user-friendly. fish supports powerful features like syntax
Andy Lutomirski 97c015
highlighting, autosuggestions, and tab completions that just work, with
Andy Lutomirski 97c015
nothing to learn or configure.
Andy Lutomirski 97c015
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
%prep
Andy Lutomirski b1dfe6
%setup -q
Andy Lutomirski 97c015
%patch0 -p1
Andy Lutomirski 97c015
%patch1 -p1
Andy Lutomirski 97c015
%patch2 -p1
Andy Lutomirski 8e15cc
%patch3 -p1
Andy Lutomirski 8e15cc
%patch4 -p1
Andy Lutomirski fbcf04
%patch5 -p1
Andy Lutomirski 97c015
Andy Lutomirski 85febc
# This is unused.  If we fiddle with Python versions, its presence will
Andy Lutomirski 85febc
# be confusing.
Andy Lutomirski 97c015
rm create_wajig_completions.py
Andy Lutomirski 97c015
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
%build
Andy Lutomirski 97c015
%configure --docdir=%{_pkgdocdir}
Andy Lutomirski 97c015
make %{?_smp_mflags} all fish_tests
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
%install
Andy Lutomirski 97c015
%make_install
Andy Lutomirski 97c015
Andy Lutomirski 97c015
# Fish has magical manpages (visible from inside fish) that live in
Andy Lutomirski 97c015
# /usr/share/fish/man/man1.  Compress them (rpm won't do it automatically).
Andy Lutomirski 97c015
gzip %{buildroot}%{_datadir}/fish/man/man1/*.1
Andy Lutomirski 97c015
Andy Lutomirski 97c015
%find_lang %{name}
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
%check
Andy Lutomirski 97c015
./fish_tests |grep -q 'Encountered 0 errors'
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
%post
Andy Lutomirski b1dfe6
# Add fish to the list of allowed shells in /etc/shells
Andy Lutomirski 97c015
if [ "$1" = 1 ]; then
Andy Lutomirski 97c015
  if ! [ -f "%{_sysconfdir}/shells" ] || ! grep -q '^%{_bindir}/fish$' "%{_sysconfdir}/shells"; then
Andy Lutomirski 97c015
    echo '%{_bindir}/fish' >>"%{_sysconfdir}/shells"
Andy Lutomirski 97c015
  fi
Andy Lutomirski b1dfe6
fi
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
Andy Lutomirski b1dfe6
%postun
Andy Lutomirski b1dfe6
# Remove fish from the list of allowed shells in /etc/shells
Andy Lutomirski b1dfe6
if [ "$1" = 0 ]; then
Andy Lutomirski 97c015
  sed -i -e '\#^%{_bindir}/fish$#d' "%{_sysconfdir}/shells"
Andy Lutomirski b1dfe6
fi
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
%files -f %{name}.lang
Andy Lutomirski 97c015
%doc README.md
Andy Lutomirski 97c015
%doc CHANGELOG
Andy Lutomirski 97c015
%doc CONTRIBUTING.md
Andy Lutomirski b1dfe6
%{_mandir}/man1/*.1*
Andy Lutomirski 97c015
%{_bindir}/*
Andy Lutomirski b1dfe6
%config(noreplace) %{_sysconfdir}/fish
Andy Lutomirski b1dfe6
%{_datadir}/fish/
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
Andy Lutomirski b1dfe6
%changelog
Andy Lutomirski 4de0b6
* Tue Aug 12 2014 Andy Lutomirski <luto@mit.edu> - 2.1.0-11
Andy Lutomirski 4de0b6
- Improve fixes for CVE-2014-2905 and CVE-2014-2914
Andy Lutomirski 4de0b6
16cec3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-10
16cec3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
16cec3
Andy Lutomirski fbcf04
* Mon Apr 28 2014 Andy Lutomirski <luto@mit.edu> - 2.1.0-9
Andy Lutomirski fbcf04
- Fix CVE-2014-2914
Andy Lutomirski fbcf04
Andy Lutomirski fa9ec4
* Mon Apr 28 2014 Andy Lutomirski <luto@mit.edu> - 2.1.0-8
Andy Lutomirski fa9ec4
- Fix build failure
Andy Lutomirski fa9ec4
Andy Lutomirski 8e15cc
* Mon Apr 28 2014 Andy Lutomirski <luto@mit.edu> - 2.1.0-7
Andy Lutomirski 8e15cc
- Fix CVE-2014-2905
Andy Lutomirski 8e15cc
- Fix CVE-2014-2906
Andy Lutomirski 8e15cc
Andy Lutomirski 85febc
* Fri Dec 20 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-6
Andy Lutomirski 85febc
- Switch back to Python 2
Andy Lutomirski 85febc
Andy Lutomirski 97c015
* Fri Dec 20 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-5
Andy Lutomirski 97c015
- Add BR: python3 (for __pycache__)
Andy Lutomirski 97c015
- Remove --without-xsel: fish dropped it in favor of a runtime check
Andy Lutomirski 97c015
Andy Lutomirski 97c015
* Fri Dec 13 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-4
Andy Lutomirski 97c015
- Stop looking in /usr/local (#1185 upstream)
Andy Lutomirski 97c015
- Link with CXXFLAGS (#1062 upstream)
Andy Lutomirski 97c015
- Use /usr/bin/python3 in scripts intead of /usr/bin/env
Andy Lutomirski 97c015
- Add fish_tests to the build process
Andy Lutomirski 97c015
- Split up the %%doc lines
Andy Lutomirski 97c015
Andy Lutomirski 97c015
* Wed Dec 11 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-3
Andy Lutomirski 97c015
- Use %%make_install instead of make install DESTDIR=...
Andy Lutomirski 97c015
- Removed rm -rf %%{buildroot}
Andy Lutomirski 97c015
- Added Requires: python
Andy Lutomirski 97c015
Andy Lutomirski 97c015
* Tue Dec 10 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-2
Andy Lutomirski 97c015
- Drop 'help' patch
Andy Lutomirski 97c015
- Misc cleanups
Andy Lutomirski 97c015
Andy Lutomirski 97c015
* Mon Dec 9 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-1
Andy Lutomirski 97c015
- Update to 2.1.0 and update a lot of the specfile
Andy Lutomirski 97c015
- Fix bogus changelog dates
Andy Lutomirski 97c015
- Add a patch to make 'help' work on F19 (upstream #1065)
Andy Lutomirski 97c015
Andy Lutomirski b1dfe6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23.1-4
Andy Lutomirski b1dfe6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Fri Jul 03 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 1.23.1-3
Andy Lutomirski b1dfe6
- Pass --without-xsel to configure, if you want xsel install its package instead
Andy Lutomirski b1dfe6
- Fix file list
Andy Lutomirski b1dfe6
- Drop unneeded BuildRequires
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Fri Jul 03 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 1.23.1-2
Andy Lutomirski b1dfe6
- rebuilt
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Fri Jul 03 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 1.23.1-1
Andy Lutomirski b1dfe6
- 1.23.1
Andy Lutomirski b1dfe6
- Fix bz #472613
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23.0-7
Andy Lutomirski b1dfe6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Mon Sep 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23.0-6
Andy Lutomirski b1dfe6
- cleanups
Andy Lutomirski b1dfe6
- define ARG_MAX properly so it compiles
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Mon Jul 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23.0-5
Andy Lutomirski b1dfe6
- fix conditional comparison
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Sun Jul 06 2008 Oliver Falk <oliver@linux-kernel.at> - 1.23.0-4
Andy Lutomirski b1dfe6
- Rebuild
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23.0-3
Andy Lutomirski b1dfe6
- fix license tag
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.23.0-2
Andy Lutomirski b1dfe6
- Autorebuild for GCC 4.3
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Mon Jan 14 2008 Oliver Falk <oliver@linux-kernel.at> - 1.23.0-1
Andy Lutomirski b1dfe6
- Update to fix #208780
Andy Lutomirski b1dfe6
- Remove openfix patch, included upstream now
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-5
Andy Lutomirski b1dfe6
- Fix glibc's open check, by providing mode, instead of working
Andy Lutomirski b1dfe6
  around...
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Wed Oct 31 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-4
Andy Lutomirski b1dfe6
- Update URL; Fixes bz#359451
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Thu Aug 16 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-3
Andy Lutomirski b1dfe6
- Workaround glibc's open check
Andy Lutomirski b1dfe6
- Problem reported upstream; Should be fixed there
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Tue Aug 07 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-2
Andy Lutomirski b1dfe6
- Fix BR autoconf
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Tue Aug 07 2007 Oliver Falk <oliver@linux-kernel.at> - 1.22.3-1
Andy Lutomirski b1dfe6
- Update; Bug #236868
Andy Lutomirski b1dfe6
- Add missing doxygen BR
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Fri Aug 4 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-4
Andy Lutomirski b1dfe6
- Add better translation finding code from fedora spec to main spec. Thank you to Michael Schwendt.
Andy Lutomirski b1dfe6
- Add missing dependency libXext-devel.
Andy Lutomirski b1dfe6
- Remove one nesting level from dependency checking code.
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Tue Aug 1 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
Andy Lutomirski b1dfe6
- Improved the dependency check for X headers. Thank you to Michael Schwendt for pointers on how to do this
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Mon Jul 31 2006 Axel Liljencrantz<axel@liljencrantz.se> 1.21.10-1
Andy Lutomirski b1dfe6
- Fixed spelling and punctuation as a per patch from Paul Howarth
Andy Lutomirski b1dfe6
- Fixed dependencies as per patch from Paul Howarth
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Tue Nov 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.17.0-0
Andy Lutomirski b1dfe6
- 1.17.0
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Sat Sep 24 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.14.0-0
Andy Lutomirski b1dfe6
- 1.14.0
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Mon Sep 12 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.4-0
Andy Lutomirski b1dfe6
- 1.13.4
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Wed Sep 07 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.3-0
Andy Lutomirski b1dfe6
- 1.13.3
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Tue Sep 06 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.2-0
Andy Lutomirski b1dfe6
- 1.13.2
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
* Tue Aug 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.1-0
Andy Lutomirski b1dfe6
- 1.13.1
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Sun Aug 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
Andy Lutomirski b1dfe6
- 1.13.0
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Sat Aug 13 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.13.0-0
Andy Lutomirski b1dfe6
- Add completions subdirectory
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Thu Jul 28 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.1-0
Andy Lutomirski b1dfe6
- 1.12.1
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Fri Jul 15 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.12.0-1
Andy Lutomirski b1dfe6
- 1.12.0
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Thu Jun 30 2005 Michael Schwendt <mschwendt@users.sf.net> 1.11.1-9
Andy Lutomirski b1dfe6
- Set CFLAGS the proper way
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Thu Jun 30 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-8
Andy Lutomirski b1dfe6
- Fix revision number in changelog
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-7
Andy Lutomirski b1dfe6
- Send post-script output to /dev/null
Andy Lutomirski b1dfe6
Andy Lutomirski b1dfe6
* Wed Jun 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.11.1-6
Andy Lutomirski b1dfe6
- Add changelog section to spec file
Andy Lutomirski b1dfe6
- Add macros to source tags
Andy Lutomirski b1dfe6
- Add smp_mflags to 'make all'
Andy Lutomirski b1dfe6
- Fix typo in post install scriptlet test
Andy Lutomirski b1dfe6
- Set CFLAGS from spec file