%global srcname mailcap %global ubunturel ubuntu1 %global aliases see edit compose print %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif Name: run-mailcap License: Public Domain Version: 3.74 Release: %mkrel 1 Group: System/Base Summary: The run-mailcap script from Ubuntu's mailcap package Summary(eo): La skripto run-mailcap el la pako mailcap de Ubuntu URL: https://packages.ubuntu.com/search?keywords=%{srcname} Source: http://archive.ubuntu.com/ubuntu/pool/main/m/%{srcname}/%{srcname}_%{version}%{ubunturel}.tar.xz Patch0: run-mailcap-xdg-terminal-exec.diff BuildArch: noarch Requires: mailcap Requires: perl Requires: xdg-terminal-exec Recommends: bzip2 Recommends: file Recommends: xz Recommends: zstd %description The run-mailcap script from Ubuntu's mailcap package. Used in the default configuration of mc, by xdg-open when no suitable program is found, etc. %description -l eo La skripto run-mailcap el la pako mailcap de Ubuntu. Uzata en la apriora agordo de mc, de xdg-open kiam neniu taĆ­ga programo estas trovebla ktp. %prep %autosetup -p1 -n %{srcname} %build mv %{name}.man %{name}.1 for a in %{aliases}; do ln -s %{name} ${a} ln -s %{name}.1 ${a}.1 done %install mkdir -p %{buildroot}%{_bindir} cp run-mailcap %{aliases} %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1 cp *.1 %{buildroot}/%{_mandir}/man1 %files %{_bindir}/ %{_mandir}/man1/