File indexing completed on 2024-05-12 04:02:08

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>highlight.spec</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (RPM Spec) - Theme (Breeze Dark)"/>
0006 </head><body style="background-color:#232629;color:#cfcfc2"><pre>
0007 <span style="color:#7a7c7d"># Test file for rpmspec.xml</span>
0008 
0009 <span style="color:#7a7c7d"># Comments start with a # in column="0":</span>
0010 
0011 <span style="color:#7a7c7d"># Some comment</span>
0012 
0013 <span style="color:#7a7c7d"># When they don't start in column="0", that they are recognized as comments, but with an alert:</span>
0014 <span style="color:#da4453;text-decoration:underline"> </span><span style="color:#7a7c7d"># This is a bad comment.</span>
0015 <span style="color:#7a7c7d"># RPM spec says clear that comments must start at the begin of the line. However, in practice</span>
0016 <span style="color:#7a7c7d"># the RPM software is more permissive, depending on the context. But for our syntax highlighting,</span>
0017 <span style="color:#7a7c7d"># we give, while recognizing the as comment, at least a little alert. Comments should not contain</span>
0018 <span style="color:#7a7c7d"># the character </span><span style="color:#da4453;text-decoration:underline">%</span><span style="color:#7a7c7d"> (which is marked as warning), but 2 of them are okay: %%. </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold">TODO</span><span style="color:#7a7c7d"> is higlighted.</span>
0019 
0020 <span style="color:#7a7c7d"># A spec file starts with "Normal" context. Here, you can specify values for some tags:</span>
0021 <span style="color:#2980b9">Name:                </span><span style="color:#f44f4f">kradioripper-unstable</span> <span style="color:#da4453;text-decoration:underline">#</span> <span style="color:#da4453;text-decoration:underline">Note</span> <span style="color:#da4453;text-decoration:underline">that</span> <span style="color:#da4453;text-decoration:underline">here</span> <span style="color:#da4453;text-decoration:underline">in</span> <span style="color:#da4453;text-decoration:underline">no</span> <span style="color:#da4453;text-decoration:underline">comment</span> <span style="color:#da4453;text-decoration:underline">possible!</span>
0022 <span style="color:#2980b9">Name:                </span><span style="color:#f44f4f">name</span> <span style="color:#da4453;text-decoration:underline">only</span> <span style="color:#da4453;text-decoration:underline">_one_</span> <span style="color:#da4453;text-decoration:underline">word</span> <span style="color:#da4453;text-decoration:underline">allowed</span>
0023 <span style="color:#2980b9">Name:                </span><span style="color:#8e44ad">%macro</span><span style="color:#f44f4f"> no further syntax check after macro!</span>
0024 <span style="color:#7a7c7d"># Some tags support only _one_ word as value</span>
0025 <span style="color:#2980b9">Version:             </span><span style="color:#f44f4f">0.4test5</span> <span style="color:#da4453;text-decoration:underline">up-from-the-space-this-is-an-error</span>
0026 <span style="color:#7a7c7d"># Some tag can have parameters: Any char in paranthesis:</span>
0027 <span style="color:#2980b9">Summary:             </span><span style="color:#f44f4f">Recorder for internet radios (based on Streamripper)  </span>
0028 <span style="color:#2980b9">Summary(de.UTF-8):   </span><span style="color:#f44f4f">Aufnahmeprogramm für Internetradios (basiert auf Streamripper)</span>
0029 <span style="color:#7a7c7d"># requiere free text:</span>
0030 <span style="color:#2980b9">License:             </span><span style="color:#f44f4f">License 1 2 3</span>
0031 <span style="color:#7a7c7d"># requiere a well defines value:</span>
0032 <span style="color:#2980b9">Requires( / (  = ):  </span><span style="color:#27ae60">Some</span><span style="font-weight:bold">,</span><span style="color:#27ae60"> value</span><span style="font-weight:bold">()</span>
0033 <span style="color:#7a7c7d"># new type "switch" accepts: yes, no, 0, 1</span>
0034 <span style="color:#2980b9">AutoReq: </span><span style="color:#27ae60">yes</span>
0035 <span style="color:#2980b9">AutoReq: </span><span style="color:#27ae60">yes</span> <span style="color:#da4453;text-decoration:underline">invalid</span>
0036 <span style="color:#2980b9">AutoReq: </span><span style="color:#8e44ad">%macro</span><span style="color:#27ae60"> no further syntax check after macro!</span>
0037 <span style="color:#2980b9">AutoReq: </span><span style="color:#27ae60">no</span>
0038 <span style="color:#2980b9">AutoReq: </span><span style="color:#27ae60">0</span>
0039 <span style="color:#2980b9">AutoReq: </span><span style="color:#27ae60">1</span>
0040 <span style="color:#7a7c7d"># requiere a number:</span>
0041 <span style="color:#2980b9">Epoch:               </span><span style="color:#f67400">123123</span>
0042 <span style="color:#2980b9">Epoch:               </span><span style="color:#f67400">123123</span> <span style="color:#da4453;text-decoration:underline">invalid</span>
0043 <span style="color:#2980b9">Epoch:               </span><span style="color:#8e44ad">%macro</span><span style="color:#f67400"> no further syntax check afer macro!</span>
0044 <span style="color:#7a7c7d"># If tags are used that are not known, they are not highlighted:</span>
0045 <span style="color:#da4453;text-decoration:underline">Invalidtag:</span>          <span style="color:#da4453;text-decoration:underline">Some</span> <span style="color:#da4453;text-decoration:underline">value</span>
0046 <span style="color:#da4453;text-decoration:underline">Invalid</span> <span style="color:#da4453;text-decoration:underline">content</span> <span style="color:#da4453;text-decoration:underline">in</span> <span style="color:#da4453;text-decoration:underline">this</span> <span style="color:#da4453;text-decoration:underline">section</span> <span style="color:#da4453;text-decoration:underline">(only</span> <span style="color:#da4453;text-decoration:underline">tags</span> <span style="color:#da4453;text-decoration:underline">are</span> <span style="color:#da4453;text-decoration:underline">allowed)</span>
0047   
0048 <span style="color:#7a7c7d"># You can use conditions in specs (highlighted with region markers):</span>
0049 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?mandriva_version}</span>  
0050 <span style="color:#7a7c7d"># numbers and strings are distingished: string:</span>
0051 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f44f4f">lsdksfj</span>
0052 <span style="color:#7a7c7d"># number:</span>
0053 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">23472398</span>
0054 <span style="color:#7a7c7d"># string:</span>
0055 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f44f4f">lksdjfsl72939</span>
0056 <span style="color:#7a7c7d"># invalid:</span>
0057 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">92437</span><span style="color:#f44f4f">lsdkfjdsl</span>
0058 <span style="color:#7a7c7d"># valid:</span>
0059 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f44f4f">"lsdfj </span><span style="color:#8e44ad">%ksdf(sdfs)</span><span style="color:#f44f4f"> 3489"</span>
0060 <span style="color:#2980b9">Release:             </span><span style="color:#8e44ad">%mkrel</span><span style="color:#f44f4f"> 1.2</span>
0061 <span style="color:#fdbc4b;font-weight:bold">%else</span>  
0062 <span style="color:#2980b9">Release:             </span><span style="color:#f44f4f">0</span>  
0063 <span style="color:#fdbc4b;font-weight:bold">%endif</span>  
0064 <span style="color:#7a7c7d"># requiere a well defined value:</span>
0065 <span style="color:#fdbc4b;font-weight:bold">%ifos</span> <span style="color:#da4453;text-decoration:underline">fixed_value</span>
0066 <span style="color:#7a7c7d"># You must use these special macros (%%if etc.) always at the start of the line - if not,</span>
0067 <span style="color:#7a7c7d"># that's bad but not an arror. You must also always use the specified form. Everything else is an</span>
0068 <span style="color:#7a7c7d"># error:</span>
0069  <span style="color:#fdbc4b;font-weight:bold">%if</span>
0070 <span style="color:#da4453;text-decoration:underline">something</span> <span style="color:#da4453;text-decoration:underline">%if</span>
0071 <span style="color:#8e44ad">%{if}</span>
0072 <span style="color:#da4453;text-decoration:underline">%if</span>(some options)
0073 <span style="color:#7a7c7d"># However, this are different macros and therefore correct:</span>
0074 <span style="color:#8e44ad">%ifx</span>
0075 <span style="color:#8e44ad">%{ifx}</span>
0076 <span style="color:#8e44ad">%ifx(some options)</span>
0077 
0078 <span style="color:#7a7c7d"># the \ is escaped in the line. At the end of the line it escapes the line break:</span>
0079 <span style="color:#da4453;text-decoration:underline">echo</span> <span style="color:#da4453;text-decoration:underline">This</span> <span style="color:#da4453;text-decoration:underline">is</span> <span style="color:#da4453;text-decoration:underline">\"</span> <span style="color:#da4453;text-decoration:underline">a</span> <span style="color:#da4453;text-decoration:underline">text</span> <span style="color:#da4453;text-decoration:underline">\\</span> <span style="color:#da4453;text-decoration:underline">and</span> <span style="color:#da4453;text-decoration:underline">here\</span>
0080 <span style="color:#da4453;text-decoration:underline">it</span> <span style="color:#da4453;text-decoration:underline">continues.</span>
0081 
0082 <span style="font-weight:bold">%define</span> <span style="color:#27ae60">name</span><span style="color:#f44f4f"> value</span>
0083 <span style="font-weight:bold">%define</span> <span style="color:#da4453;text-decoration:underline">invalid_näme</span><span style="color:#f44f4f"> value</span>
0084 <span style="font-weight:bold">%define</span> <span style="color:#27ae60">macroname</span><span style="color:#f44f4f"> multi</span><span style="font-weight:bold">\</span>
0085 <span style="color:#f44f4f">line content with references like </span><span style="color:#8e44ad">%0</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%*</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%#</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%{-f}</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%{-f*}</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%1</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%2</span><span style="color:#f44f4f"> and so on</span>
0086 <span style="font-weight:bold">%global</span> <span style="color:#27ae60">name</span><span style="color:#f44f4f"> value</span>
0087 <span style="font-weight:bold">%global</span> <span style="color:#da4453;text-decoration:underline">invalid_näme</span><span style="color:#f44f4f"> value</span>
0088 <span style="font-weight:bold">%undefine</span> <span style="color:#27ae60">name</span>
0089 <span style="font-weight:bold">%undefine</span> <span style="color:#27ae60">name</span> <span style="color:#da4453;text-decoration:underline">too-many-parameters</span>
0090 
0091 <span style="color:#7a7c7d"># shell command</span>
0092 <span style="font-weight:bold">%define</span> <span style="color:#27ae60">buildoutputdir</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%{expand:</span>build/jdk<span style="color:#8e44ad">%{featurever}</span>.build<span style="color:#8e44ad">%{?1}}</span>
0093 <span style="font-weight:bold">%define</span> <span style="color:#27ae60">buildoutputdir()</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%{expand:</span>build/jdk<span style="color:#8e44ad">%{featurever}</span>.build<span style="color:#8e44ad">%{?1}}</span>
0094 <span style="font-weight:bold">%define</span> <span style="color:#27ae60">save_alternatives()</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%{expand:</span>
0095   <span style="color:#7a7c7d"># bash comment</span>
0096   <span style="font-weight:bold">function</span> foo <span style="font-weight:bold">{</span>
0097     LANG=en_US.UTF-8 alternatives --display <span style="color:#f44f4f">"</span><span style="color:#27aeae">$MASTER</span><span style="color:#f44f4f">"</span>
0098   <span style="font-weight:bold">}</span>
0099   MASTER=<span style="color:#f44f4f">"</span><span style="color:#8e44ad">%{?1}</span><span style="color:#f44f4f">"</span>
0100   rm -f <span style="color:#8e44ad">%{_localstatedir}</span>/lib/rpm-state/<span style="color:#f44f4f">"</span><span style="color:#27aeae">$MASTER</span><span style="color:#f44f4f">"</span>_<span style="color:#27aeae">$FAMILY</span> <span style="color:#2980b9">> /dev/null</span>
0101   <span style="font-weight:bold">if</span> foo <span style="color:#2980b9">> /dev/null</span> <span style="color:#3f8058">|</span> bar -q <span style="color:#3f8058">;</span> <span style="font-weight:bold">then</span>
0102     zeta 2  <span style="color:#2980b9">></span> <span style="color:#8e44ad">%{_localstatedir}</span>/lib/rpm-state/<span style="color:#f44f4f">"</span><span style="color:#27aeae">$MASTER</span><span style="color:#f44f4f">"</span>_<span style="color:#f44f4f">"</span><span style="color:#27aeae">$FAMILY</span><span style="color:#f44f4f">"</span>
0103   <span style="font-weight:bold">fi</span>
0104 <span style="color:#8e44ad">}</span>
0105 
0106 <span style="color:#7a7c7d"># lua command</span>
0107 <span style="font-weight:bold">%define</span> <span style="color:#27ae60">save_alternatives()</span><span style="color:#f44f4f"> </span><span style="color:#8e44ad">%{lua:</span>
0108   <span style="color:#7a7c7d">-- a lua code</span>
0109   <span style="font-weight:bold">local</span> <span style="color:#27aeae">posix</span> <span style="color:#3f8058">=</span> <span style="color:#8e44ad">require</span> <span style="color:#f44f4f">"posix"</span>
0110   <span style="color:#fdbc4b;font-weight:bold">if</span> <span style="color:#3f8058">(</span><span style="color:#8e44ad">os.getenv</span><span style="color:#3f8058">(</span><span style="color:#f44f4f">"debug"</span><span style="color:#3f8058">)</span> <span style="color:#3f8058">==</span> <span style="color:#f44f4f">"true"</span><span style="color:#3f8058">)</span> <span style="color:#fdbc4b;font-weight:bold">then</span>
0111     <span style="color:#27aeae">debug</span> <span style="color:#3f8058">=</span> <span style="font-weight:bold">true</span><span style="color:#3f8058">;</span>
0112     <span style="color:#8e44ad">print</span><span style="color:#3f8058">(</span><span style="color:#f44f4f">"debug"</span><span style="color:#3f8058">)</span>
0113   <span style="color:#fdbc4b;font-weight:bold">else</span>
0114     <span style="color:#27aeae">debug</span> <span style="color:#3f8058">=</span> <span style="font-weight:bold">false</span><span style="color:#3f8058">;</span>
0115   <span style="color:#fdbc4b;font-weight:bold">end</span>
0116 <span style="color:#8e44ad">}</span>
0117 
0118 
0119 <span style="color:#7a7c7d"># This special comment is treated and highlighted like a tag:</span>
0120 <span style="color:#2980b9"># norootforbuild</span>  
0121 <span style="color:#7a7c7d"># It can't have parameters, so every following non-whitespace character is not good:</span>
0122 <span style="color:#2980b9"># norootforbuild</span>  <span style="color:#da4453;text-decoration:underline">DONT</span> <span style="color:#da4453;text-decoration:underline">WRITE</span> <span style="color:#da4453;text-decoration:underline">ANYTHING</span> <span style="color:#da4453;text-decoration:underline">HERE!</span>
0123 <span style="color:#7a7c7d"># wrong spacing is also recognized:</span>
0124 <span style="color:#da4453;text-decoration:underline">#  norootforbuild</span>
0125 <span style="color:#7a7c7d"># and also an indeet is not fine for norootforbuild:</span>
0126 <span style="color:#da4453;text-decoration:underline"> </span><span style="color:#da4453;text-decoration:underline"># norootforbuild</span>
0127   
0128 <span style="color:#7a7c7d"># This following "Conflicts" tag will be removed by set-version.sh,  </span>
0129 <span style="color:#7a7c7d"># if it is a "kradioripper" release (and not a "kradioripper-unstable" release)...  </span>
0130 <span style="color:#2980b9">Conflicts:           </span><span style="color:#27ae60">kradioripper  </span>
0131   
0132   
0133 <span style="color:#2980b9;background-color:#153042">%description</span>  
0134 <span style="color:#7a7c7d"># Here, a new section starts. It contains a value for the RPM field "description" and is therefor</span>
0135 <span style="color:#7a7c7d"># colored like values:</span>
0136 <span style="color:#f44f4f">A KDE program for ripping internet radios. Based on StreamRipper.  </span>
0137 <span style="color:#f44f4f">  </span>
0138 <span style="color:#f44f4f">  </span>
0139 <span style="color:#7a7c7d"># A section start can have parameters:</span>
0140 <span style="color:#2980b9;background-color:#153042">%description</span> -l de.UTF-8  
0141 <span style="color:#f44f4f">Ein KDE-Aufnahmeprogramm für Internetradios. Basiert auf StreamRipper.   </span>
0142 <span style="color:#f44f4f">  </span>
0143 <span style="color:#7a7c7d"># These sections starts are errors:</span>
0144 <span style="color:#f44f4f"> </span><span style="color:#da4453;text-decoration:underline">%description</span><span style="color:#f44f4f"> not at the first line</span>
0145 <span style="color:#8e44ad">%{description}</span><span style="color:#f44f4f"> wrong form</span>
0146 <span style="color:#da4453;text-decoration:underline">%description</span><span style="color:#f44f4f">(no options allowed, only parameters!)</span>
0147 <span style="color:#f44f4f">  </span>
0148 <span style="color:#f44f4f">  </span>
0149 <span style="color:#2980b9;background-color:#153042">%prep</span>  
0150 <span style="color:#7a7c7d"># This starts a section that defines the commands to prepare the build.</span>
0151 <span style="color:#7a7c7d"># q means quit. n sets the directory:  </span>
0152 <span style="color:#8e44ad">%setup</span> -q -n kradioripper  
0153 echo Test
0154 <span style="color:#7a7c7d"># Macros can have different forms: Valid:</span>
0155 <span style="color:#8e44ad">%abc</span>
0156 <span style="color:#8e44ad">%abc</span>ÄndOfMacro
0157 <span style="color:#8e44ad">%abc(def)</span>EndOfMacro
0158 <span style="color:#8e44ad">%{abc}</span>EndOfMacro
0159 <span style="color:#8e44ad">%{something but no single </span><span style="color:#da4453;text-decoration:underline">%</span><span style="color:#8e44ad">}</span>EndOfMacro
0160 <span style="color:#8e44ad">%{abc:def}</span>EndOfMacro
0161 <span style="color:#8e44ad">%(</span>abc<span style="color:#8e44ad">)</span>
0162 <span style="color:#7a7c7d"># Invalid:</span>
0163 <span style="color:#da4453;text-decoration:underline">%</span>ÄInvalidChar
0164 <span style="color:#da4453;text-decoration:underline">%</span>
0165 <span style="color:#da4453;text-decoration:underline">%</span>)
0166 <span style="color:#da4453;text-decoration:underline">%</span>}
0167 <span style="color:#7a7c7d"># You can use macros inside of macro calls: Fine:</span>
0168 <span style="color:#8e44ad">%{something %but no %{sin%(</span>fine<span style="color:#8e44ad">)gle} }</span>EndOfMacro
0169 <span style="color:#7a7c7d"># Bad:</span>
0170 <span style="color:#8e44ad">%{No closing paranthesis </span><span style="color:#da4453;text-decoration:underline">(</span><span style="color:#8e44ad">No syntax highlightig for this error available</span><span style="color:#da4453;text-decoration:underline">)</span>
0171   
0172   
0173 <span style="color:#2980b9;background-color:#153042">%build</span>  
0174 cmake ./ -DCMAKE_INSTALL_PREFIX=<span style="color:#8e44ad">%{_prefix}</span>  
0175 <span style="color:#8e44ad">%__make</span> <span style="color:#8e44ad">%{?jobs:-j %jobs}</span>  
0176 <span style="color:#8e44ad">%{!?_licensedir:%global license </span><span style="color:#3daee9">%%</span><span style="color:#8e44ad">doc}</span>
0177 
0178   
0179 <span style="color:#2980b9;background-color:#153042">%install</span>  
0180 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?suse_version}</span>  
0181 <span style="color:#8e44ad">%makeinstall</span>  
0182 <span style="color:#8e44ad">%suse_update_desktop_file</span> kradioripper  
0183 <span style="color:#fdbc4b;font-weight:bold">%endif</span>  
0184 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?fedora_version}</span> <span style="font-weight:bold">||</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?rhel_version}</span> <span style="font-weight:bold">||</span> <span style="font-weight:bold">!</span><span style="color:#f67400">0</span><span style="color:#8e44ad">%{?centos_version}</span>
0185 make install DESTDIR=<span style="color:#8e44ad">%{buildroot}</span>  
0186 desktop-file-install --delete-original --vendor fedora --dir=<span style="color:#8e44ad">%{buildroot}</span>/<span style="color:#8e44ad">%{_datadir}</span>/applications/kde4 <span style="color:#8e44ad">%{buildroot}</span>/<span style="color:#8e44ad">%{_datadir}</span>/applications/kde4/kradioripper.desktop  
0187 <span style="color:#fdbc4b;font-weight:bold">%endif</span>  
0188 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?mandriva_version}</span>  
0189 <span style="color:#8e44ad">%makeinstall_std</span>  
0190 <span style="color:#fdbc4b;font-weight:bold">%endif</span>  
0191   
0192   
0193 <span style="color:#2980b9;background-color:#153042">%clean</span>  
0194 rm -rf <span style="color:#f44f4f">"</span><span style="color:#8e44ad">%{buildroot}</span><span style="color:#f44f4f">"</span>  
0195 
0196   
0197 <span style="color:#2980b9;background-color:#153042">%files</span>  
0198 <span style="color:#8e44ad">%defattr(-,root,root)</span>  
0199 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?fedora_version}</span> <span style="font-weight:bold">||</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?rhel_version}</span> <span style="font-weight:bold">||</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?centos_version}</span>  
0200 <span style="color:#8e44ad">%{_datadir}</span>/applications/kde4/fedora-kradioripper.desktop  
0201 <span style="color:#fdbc4b;font-weight:bold">%else</span>  
0202 <span style="color:#8e44ad">%{_datadir}</span>/applications/kde4/kradioripper.desktop  
0203 <span style="color:#fdbc4b;font-weight:bold">%endif</span>  
0204 <span style="color:#8e44ad">%{_bindir}</span>/kradioripper  
0205 <span style="color:#8e44ad">%{_datadir}</span>/locale/*/LC_MESSAGES/kradioripper.mo  
0206 <span style="color:#fdbc4b;font-weight:bold">%if</span> <span style="color:#f67400">0</span><span style="color:#8e44ad">%{?mandriva_version}</span>  
0207 <span style="color:#7a7c7d"># </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold">TODO</span><span style="color:#7a7c7d"> The %%doc macro is actually broken for mandriva 2009 in build service...</span>
0208 <span style="color:#8e44ad">%dir</span> <span style="color:#8e44ad">%{_datadir}</span>/apps/kradioripper  
0209 <span style="color:#8e44ad">%{_datadir}</span>/apps/kradioripper/*  
0210 <span style="color:#fdbc4b;font-weight:bold">%else</span>  
0211 <span style="color:#8e44ad">%doc</span> COPYING LICENSE LICENSE.GPL2 LICENSE.GPL3 NEWS WARRANTY  
0212 <span style="color:#8e44ad">%dir</span> <span style="color:#8e44ad">%{_datadir}</span>/kde4/apps/kradioripper  
0213 <span style="color:#8e44ad">%{_datadir}</span>/kde4/apps/kradioripper/*  
0214 <span style="color:#fdbc4b;font-weight:bold">%endif</span>  
0215 
0216 <span style="color:#7a7c7d"># lua section</span>
0217 <span style="color:#2980b9;background-color:#153042">%pretrans</span> headless -p &lt;lua>
0218 <span style="color:#7a7c7d">-- a lua code</span>
0219 <span style="font-weight:bold">local</span> <span style="color:#27aeae">posix</span> <span style="color:#3f8058">=</span> <span style="color:#8e44ad">require</span> <span style="color:#f44f4f">"posix"</span>
0220 <span style="color:#fdbc4b;font-weight:bold">if</span> <span style="color:#3f8058">(</span><span style="color:#8e44ad">os.getenv</span><span style="color:#3f8058">(</span><span style="color:#f44f4f">"debug"</span><span style="color:#3f8058">)</span> <span style="color:#3f8058">==</span> <span style="color:#f44f4f">"true"</span><span style="color:#3f8058">)</span> <span style="color:#fdbc4b;font-weight:bold">then</span>
0221   <span style="color:#27aeae">debug</span> <span style="color:#3f8058">=</span> <span style="font-weight:bold">true</span><span style="color:#3f8058">;</span>
0222   <span style="color:#8e44ad">print</span><span style="color:#3f8058">(</span><span style="color:#f44f4f">"debug"</span><span style="color:#3f8058">)</span>
0223 <span style="color:#fdbc4b;font-weight:bold">else</span>
0224   <span style="color:#27aeae">debug</span> <span style="color:#3f8058">=</span> <span style="font-weight:bold">false</span><span style="color:#3f8058">;</span>
0225 <span style="color:#fdbc4b;font-weight:bold">end</span>
0226   
0227 <span style="color:#2980b9;background-color:#153042">%changelog</span><span style="color:#f44f4f">  </span>
0228 <span style="color:#2980b9">* Sun May 04 2008 email@email.com</span>
0229 <span style="color:#f44f4f">- some text</span>
0230 <span style="color:#f44f4f">- some text</span>
0231 <span style="color:#f44f4f">  in two lines</span>
0232 <span style="color:#f44f4f">- some text</span>
0233 <span style="color:#f44f4f">  in two lines</span>
0234 <span style="color:#f44f4f">  + with subtext</span>
0235 <span style="color:#f44f4f">  - and more subtext</span>
0236 <span style="color:#f44f4f">  in two lines</span>
0237 <span style="color:#2980b9">* Tue Apr 24 2007 Name</span>
0238 <span style="color:#f44f4f">- text</span>
0239 <span style="color:#f44f4f">  * When the star isn't at column 0, than it doesn't indicate</span>
0240 <span style="color:#f44f4f">  a new date</span>
0241 <span style="color:#2980b9">* </span><span style="color:#da4453;text-decoration:underline">Wen</span><span style="color:#2980b9"> Sep 08 2003 Wrong weekday</span>
0242 <span style="color:#2980b9">* Mon </span><span style="color:#da4453;text-decoration:underline">Mai</span><span style="color:#2980b9"> 08 2003 Wrong month</span>
0243 <span style="color:#2980b9">* Mon Sep </span><span style="color:#da4453;text-decoration:underline">0</span><span style="color:#2980b9"> 2003 bad day</span>
0244 <span style="color:#2980b9">* Mon Sep 8 2003 good day</span>
0245 <span style="color:#2980b9">* Mon Sep 08 2003 good day</span>
0246 <span style="color:#2980b9">* Mon Sep </span><span style="color:#da4453;text-decoration:underline">32</span><span style="color:#2980b9"> 2003 bad day</span>
0247 <span style="color:#2980b9">* Mon Sep 08 </span><span style="color:#da4453;text-decoration:underline">03</span><span style="color:#2980b9"> bad year</span>
0248 <span style="color:#2980b9">* Mon Sep 08 2003 Name</span>
0249 <span style="color:#7a7c7d"># When using macros, the error check is disabled:</span>
0250 <span style="color:#2980b9">* </span><span style="color:#8e44ad">%myDataMacro</span><span style="color:#2980b9"> Title of the entry</span>
0251 <span style="color:#f44f4f">- Text</span>
0252 <span style="color:#f44f4f">    - can</span>
0253 <span style="color:#f44f4f">        - be</span>
0254 <span style="color:#f44f4f">        - indeeded</span>
0255 <span style="color:#f44f4f">        - without</span>
0256 <span style="color:#f44f4f">    - problems</span>
0257 </pre></body></html>