1 Summary: Dic is a simple, console-based disk catalogizer
2 Summary(hu.UTF-8): Dic egy egyszerű, konzolos lemez katalogizáló
8 Source0: http://dl.sourceforge.net/dic/%{name}-%{version}.tar.bz2
9 # Source0-md5: c604751a05298dad2492189e1f31ec21
10 Source1: %{name}-bash-completion
11 URL: http://dic.sourceforge.net/
12 BuildRequires: python-devel
13 BuildRequires: rpm-pythonprov
14 BuildRequires: rpmbuild(macros) >= 1.219
15 Requires: python-modules
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define mcextfs %{_datadir}/mc/extfs/extfs.ini
22 Dic is a simple, console-based disk catalogizer. It can easily add
23 disks to the catalog, search in the catalog, search for files,
24 automatically retrieve found files without requiring you to manually
25 navigate through the source media, and more.
27 %description -l hu.UTF-8
28 Dic egy egyszerű, konzolos lemez katalogizáló. Könnyen adhatsz új
29 lemezeket a katalógushoz, kereshetsz a katalógusban, fájlok után,
30 automatikusan átmásolhatod a fájlokat kézi navigálás nélkül, stb.
33 Summary: Extfs plugin for Midnight Commander
34 Summary(hu.UTF-8): Extfs plugin Midnight Commander-hez
35 Group: Applications/Shells
36 Requires: %{name} = %{version}-%{release}
40 Extfs plugin for Midnight Commander. In the running Midnight Commander
43 %description mc -l hu.UTF-8
44 Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben
45 gépeld be a "cd #mcdic" sort!
47 %package -n bash-completion-%{name}
48 Summary: bash-completion to dic
49 Summary(hu.UTF-8): Bash automatikus kiegészítés dic-hez
50 Group: Applications/Shells
51 Requires: %{name} = %{version}-%{release}
52 Requires: bash-completion
54 %description -n bash-completion-%{name}
55 Bash-completion to dic.
57 %description -n bash-completion-%{name} -l hu.UTF-8
58 Bash automatikus kiegészítés dic-hez.
64 export CFLAGS="%{rpmcflags}"
65 %{__python} setup.py build
68 rm -rf $RPM_BUILD_ROOT
69 %{__python} setup.py install \
71 --root=$RPM_BUILD_ROOT
73 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
74 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
77 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
78 install man/dic.1 $RPM_BUILD_ROOT%{_mandir}/man1
79 install man/dic.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
81 install -d $RPM_BUILD_ROOT%{_datadir}/mc/extfs
82 install build/scripts-2.6/mcdic $RPM_BUILD_ROOT%{_datadir}/mc/extfs
84 install -d $RPM_BUILD_ROOT/etc/bash_completion.d
85 install %{SOURCE1} $RPM_BUILD_ROOT/etc/bash_completion.d/dic
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog NEWS README
93 %dir %{_sysconfdir}/dic
94 %{_mandir}/man1/dic.1.*
95 %{_mandir}/man5/dic.conf.5.*
97 %attr(755,root,root) %{_bindir}/*dic
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_datadir}/mc/extfs/mcdic
104 %files -n bash-completion-%{name}
105 %defattr(644,root,root,755)
106 /etc/bash_completion.d/%{name}
109 if [ -f %{mcextfs} ]; then
110 grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}