File ponysay.spec of Package ponysay

#
# spec file for package ponysay
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           ponysay
Version:        3.0.2
Release:        0
Summary:        Cowsay reimplemention for ponies
License:        GPL-3.0+
Group:          Amusements/Toys/Other
Url:            https://github.com/erkin/ponysay
Source:         https://github.com/erkin/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  fdupes
BuildRequires:  python3-devel
BuildRequires:  texinfo
Requires:       python3
Requires(post): info
Requires(preun): info
BuildArch:      noarch

%description
ponysay as an awesome terminal application to display ponies speaking
messages in your terminal.
It has many features; you can use its info manual to explore them.

%prep
%setup -q

%build
# Nothing to build.

%install
python3 setup.py \
  --prefix=%{_prefix} \
  --dest-dir=%{buildroot} \
  --freedom=partial \
  --with-everything \
  --with-pdf=%{_docdir}/%{name}/ \
  install
rm -rf %{buildroot}%{_infodir}/dir %{buildroot}%{_datadir}/licenses/
%fdupes %{buildroot}/%{_datadir}/%{name}

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}-tool.info%{ext_info}
%install_info --info-dir=%{_infodir} %{_infodir}/ponythink.info%{ext_info}

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}-tool.info%{ext_info}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ponythink.info%{ext_info}

%files
%defattr(-,root,root)
%doc CHANGELOG CONTRIBUTING COPYING CREDITS LICENSE README.md
%{_bindir}/pony*
%{_datadir}/%{name}/
%{_infodir}/*.gz
%{_mandir}/*/
%{_datadir}/bash-completion/
%{_datadir}/zsh/
%{_datadir}/fish/

%changelog
openSUSE Build Service is sponsored by