]>
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 | |
b95c4426 | 5 | Release: 7 |
3d87a45b ZU |
6 | License: GPL v2 |
7 | Group: Applications | |
2ff4a3b9 | 8 | Source0: http://downloads.sourceforge.net/dic/%{name}-%{version}.tar.bz2 |
3d87a45b | 9 | # Source0-md5: c604751a05298dad2492189e1f31ec21 |
e174f4a8 | 10 | Source1: %{name}-bash-completion |
3d87a45b | 11 | URL: http://dic.sourceforge.net/ |
40c86390 | 12 | BuildRequires: python-devel >= 1:2.7 |
3d87a45b | 13 | BuildRequires: rpm-pythonprov |
fd5ee289 | 14 | BuildRequires: rpmbuild(macros) >= 1.710 |
3d87a45b | 15 | Requires: python-modules |
3d87a45b ZU |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
6ad82abd ZU |
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. | |
3d87a45b ZU |
23 | |
24 | %description -l hu.UTF-8 | |
6ad82abd ZU |
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. | |
3d87a45b | 28 | |
2ff4a3b9 | 29 | %package -n mc-plugin-dic |
887588e2 ZU |
30 | Summary: Extfs plugin for Midnight Commander |
31 | Summary(hu.UTF-8): Extfs plugin Midnight Commander-hez | |
f93f86c6 | 32 | Group: Applications/Shells |
7ed60583 | 33 | Requires: %{name} = %{version}-%{release} |
f93f86c6 | 34 | Requires: mc |
2ff4a3b9 | 35 | Obsoletes: dic-dic |
887588e2 | 36 | |
2ff4a3b9 | 37 | %description -n mc-plugin-dic |
f93f86c6 ZU |
38 | Extfs plugin for Midnight Commander. In the running Midnight Commander |
39 | type "cd #mcdic". | |
887588e2 | 40 | |
2ff4a3b9 | 41 | %description -n mc-plugin-dic -l hu.UTF-8 |
f93f86c6 ZU |
42 | Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben |
43 | gépeld be a "cd #mcdic" sort! | |
887588e2 | 44 | |
ee097a9d | 45 | %package -n bash-completion-%{name} |
e174f4a8 ZU |
46 | Summary: bash-completion to dic |
47 | Summary(hu.UTF-8): Bash automatikus kiegészítés dic-hez | |
48 | Group: Applications/Shells | |
ee097a9d ER |
49 | Requires: %{name} = %{version}-%{release} |
50 | Requires: bash-completion | |
45633410 ER |
51 | %if "%{_rpmversion}" >= "5" |
52 | BuildArch: noarch | |
53 | %endif | |
e174f4a8 | 54 | |
ee097a9d | 55 | %description -n bash-completion-%{name} |
e174f4a8 ZU |
56 | Bash-completion to dic. |
57 | ||
ee097a9d | 58 | %description -n bash-completion-%{name} -l hu.UTF-8 |
e174f4a8 ZU |
59 | Bash automatikus kiegészítés dic-hez. |
60 | ||
3d87a45b ZU |
61 | %prep |
62 | %setup -q | |
63 | ||
64 | %build | |
0a017ec9 | 65 | %py_build |
3d87a45b ZU |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
0a017ec9 | 69 | %py_install |
3d87a45b ZU |
70 | |
71 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
72 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
73 | %py_postclean | |
74 | ||
75 | install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5} | |
40c86390 ER |
76 | cp -a man/dic.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
77 | cp -a man/dic.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
3d87a45b | 78 | |
2ff4a3b9 | 79 | install -d $RPM_BUILD_ROOT%{_libdir}/mc/extfs.d |
40c86390 | 80 | install -p build/scripts-2.7/mcdic $RPM_BUILD_ROOT%{_libdir}/mc/extfs.d |
887588e2 | 81 | |
ee097a9d | 82 | install -d $RPM_BUILD_ROOT/etc/bash_completion.d |
40c86390 | 83 | cp -a %{SOURCE1} $RPM_BUILD_ROOT/etc/bash_completion.d/dic |
e174f4a8 | 84 | |
3d87a45b ZU |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
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.* | |
94 | %{_sysconfdir}/dic/* | |
95 | %attr(755,root,root) %{_bindir}/*dic | |
96 | %{py_sitescriptdir}/* | |
887588e2 | 97 | |
2ff4a3b9 | 98 | %files -n mc-plugin-dic |
887588e2 | 99 | %defattr(644,root,root,755) |
2ff4a3b9 | 100 | %attr(755,root,root) %{_libdir}/mc/extfs.d/mcdic |
f93f86c6 | 101 | |
ee097a9d | 102 | %files -n bash-completion-%{name} |
e174f4a8 | 103 | %defattr(644,root,root,755) |
ee097a9d | 104 | /etc/bash_completion.d/%{name} |