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