]> git.pld-linux.org Git - packages/dic.git/blob - dic.spec
- make compatible with python 2.7
[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:        7
6 License:        GPL v2
7 Group:          Applications
8 Source0:        http://downloads.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 >= 2.7
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.219
15 Requires:       python-modules
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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.
23
24 %description -l hu.UTF-8
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.
28
29 %package -n mc-plugin-dic
30 Summary:        Extfs plugin for Midnight Commander
31 Summary(hu.UTF-8):      Extfs plugin Midnight Commander-hez
32 Group:          Applications/Shells
33 Requires:       %{name} = %{version}-%{release}
34 Requires:       mc
35 Obsoletes:      dic-dic
36
37 %description -n mc-plugin-dic
38 Extfs plugin for Midnight Commander. In the running Midnight Commander
39 type "cd #mcdic".
40
41 %description -n mc-plugin-dic -l hu.UTF-8
42 Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben
43 gépeld be a "cd #mcdic" sort!
44
45 %package -n bash-completion-%{name}
46 Summary:        bash-completion to dic
47 Summary(hu.UTF-8):      Bash automatikus kiegészítés dic-hez
48 Group:          Applications/Shells
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       bash-completion
51
52 %description -n bash-completion-%{name}
53 Bash-completion to dic.
54
55 %description -n bash-completion-%{name} -l hu.UTF-8
56 Bash automatikus kiegészítés dic-hez.
57
58 %prep
59 %setup -q
60
61 %build
62 export CFLAGS="%{rpmcflags}"
63 %{__python} setup.py build
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 %{__python} setup.py install \
68         --optimize=2 \
69         --root=$RPM_BUILD_ROOT
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}
76 install man/dic.1 $RPM_BUILD_ROOT%{_mandir}/man1
77 install man/dic.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
78
79 install -d $RPM_BUILD_ROOT%{_libdir}/mc/extfs.d
80 install build/scripts-2.7/mcdic $RPM_BUILD_ROOT%{_libdir}/mc/extfs.d
81
82 install -d $RPM_BUILD_ROOT/etc/bash_completion.d
83 install %{SOURCE1} $RPM_BUILD_ROOT/etc/bash_completion.d/dic
84
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}/*
97
98 %files -n mc-plugin-dic
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/mc/extfs.d/mcdic
101
102 %files -n bash-completion-%{name}
103 %defattr(644,root,root,755)
104 /etc/bash_completion.d/%{name}
This page took 0.035092 seconds and 4 git commands to generate.