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