]>
Commit | Line | Data |
---|---|---|
f93f86c6 | 1 | # TODO: |
657c88a8 | 2 | # - maybe create bash-completion |
f93f86c6 | 3 | # - mc subpackage: doesn't work the %%post. Why? |
3d87a45b ZU |
4 | Summary: Dic is a simple, console-based disk catalogizer |
5 | Summary(hu.UTF-8): Dic egy egyszerű, konzolos lemez katalogizáló | |
6 | Name: dic | |
7 | Version: 0.7 | |
f93f86c6 | 8 | Release: 1.7 |
3d87a45b ZU |
9 | License: GPL v2 |
10 | Group: Applications | |
11 | Source0: http://dl.sourceforge.net/dic/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: c604751a05298dad2492189e1f31ec21 | |
13 | URL: http://dic.sourceforge.net/ | |
14 | BuildRequires: python-devel | |
15 | BuildRequires: rpm-pythonprov | |
16 | # if py_postclean is used | |
17 | BuildRequires: rpmbuild(macros) >= 1.219 | |
18 | #Requires: python-libs | |
19 | Requires: python-modules | |
20 | #BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
f93f86c6 ZU |
23 | %define mcextfs %{_datadir}/mc/extfs/extfs.ini |
24 | ||
3d87a45b | 25 | %description |
6ad82abd ZU |
26 | Dic is a simple, console-based disk catalogizer. It can easily add |
27 | disks to the catalog, search in the catalog, search for files, | |
28 | automatically retrieve found files without requiring you to manually | |
29 | navigate through the source media, and more. | |
3d87a45b ZU |
30 | |
31 | %description -l hu.UTF-8 | |
6ad82abd ZU |
32 | Dic egy egyszerű, konzolos lemez katalogizáló. Könnyen adhatsz új |
33 | lemezeket a katalógushoz, kereshetsz a katalógusban, fájlok után, | |
34 | automatikusan átmásolhatod a fájlokat kézi navigálás nélkül, stb. | |
3d87a45b | 35 | |
887588e2 ZU |
36 | %package mc |
37 | Summary: Extfs plugin for Midnight Commander | |
38 | Summary(hu.UTF-8): Extfs plugin Midnight Commander-hez | |
f93f86c6 ZU |
39 | Group: Applications/Shells |
40 | Requires: mc | |
887588e2 ZU |
41 | |
42 | %description mc | |
f93f86c6 ZU |
43 | Extfs plugin for Midnight Commander. In the running Midnight Commander |
44 | type "cd #mcdic". | |
887588e2 | 45 | |
f93f86c6 ZU |
46 | %description mc -l hu.UTF-8 |
47 | Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben | |
48 | gépeld be a "cd #mcdic" sort! | |
887588e2 | 49 | |
3d87a45b ZU |
50 | %prep |
51 | %setup -q | |
52 | ||
53 | %build | |
54 | export CFLAGS="%{rpmcflags}" | |
55 | %{__python} setup.py build | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | %{__python} setup.py install \ | |
60 | --optimize=2 \ | |
61 | --root=$RPM_BUILD_ROOT | |
62 | ||
63 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
64 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
65 | %py_postclean | |
66 | ||
67 | install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5} | |
68 | install man/dic.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
69 | install man/dic.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
70 | ||
887588e2 ZU |
71 | install -d $RPM_BUILD_ROOT%{_datadir}/mc/extfs |
72 | install build/scripts-2.6/mcdic $RPM_BUILD_ROOT%{_datadir}/mc/extfs | |
73 | ||
3d87a45b ZU |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS ChangeLog NEWS README | |
80 | %dir %{_sysconfdir}/dic | |
81 | %{_mandir}/man1/dic.1.* | |
82 | %{_mandir}/man5/dic.conf.5.* | |
83 | %{_sysconfdir}/dic/* | |
84 | %attr(755,root,root) %{_bindir}/*dic | |
85 | %{py_sitescriptdir}/* | |
887588e2 ZU |
86 | |
87 | %files mc | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_datadir}/mc/extfs/mcdic | |
f93f86c6 ZU |
90 | |
91 | %post mc | |
1bedbe15 AG |
92 | if [ -f %{mcextfs} ]; then |
93 | grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs} | |
94 | fi |