Mailinglist Archive: opensuse-bugs (5398 mails)
| < Previous | Next > |
[Bug 279869] New: Extending yast2-devtools - create-spec
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Fri, 1 Jun 2007 02:46:18 -0600 (MDT)
- Message-id: <bug-279869-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=279869
Summary: Extending yast2-devtools - create-spec
Product: openSUSE 10.3
Version: Alpha 4plus
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: YaST2
AssignedTo: mvidner@xxxxxxxxxx
ReportedBy: ke@xxxxxxxxxx
QAContact: jsrain@xxxxxxxxxx
CC: coolo@xxxxxxxxxx
[Adding to bugzilla to make sure we do not forget about it.]
Ahoj Martin,
I once again need an extension to create-spec. coolo wants me to add a
language tag to the %files list. In the end, it must look as follows:
%files
..
%lang($LL) /usr/share/YaST2/locale
..
Since I am not familiar with perl, I can only propose a sed hack (the
tricky part is to throw away the country code). I hope my assumption is
right that only yast2-trans packages use @localedir@:
Index: create-spec
===================================================================
--- create-spec (revision 36673)
+++ create-spec (working copy)
@@ -47,7 +47,8 @@
$provides_locale = "";
if ($RPMNAME =~ /^yast2-trans-(.*)/) {
- $provides_locale = "Provides:\tlocale(yast2:$1)\n"
+ $provides_locale = "Provides:\tlocale(yast2:$1)\n";
+ $my_iso639 = `echo -n $1 | sed -e 's/_.*//'`;
}
if ($#ARGV > 0)
@@ -204,7 +205,7 @@
"\@ydatadir\@" => "${yast2dir}/data",
"\@imagedir\@" => "${yast2dir}/images",
"\@themedir\@" => "${yast2dir}/theme",
- "\@localedir\@" => "${yast2dir}/locale",
+ "\@localedir\@" => "%lang($my_iso639) ${yast2dir}/locale",
"\@clientdir\@" => "${yast2dir}/clients",
"\@moduledir\@" => "${yast2dir}/modules",
"\@yncludedir\@" => "${yast2dir}/include",
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Summary: Extending yast2-devtools - create-spec
Product: openSUSE 10.3
Version: Alpha 4plus
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: YaST2
AssignedTo: mvidner@xxxxxxxxxx
ReportedBy: ke@xxxxxxxxxx
QAContact: jsrain@xxxxxxxxxx
CC: coolo@xxxxxxxxxx
[Adding to bugzilla to make sure we do not forget about it.]
Ahoj Martin,
I once again need an extension to create-spec. coolo wants me to add a
language tag to the %files list. In the end, it must look as follows:
%files
..
%lang($LL) /usr/share/YaST2/locale
..
Since I am not familiar with perl, I can only propose a sed hack (the
tricky part is to throw away the country code). I hope my assumption is
right that only yast2-trans packages use @localedir@:
Index: create-spec
===================================================================
--- create-spec (revision 36673)
+++ create-spec (working copy)
@@ -47,7 +47,8 @@
$provides_locale = "";
if ($RPMNAME =~ /^yast2-trans-(.*)/) {
- $provides_locale = "Provides:\tlocale(yast2:$1)\n"
+ $provides_locale = "Provides:\tlocale(yast2:$1)\n";
+ $my_iso639 = `echo -n $1 | sed -e 's/_.*//'`;
}
if ($#ARGV > 0)
@@ -204,7 +205,7 @@
"\@ydatadir\@" => "${yast2dir}/data",
"\@imagedir\@" => "${yast2dir}/images",
"\@themedir\@" => "${yast2dir}/theme",
- "\@localedir\@" => "${yast2dir}/locale",
+ "\@localedir\@" => "%lang($my_iso639) ${yast2dir}/locale",
"\@clientdir\@" => "${yast2dir}/clients",
"\@moduledir\@" => "${yast2dir}/modules",
"\@yncludedir\@" => "${yast2dir}/include",
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
| < Previous | Next > |