]> git.pld-linux.org Git - packages/dic.git/blame - dic.spec
- bash-completion subpackage
[packages/dic.git] / dic.spec
CommitLineData
f93f86c6 1# TODO:
657c88a8 2# - maybe create bash-completion
3d87a45b
ZU
3Summary: Dic is a simple, console-based disk catalogizer
4Summary(hu.UTF-8): Dic egy egyszerű, konzolos lemez katalogizáló
5Name: dic
6Version: 0.7
2985e994 7Release: 2
3d87a45b
ZU
8License: GPL v2
9Group: Applications
10Source0: http://dl.sourceforge.net/dic/%{name}-%{version}.tar.bz2
11# Source0-md5: c604751a05298dad2492189e1f31ec21
e174f4a8 12Source1: %{name}-bash-completion
3d87a45b
ZU
13URL: http://dic.sourceforge.net/
14BuildRequires: python-devel
15BuildRequires: rpm-pythonprov
3d87a45b 16BuildRequires: rpmbuild(macros) >= 1.219
3d87a45b 17Requires: python-modules
2985e994 18BuildArch: noarch
3d87a45b
ZU
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
f93f86c6
ZU
21%define mcextfs %{_datadir}/mc/extfs/extfs.ini
22
3d87a45b 23%description
6ad82abd
ZU
24Dic is a simple, console-based disk catalogizer. It can easily add
25disks to the catalog, search in the catalog, search for files,
26automatically retrieve found files without requiring you to manually
27navigate through the source media, and more.
3d87a45b
ZU
28
29%description -l hu.UTF-8
6ad82abd
ZU
30Dic egy egyszerű, konzolos lemez katalogizáló. Könnyen adhatsz új
31lemezeket a katalógushoz, kereshetsz a katalógusban, fájlok után,
32automatikusan átmásolhatod a fájlokat kézi navigálás nélkül, stb.
3d87a45b 33
887588e2
ZU
34%package mc
35Summary: Extfs plugin for Midnight Commander
36Summary(hu.UTF-8): Extfs plugin Midnight Commander-hez
f93f86c6
ZU
37Group: Applications/Shells
38Requires: mc
887588e2
ZU
39
40%description mc
f93f86c6
ZU
41Extfs plugin for Midnight Commander. In the running Midnight Commander
42type "cd #mcdic".
887588e2 43
f93f86c6
ZU
44%description mc -l hu.UTF-8
45Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben
46gépeld be a "cd #mcdic" sort!
887588e2 47
e174f4a8
ZU
48%package bash-completion
49Summary: bash-completion to dic
50Summary(hu.UTF-8): Bash automatikus kiegészítés dic-hez
51Group: Applications/Shells
52Requires: %{name}
53
54%description bash-completion
55Bash-completion to dic.
56
57%description bash-completion -l hu.UTF-8
58Bash automatikus kiegészítés dic-hez.
59
3d87a45b
ZU
60%prep
61%setup -q
62
63%build
64export CFLAGS="%{rpmcflags}"
65%{__python} setup.py build
66
67%install
68rm -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
77install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5}
78install man/dic.1 $RPM_BUILD_ROOT%{_mandir}/man1
79install man/dic.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
80
887588e2
ZU
81install -d $RPM_BUILD_ROOT%{_datadir}/mc/extfs
82install build/scripts-2.6/mcdic $RPM_BUILD_ROOT%{_datadir}/mc/extfs
83
e174f4a8
ZU
84install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
85install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/dic
86
3d87a45b
ZU
87%clean
88rm -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
109if [ -f %{mcextfs} ]; then
110 grep -q mcdic %{mcextfs} || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}
111fi
This page took 0.183081 seconds and 4 git commands to generate.