summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/20110117/002210.html
blob: f102915373cce13879f5a6bad6dd4f820d32394c (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Importing RPM Spec File Syntax
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Importing%20RPM%20Spec%20File%20Syntax&In-Reply-To=%3C4D34BD88.40609%40colin.guthr.ie%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="002209.html">
   <LINK REL="Next"  HREF="002211.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Importing RPM Spec File Syntax</H1>
    <B>Colin Guthrie</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Importing%20RPM%20Spec%20File%20Syntax&In-Reply-To=%3C4D34BD88.40609%40colin.guthr.ie%3E"
       TITLE="[Mageia-dev] Importing RPM Spec File Syntax">mageia at colin.guthr.ie
       </A><BR>
    <I>Mon Jan 17 23:07:04 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="002209.html">[Mageia-dev] Importing RPM Spec File Syntax
</A></li>
        <LI>Next message: <A HREF="002211.html">[Mageia-dev] Importing RPM Spec File Syntax
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2210">[ date ]</a>
              <a href="thread.html#2210">[ thread ]</a>
              <a href="subject.html#2210">[ subject ]</a>
              <a href="author.html#2210">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>'Twas brillig, and Florian Hubold at 17/01/11 21:53 did gyre and gimble:
&gt;<i> Am 15.01.2011 11:08, schrieb Remy CLOUARD:
</I>&gt;&gt;<i> <A HREF="http://mageia.org/wiki/doku.php?id=spec_syntax">http://mageia.org/wiki/doku.php?id=spec_syntax</A>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Please review this page as it&#8217;s one of the most important one for the
</I>&gt;&gt;<i> beginning of the mentoring process, with the RPM Howto page (yet to be
</I>&gt;&gt;<i> imported).
</I>&gt;<i> 
</I>&gt;<i> I have one comment, or more of a question: Why is it that some time ago
</I>&gt;<i> there used to be this syntax as de-facto standard:
</I>&gt;<i> 
</I>&gt;<i> %define name
</I>&gt;<i> Name: %name
</I>&gt;<i> 
</I>&gt;<i> Never understood this, so i went with what seems the new standard,
</I>&gt;<i> which saves you at least 3 lines per spec and improving readability.
</I>&gt;<i> 
</I>&gt;<i> So anyone can enlighten me why name, release and version had %defines?
</I>
I think the general reason was that you quite often want to use %name in
other places too. e.g. Obsoletes: %name-redundant-old-subpackage

Ditto for %version.

While you can use these without %defining them (just by virtue of them
being the Name: or Version: etc., I think it's more declarative and
deterministic to define them.

There could be other reasons too (e.g. update scripts?) and also just to
keep the critical things right at the top of the file for easy access.

Other than that I can't think of any reasons.

Col


-- 

Colin Guthrie
mageia(at)colin.guthr.ie
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>

Day Job:
  Tribalogic Limited [<A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>]
Open Source:
  Mageia Contributor [<A HREF="http://www.mageia.org/">http://www.mageia.org/</A>]
  PulseAudio Hacker [<A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>]
  Trac Hacker [<A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>]
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="002209.html">[Mageia-dev] Importing RPM Spec File Syntax
</A></li>
	<LI>Next message: <A HREF="002211.html">[Mageia-dev] Importing RPM Spec File Syntax
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2210">[ date ]</a>
              <a href="thread.html#2210">[ thread ]</a>
              <a href="subject.html#2210">[ subject ]</a>
              <a href="author.html#2210">[ 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>