Request was accepted with message: Thanks... OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=1
60 lines
1.5 KiB
RPMSpec
60 lines
1.5 KiB
RPMSpec
# norootforbuild
|
|
|
|
%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 ))
|
|
|
|
Name: fish
|
|
Version: 1.23.1
|
|
Release: 1.0
|
|
License: GNU GPL v2
|
|
Group: System/Shells
|
|
Url: http://www.fishshell.org/
|
|
Source: http://www.fishshell.org/files/%{version}/%{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: ncurses-devel xorg-x11-libXext-devel xorg-x11-libXt-devel
|
|
Summary: Fish, the friendly interactive shell
|
|
|
|
%description
|
|
fish is a user friendly command line shell for UNIX-like operating systems such as Linux.
|
|
|
|
It's geared towards interactive use and its features are focused on user friendlieness and discoverability. The language syntax is simple but incompatible with other shell languages.
|
|
|
|
|
|
%define debug_package_requires %{name} = %{version}-%{release}
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
%__make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
pushd %{buildroot}%{_datadir}/doc
|
|
set -- *
|
|
%__mkdir_p %{buildroot}%{_docdir}/%{name}
|
|
%__mv "$@" %{buildroot}%{_docdir}/%{name}
|
|
popd
|
|
%find_lang %{name}
|
|
%__sed -i -e "s#%{_datadir}/doc#%{_docdir}/%{name}#" %{buildroot}%{_datadir}/%{name}/config.fish
|
|
|
|
%post
|
|
if [ -z "`grep %{_bindir}/fish /etc/shells`" ]; then
|
|
echo "%{_bindir}/fish" >> /etc/shells
|
|
fi
|
|
|
|
%clean
|
|
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%config(noreplace) %{_sysconfdir}/fish
|
|
%{_bindir}/*
|
|
%{_docdir}/fish
|
|
%{_datadir}/fish
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Sat Mar 28 2009 bitshuffler #suse@irc.freenode.org
|
|
- Initial RPM
|