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://downloads.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 >= 2.7
13 BuildRequires: rpm-pythonprov
14 BuildRequires: rpmbuild(macros) >= 1.219
15 Requires: python-modules
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Dic is a simple, console-based disk catalogizer. It can easily add
20 disks to the catalog, search in the catalog, search for files,
21 automatically retrieve found files without requiring you to manually
22 navigate through the source media, and more.
24 %description -l hu.UTF-8
25 Dic egy egyszerű, konzolos lemez katalogizáló. Könnyen adhatsz új
26 lemezeket a katalógushoz, kereshetsz a katalógusban, fájlok után,
27 automatikusan átmásolhatod a fájlokat kézi navigálás nélkül, stb.
29 %package -n mc-plugin-dic
30 Summary: Extfs plugin for Midnight Commander
31 Summary(hu.UTF-8): Extfs plugin Midnight Commander-hez
32 Group: Applications/Shells
33 Requires: %{name} = %{version}-%{release}
37 %description -n mc-plugin-dic
38 Extfs plugin for Midnight Commander. In the running Midnight Commander
41 %description -n mc-plugin-dic -l hu.UTF-8
42 Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben
43 gépeld be a "cd #mcdic" sort!
45 %package -n bash-completion-%{name}
46 Summary: bash-completion to dic
47 Summary(hu.UTF-8): Bash automatikus kiegészítés dic-hez
48 Group: Applications/Shells
49 Requires: %{name} = %{version}-%{release}
50 Requires: bash-completion
52 %description -n bash-completion-%{name}
53 Bash-completion to dic.
55 %description -n bash-completion-%{name} -l hu.UTF-8
56 Bash automatikus kiegészítés dic-hez.
62 export CFLAGS="%{rpmcflags}"
63 %{__python} setup.py build
66 rm -rf $RPM_BUILD_ROOT
67 %{__python} setup.py install \
69 --root=$RPM_BUILD_ROOT
71 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
72 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
75 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
76 install man/dic.1 $RPM_BUILD_ROOT%{_mandir}/man1
77 install man/dic.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
79 install -d $RPM_BUILD_ROOT%{_libdir}/mc/extfs.d
80 install build/scripts-2.7/mcdic $RPM_BUILD_ROOT%{_libdir}/mc/extfs.d
82 install -d $RPM_BUILD_ROOT/etc/bash_completion.d
83 install %{SOURCE1} $RPM_BUILD_ROOT/etc/bash_completion.d/dic
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog NEWS README
91 %dir %{_sysconfdir}/dic
92 %{_mandir}/man1/dic.1.*
93 %{_mandir}/man5/dic.conf.5.*
95 %attr(755,root,root) %{_bindir}/*dic
98 %files -n mc-plugin-dic
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/mc/extfs.d/mcdic
102 %files -n bash-completion-%{name}
103 %defattr(644,root,root,755)
104 /etc/bash_completion.d/%{name}