]> git.pld-linux.org Git - packages/dic.git/commitdiff
- %%post mc
authorZsolt Udvari <uzsolt@pld-linux.org>
Wed, 22 Jul 2009 10:17:41 +0000 (10:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- verbose description to mc subpackage

Changed files:
    dic.spec -> 1.5

dic.spec

index 907f54abda2ac63b992f44bbcddd75182f50578c..ac00c1ef88f1f671fcd165913b2f9cea05097fd7 100644 (file)
--- a/dic.spec
+++ b/dic.spec
@@ -1,11 +1,11 @@
-# TODO: 
+# TODO:
 # - maybe create bash-completion
-# - mc subpackage: doesn't work with mc, maybe need edit mc's config files
+# - mc subpackage: doesn't work the %%post. Why?
 Summary:       Dic is a simple, console-based disk catalogizer
 Summary(hu.UTF-8):     Dic egy egyszerű, konzolos lemez katalogizáló
 Name:          dic
 Version:       0.7
-Release:       1.5     
+Release:       1.7
 License:       GPL v2
 Group:         Applications
 Source0:       http://dl.sourceforge.net/dic/%{name}-%{version}.tar.bz2
@@ -20,6 +20,8 @@ Requires:     python-modules
 #BuildArch:    noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define        mcextfs %{_datadir}/mc/extfs/extfs.ini
+
 %description
 Dic is a simple, console-based disk catalogizer. It can easily add
 disks to the catalog, search in the catalog, search for files,
@@ -34,13 +36,16 @@ automatikusan átmásolhatod a fájlokat kézi navigálás nélkül, stb.
 %package mc
 Summary:       Extfs plugin for Midnight Commander
 Summary(hu.UTF-8):     Extfs plugin Midnight Commander-hez
-Group: Applications/Shells
+Group:         Applications/Shells
+Requires:      mc
 
 %description mc
-Extfs plugin for Midnight Commander.
+Extfs plugin for Midnight Commander. In the running Midnight Commander
+type "cd #mcdic".
 
-%description -l hu.UTF-8 mc
-Extfs plugin Midnight Commander-hez.
+%description mc -l hu.UTF-8
+Extfs plugin Midnight Commander-hez. A futó Midnight Commander-ben
+gépeld be a "cd #mcdic" sort!
 
 %prep
 %setup -q
@@ -82,3 +87,6 @@ rm -rf $RPM_BUILD_ROOT
 %files mc
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_datadir}/mc/extfs/mcdic
+
+%post mc
+grep mcdic %{mcextfs} &> /dev/null || echo -e "\n# dic disk catalogizer\nmcdic:\n" >> %{mcextfs}
This page took 0.404972 seconds and 4 git commands to generate.