]>
Commit | Line | Data |
---|---|---|
3d87a45b ZU |
1 | Summary: Dic is a simple, console-based disk catalogizer |
2 | Summary(hu.UTF-8): Dic egy egyszerű, konzolos lemez katalogizáló | |
3 | Name: dic | |
4 | Version: 0.7 | |
2985e994 | 5 | Release: 2 |
3d87a45b ZU |
6 | License: GPL v2 |
7 | Group: Applications | |
8 | Source0: http://dl.sourceforge.net/dic/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: c604751a05298dad2492189e1f31ec21 | |
e174f4a8 | 10 | Source1: %{name}-bash-completion |
3d87a45b ZU |
11 | URL: http://dic.sourceforge.net/ |
12 | BuildRequires: python-devel | |
13 | BuildRequires: rpm-pythonprov | |
3d87a45b | 14 | BuildRequires: rpmbuild(macros) >= 1.219 |
3d87a45b | 15 | Requires: python-modules |
2985e994 | 16 | BuildArch: noarch |
3d87a45b ZU |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
ee097a9d | 19 | %define mcextfs %{_datadir}/mc/extfs/extfs.ini |
f93f86c6 | 20 | |
3d87a45b | 21 | %description |
6ad82abd ZU |
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. | |
3d87a45b ZU |
26 | |
27 | %description -l hu.UTF-8 | |
6ad82abd ZU |
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. | |
3d87a45b | 31 | |
887588e2 ZU |
32 | %package mc |
33 | Summary: Extfs plugin for Midnight Commander | |
34 | Summary(hu.UTF-8): Extfs plugin Midnight Commander-hez | |
f93f86c6 | 35 | Group: Applications/Shells |
7ed60583 | 36 | Requires: %{name} = %{version}-%{release} |
f93f86c6 | 37 | Requires: mc |
887588e2 ZU |
38 | |
39 | %description mc | |
f93f86c6 ZU |
40 | Extfs plugin for Midnight Commander. In the running Midnight Commander |
41 | type "cd #mcdic". | |
887588e2 | 42 | |
f93f86c6 ZU |
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! | |
887588e2 | 46 | |
ee097a9d | 47 | %package -n bash-completion-%{name} |
e174f4a8 ZU |
48 | Summary: bash-completion to dic |
49 | Summary(hu.UTF-8): Bash automatikus kiegészítés dic-hez | |
50 | Group: Applications/Shells | |
ee097a9d ER |
51 | Requires: %{name} = %{version}-%{release} |
52 | Requires: bash-completion | |
e174f4a8 | 53 | |
ee097a9d | 54 | %description -n bash-completion-%{name} |
e174f4a8 ZU |
55 | Bash-completion to dic. |
56 | ||
ee097a9d | 57 | %description -n bash-completion-%{name} -l hu.UTF-8 |
e174f4a8 ZU |
58 | Bash automatikus kiegészítés dic-hez. |
59 | ||
3d87a45b ZU |
60 | %prep |
61 | %setup -q | |
62 | ||
63 | %build | |
64 | export CFLAGS="%{rpmcflags}" | |
65 | %{__python} setup.py build | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | %{__python} setup.py install \ | |
70 | --optimize=2 \ | |
71 | --root=$RPM_BUILD_ROOT | |
72 | ||
73 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
74 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
75 | %py_postclean | |
76 | ||
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 | |
80 | ||
887588e2 ZU |
81 | install -d $RPM_BUILD_ROOT%{_datadir}/mc/extfs |
82 | install build/scripts-2.6/mcdic $RPM_BUILD_ROOT%{_datadir}/mc/extfs | |
83 | ||
ee097a9d ER |
84 | install -d $RPM_BUILD_ROOT/etc/bash_completion.d |
85 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/bash_completion.d/dic | |
e174f4a8 | 86 | |
3d87a45b ZU |
87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %files | |
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.* | |
96 | %{_sysconfdir}/dic/* | |
97 | %attr(755,root,root) %{_bindir}/*dic | |
98 | %{py_sitescriptdir}/* | |
887588e2 ZU |
99 | |
100 | %files mc | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_datadir}/mc/extfs/mcdic | |
f93f86c6 | 103 | |
ee097a9d | 104 | %files -n bash-completion-%{name} |
e174f4a8 | 105 | %defattr(644,root,root,755) |
ee097a9d | 106 | /etc/bash_completion.d/%{name} |
e174f4a8 | 107 | |
f93f86c6 | 108 | %post mc |
1bedbe15 AG |
109 | if [ -f %{mcextfs} ]; then |
110 | grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs} | |
111 | fi |