packages: dic/dic.spec - %%post mc - verbose description to mc subpackage

uzsolt uzsolt at pld-linux.org
Wed Jul 22 12:17:48 CEST 2009


Author: uzsolt                       Date: Wed Jul 22 10:17:48 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- %%post mc
- verbose description to mc subpackage

---- Files affected:
packages/dic:
   dic.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/dic/dic.spec
diff -u packages/dic/dic.spec:1.4 packages/dic/dic.spec:1.5
--- packages/dic/dic.spec:1.4	Tue Jul 21 20:26:55 2009
+++ packages/dic/dic.spec	Wed Jul 22 12:17:41 2009
@@ -1,12 +1,12 @@
 # $Revision$, $Date$
-# 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
@@ -21,6 +21,8 @@
 #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,
@@ -35,13 +37,16 @@
 %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
@@ -84,12 +89,19 @@
 %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}
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2009/07/22 10:17:41  uzsolt
+- %%post mc
+- verbose description to mc subpackage
+
 Revision 1.4  2009/07/21 18:26:55  uzsolt
 - mc subpackage
 - mc-specific todo
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dic/dic.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list