summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-August/007464.html
blob: c055390dcfcfd0cd149e3873535a0f319f84797b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] [134638] - clean spec
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5B134638%5D%20-%20clean%20spec&In-Reply-To=%3C1314110619.2119.21.camel%40akroma.ephaone.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="007463.html">
   <LINK REL="Next"  HREF="007467.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] [134638] - clean spec</H1>
    <B>Michael Scherer</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5B134638%5D%20-%20clean%20spec&In-Reply-To=%3C1314110619.2119.21.camel%40akroma.ephaone.org%3E"
       TITLE="[Mageia-dev] [134638] - clean spec">misc at zarb.org
       </A><BR>
    <I>Tue Aug 23 16:43:38 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="007463.html">[Mageia-dev] [134638] - clean spec
</A></li>
        <LI>Next message: <A HREF="007467.html">[Mageia-dev] [134638] - clean spec
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#7464">[ date ]</a>
              <a href="thread.html#7464">[ thread ]</a>
              <a href="subject.html#7464">[ subject ]</a>
              <a href="author.html#7464">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Le mardi 23 ao&#251;t 2011 &#224; 16:23 +0200, grenoya a &#233;crit :
&gt;<i> Le 23/08/11 15:44, Thierry Vignaud a &#233;crit :
</I>&gt;<i> &gt; On 21 August 2011 15:44, Colin Guthrie&lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>&gt;  wrote:
</I>&gt;<i> &gt;&gt; I do have to wonder why those macros are used... it seems quite trivial
</I>&gt;<i> &gt;&gt; to use the actual commands directly and that ultimately increases
</I>&gt;<i> &gt;&gt; portability (which maybe isn't a major concern, but all the same)
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; What are the general thoughts on this?
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; As a 12+ years maintainer of mdv/mdv/mga, I think most spec don't use those.
</I>&gt;<i> &gt; They don't bring anything anyway.
</I>&gt;<i> &gt; If only, we could standardize on the most usefull macros between distro at first
</I>&gt;<i> &gt; (eg %make vs make %{?_smp_mflags})
</I>&gt;<i> 
</I>&gt;<i> '%foo' commands are wrappers.
</I>&gt;<i> Like '%make' is a wrapper for &quot;make -j4&quot; (parralel compilation on 4 nodes)
</I>&gt;<i> It can be quicker to build with the command, but in some cases (I met 
</I>&gt;<i> some) it brakes the build.
</I>&gt;<i> 
</I>&gt;<i>  From my point of view (I am not packager since long) commands are great 
</I>&gt;<i> tools, it eases our work a lot :)
</I>&gt;<i> So I agree with Tv: we should use them every time it is possible. At 
</I>&gt;<i> least the most commons.
</I>
the problem is that we are not sure when there is a wrapper, and when
there is one and it doesn't nothing more, they obscure the fact that rpm
is just a shell script + metadata.  I think for some people, this look
like magic :)

So when the macro do something more, yes we need to use it.
If not, and if we want to follow others distribution, we should take a
look at their policy 

I found the one of Fedora on
<A HREF="http://fedoraproject.org/wiki/Packaging:Guidelines#Macros">http://fedoraproject.org/wiki/Packaging:Guidelines#Macros</A> , and
basically, they say &quot;use rm rather than %{_rm}&quot;. 

If someone can find the one of Suse or others, that would help use to
see if a consensus emerge

-- 
Michael Scherer

</PRE>















<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="007463.html">[Mageia-dev] [134638] - clean spec
</A></li>
	<LI>Next message: <A HREF="007467.html">[Mageia-dev] [134638] - clean spec
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#7464">[ date ]</a>
              <a href="thread.html#7464">[ thread ]</a>
              <a href="subject.html#7464">[ subject ]</a>
              <a href="author.html#7464">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>