]>
Commit | Line | Data |
---|---|---|
f93f86c6 | 1 | # TODO: |
657c88a8 | 2 | # - maybe create bash-completion |
3d87a45b ZU |
3 | Summary: Dic is a simple, console-based disk catalogizer |
4 | Summary(hu.UTF-8): Dic egy egyszerű, konzolos lemez katalogizáló | |
5 | Name: dic | |
6 | Version: 0.7 | |
2985e994 | 7 | Release: 2 |
3d87a45b ZU |
8 | License: GPL v2 |
9 | Group: Applications | |
10 | Source0: http://dl.sourceforge.net/dic/%{name}-%{version}.tar.bz2 | |
11 | # Source0-md5: c604751a05298dad2492189e1f31ec21 | |
e174f4a8 | 12 | Source1: %{name}-bash-completion |
3d87a45b ZU |
13 | URL: http://dic.sourceforge.net/ |
14 | BuildRequires: python-devel | |
15 | BuildRequires: rpm-pythonprov | |
3d87a45b | 16 | BuildRequires: rpmbuild(macros) >= 1.219 |
3d87a45b | 17 | Requires: python-modules |
2985e994 | 18 | BuildArch: noarch |
3d87a45b ZU |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
f93f86c6 ZU |
21 | %define mcextfs %{_datadir}/mc/extfs/extfs.ini |
22 | ||
3d87a45b | 23 | %description |
6ad82abd ZU |
24 | Dic is a simple, console-based disk catalogizer. It can easily add |
25 | disks to the catalog, search in the catalog, search for files, | |
26 | automatically retrieve found files without requiring you to manually | |
27 | navigate through the source media, and more. | |
3d87a45b ZU |
28 | |
29 | %description -l hu.UTF-8 | |
6ad82abd ZU |
30 | Dic egy egyszerű, konzolos lemez katalogizáló. Könnyen adhatsz új |
31 | lemezeket a katalógushoz, kereshetsz a katalógusban, fájlok után, | |
32 | automatikusan átmásolhatod a fájlokat kézi navigálás nélkül, stb. | |
3d87a45b | 33 | |
887588e2 ZU |
34 | %package mc |
35 | Summary: Extfs plugin for Midnight Commander | |
36 | Summary(hu.UTF-8): Extfs plugin Midnight Commander-hez | |
f93f86c6 ZU |
37 | Group: Applications/Shells |
38 | Requires: mc | |
887588e2 ZU |
39 | |
40 | %description mc | |
f93f86c6 ZU |
41 | Extfs plugin for Midnight Commander. In the running Midnight Commander |
42 | type "cd #mcdic". | |
887588e2 | 43 | |
f93f86c6 ZU |
44 | %description mc -l hu.UTF-8 |
45 | Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben | |
46 | gépeld be a "cd #mcdic" sort! | |
887588e2 | 47 | |
e174f4a8 ZU |
48 | %package bash-completion |
49 | Summary: bash-completion to dic | |
50 | Summary(hu.UTF-8): Bash automatikus kiegészítés dic-hez | |
51 | Group: Applications/Shells | |
52 | Requires: %{name} | |
53 | ||
54 | %description bash-completion | |
55 | Bash-completion to dic. | |
56 | ||
57 | %description bash-completion -l hu.UTF-8 | |
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 | ||
e174f4a8 ZU |
84 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
85 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/dic | |
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 | |
e174f4a8 ZU |
104 | %files bash-completion |
105 | %defattr(644,root,root,755) | |
106 | %{_sysconfdir}/bash_completion.d/%{name} | |
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 |