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ût 2011 à 16:23 +0200, grenoya a écrit :
><i> Le 23/08/11 15:44, Thierry Vignaud a écrit :
</I>><i> > On 21 August 2011 15:44, Colin Guthrie<<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>> wrote:
</I>><i> >> I do have to wonder why those macros are used... it seems quite trivial
</I>><i> >> to use the actual commands directly and that ultimately increases
</I>><i> >> portability (which maybe isn't a major concern, but all the same)
</I>><i> >>
</I>><i> >> What are the general thoughts on this?
</I>><i> >
</I>><i> > As a 12+ years maintainer of mdv/mdv/mga, I think most spec don't use those.
</I>><i> > They don't bring anything anyway.
</I>><i> > If only, we could standardize on the most usefull macros between distro at first
</I>><i> > (eg %make vs make %{?_smp_mflags})
</I>><i>
</I>><i> '%foo' commands are wrappers.
</I>><i> Like '%make' is a wrapper for "make -j4" (parralel compilation on 4 nodes)
</I>><i> It can be quicker to build with the command, but in some cases (I met
</I>><i> some) it brakes the build.
</I>><i>
</I>><i> From my point of view (I am not packager since long) commands are great
</I>><i> tools, it eases our work a lot :)
</I>><i> So I agree with Tv: we should use them every time it is possible. At
</I>><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 "use rm rather than %{_rm}".
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>
|