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