From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2012-December/020931.html | 96 ++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 zarb-ml/mageia-dev/2012-December/020931.html (limited to 'zarb-ml/mageia-dev/2012-December/020931.html') diff --git a/zarb-ml/mageia-dev/2012-December/020931.html b/zarb-ml/mageia-dev/2012-December/020931.html new file mode 100644 index 000000000..ba822c742 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-December/020931.html @@ -0,0 +1,96 @@ + + + + [Mageia-dev] Another problem with new rpm + + + + + + + + + +

[Mageia-dev] Another problem with new rpm

+ Pascal Terjan + pterjan at gmail.com +
+ Wed Dec 26 19:47:37 CET 2012 +

+
+ +
On Wed, Dec 26, 2012 at 5:46 PM, Jani Välimaa <jani.valimaa at gmail.com> wrote:
+> On Wed, 26 Dec 2012 14:13:44 +0000
+> Pascal Terjan <pterjan at gmail.com> wrote:
+>
+>> It seems you can no longer use a variable not coming from a tag as a
+>> parameter of %setup
+>>
+>> The following spec leads to error: line 88: Bad %setup option -n:
+>> missing argument
+>>
+>> %define pre     rc5
+>> %define rel     5
+>>
+>> %if %pre
+>> %define release         %mkrel 0.%{pre}.%{rel}
+>> %define distname        %{name}-%{version}-%{pre}.tar.bz2
+>> %define dirname         %{name}-%{version}~%{pre}
+>> %else
+>> %define release         %mkrel %{rel}
+>> %define distname        %{name}-%{version}.tar.bz2
+>> %define dirname         %{name}-%{version}
+>> %endif
+>>
+>> [...]
+>>
+>> %setup -q -n %{dirname}
+>>
+>> So far 8 packages are affected
+>
+> Similar approach works at least for openttd.
+>
+> However macro isn't called %dirname in openttd.spec. What if you
+> rename %dirname to something else?
+
+Ah that would make sense :-)
+
+ + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1