Blame fish.spec

Andy Lutomirski b1dfe6
Name:                   fish
Andy Lutomirski a4ee7b
Version:                2.2.0
Peter Robinson c77a19
Release:                5%{?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 a4ee7b
Andy Lutomirski a4ee7b
Patch0:                 fish-use-usrbinpython3.patch
Andy Lutomirski f3c942
Andy Lutomirski f3c942
# Pull request #2393, hopefully fixing #2392 / rhbz #1263052
Andy Lutomirski f3c942
Patch1:			pr-2393-1.patch
Andy Lutomirski f3c942
Patch2:			pr-2393-2.patch
Andy Lutomirski f3c942
Andy Lutomirski e09cbb
BuildRequires:		python3-devel
Andy Lutomirski e09cbb
%global __python %{__python3}
Andy Lutomirski 97c015
Andy Lutomirski 85febc
BuildRequires:          ncurses-devel gettext groff doxygen
Andy Lutomirski b1dfe6
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 f3c942
%patch1 -p2
Andy Lutomirski f3c942
%patch2 -p2
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
Oliver Haessler 55bbbd
%configure --docdir=%{_docdir}/%{name}
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 a4ee7b
# Fish has what appears to be a useless pkgconfig file
Andy Lutomirski a4ee7b
rm %{buildroot}/usr/share/pkgconfig/fish.pc
Andy Lutomirski a4ee7b
Andy Lutomirski 7af2e1
# Install docs from tarball root
Oliver Haessler 55bbbd
cp README.md %{buildroot}%{_docdir}/%{name}
Oliver Haessler 55bbbd
cp CONTRIBUTING.md %{buildroot}%{_docdir}/%{name}
Andy Lutomirski 7af2e1
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
%check
Andy Lutomirski 4b4b68
Andy Lutomirski 4b4b68
# fish_tests is somewhat sensitive to the contents of the filesystem.
Andy Lutomirski 4b4b68
# If imake is installed, then fish_tests will fail.  This shouldn't be
Andy Lutomirski 4b4b68
# a problem under mock, though.
Andy Lutomirski 4b4b68
#
Andy Lutomirski 4b4b68
# See: https://github.com/fish-shell/fish-shell/issues/2322
Andy Lutomirski 4b4b68
./fish_tests
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 b1dfe6
%{_mandir}/man1/*.1*
Andy Lutomirski 97c015
%{_bindir}/*
Andy Lutomirski b1dfe6
%config(noreplace) %{_sysconfdir}/fish
Andy Lutomirski b1dfe6
%{_datadir}/fish/
Oliver Haessler 55bbbd
%{_docdir}/%{name}
Andy Lutomirski b1dfe6
Andy Lutomirski 97c015
Andy Lutomirski b1dfe6
%changelog
Peter Robinson c77a19
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-5
Peter Robinson c77a19
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
Peter Robinson c77a19
Andy Lutomirski f3c942
* Thu Sep 24 2015 Andy Lutomirski <luto@mit.edu> - 2.2.0-4
Andy Lutomirski f3c942
- Hopefully fix rhbz #1263052 / upstream #2393
Andy Lutomirski f3c942
Andy Lutomirski 4b4b68
* Thu Aug 20 2015 Andy Lutomirski <luto@mit.edu> - 2.2.0-3
Andy Lutomirski 4b4b68
- Re-enable tests
Andy Lutomirski 4b4b68
Andy Lutomirski 7af2e1
* Wed Aug 19 2015 Andy Lutomirski <luto@mit.edu> - 2.2.0-2
Andy Lutomirski 7af2e1
- Fix docs on newer RPM
Andy Lutomirski 7af2e1
Andy Lutomirski a4ee7b
* Wed Aug 19 2015 Andy Lutomirski <luto@mit.edu> - 2.0.0-1
Andy Lutomirski a4ee7b
- Bump to 2.2.0
Andy Lutomirski a4ee7b
- Drop most Fedora patches
Andy Lutomirski a4ee7b
- Disable tests (broken upstream)
Andy Lutomirski a4ee7b
- Adapt to new tarball contents
Andy Lutomirski a4ee7b
- Drop Python 2 support (we will only target F22 and newer)
Andy Lutomirski a4ee7b
c1d2cf
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
c1d2cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c1d2cf
Kalev Lember d56a57
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.1.1-4
Kalev Lember d56a57
- Rebuilt for GCC 5 C++11 ABI change
Kalev Lember d56a57
Andy Lutomirski e09cbb
* Wed Dec 17 2014 Andy Lutomirski <luto@mit.edu> - 2.1.1-3
Andy Lutomirski e09cbb
- For Fedora 22+, use Python 3
Andy Lutomirski e09cbb
Andy Lutomirski 896ea8
* Sun Dec 14 2014 Andy Lutomirski <luto@mit.edu> - 2.1.1-2
Andy Lutomirski 896ea8
- Backport grep.fish fixes (rhbz #1173924)
Andy Lutomirski 896ea8
Andy Lutomirski 547de7
* Mon Sep 29 2014 Andy Lutomirski <luto@mit.edu> - 2.1.1-1
Andy Lutomirski 547de7
- Update to 2.1.1
Andy Lutomirski 547de7
Peter Robinson e861ac
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-12
Peter Robinson e861ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Peter Robinson e861ac
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