]> git.pld-linux.org Git - packages/dic.git/blob - dic.spec
- mc subpackage requires dic
[packages/dic.git] / dic.spec
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
5 Release:        2
6 License:        GPL v2
7 Group:          Applications
8 Source0:        http://dl.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
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.219
15 Requires:       python-modules
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         mcextfs         %{_datadir}/mc/extfs/extfs.ini
20
21 %description
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.
26
27 %description -l hu.UTF-8
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.
31
32 %package mc
33 Summary:        Extfs plugin for Midnight Commander
34 Summary(hu.UTF-8):      Extfs plugin Midnight Commander-hez
35 Group:          Applications/Shells
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       mc
38
39 %description mc
40 Extfs plugin for Midnight Commander. In the running Midnight Commander
41 type "cd #mcdic".
42
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!
46
47 %package -n bash-completion-%{name}
48 Summary:        bash-completion to dic
49 Summary(hu.UTF-8):      Bash automatikus kiegészítés dic-hez
50 Group:          Applications/Shells
51 Requires:       %{name} = %{version}-%{release}
52 Requires:       bash-completion
53
54 %description -n bash-completion-%{name}
55 Bash-completion to dic.
56
57 %description -n bash-completion-%{name} -l hu.UTF-8
58 Bash automatikus kiegészítés dic-hez.
59
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
81 install -d $RPM_BUILD_ROOT%{_datadir}/mc/extfs
82 install build/scripts-2.6/mcdic $RPM_BUILD_ROOT%{_datadir}/mc/extfs
83
84 install -d $RPM_BUILD_ROOT/etc/bash_completion.d
85 install %{SOURCE1} $RPM_BUILD_ROOT/etc/bash_completion.d/dic
86
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}/*
99
100 %files mc
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_datadir}/mc/extfs/mcdic
103
104 %files -n bash-completion-%{name}
105 %defattr(644,root,root,755)
106 /etc/bash_completion.d/%{name}
107
108 %post mc
109 if [ -f %{mcextfs} ]; then
110         grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}
111 fi
This page took 0.084178 seconds and 3 git commands to generate.