Group: Applications
Source0: http://dl.sourceforge.net/dic/%{name}-%{version}.tar.bz2
# Source0-md5: c604751a05298dad2492189e1f31ec21
+Source1: %{name}-bash-completion
URL: http://dic.sourceforge.net/
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben
gépeld be a "cd #mcdic" sort!
+%package bash-completion
+Summary: bash-completion to dic
+Summary(hu.UTF-8): Bash automatikus kiegészítés dic-hez
+Group: Applications/Shells
+Requires: %{name}
+
+%description bash-completion
+Bash-completion to dic.
+
+%description bash-completion -l hu.UTF-8
+Bash automatikus kiegészítés dic-hez.
+
%prep
%setup -q
install -d $RPM_BUILD_ROOT%{_datadir}/mc/extfs
install build/scripts-2.6/mcdic $RPM_BUILD_ROOT%{_datadir}/mc/extfs
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/dic
+
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) %{_datadir}/mc/extfs/mcdic
+%files bash-completion
+%defattr(644,root,root,755)
+%{_sysconfdir}/bash_completion.d/%{name}
+
%post mc
if [ -f %{mcextfs} ]; then
grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}