~ubuntu-branches/ubuntu/saucy/kate/saucy

« back to all changes in this revision

Viewing changes to part/tests/hl/highlight1.spec

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Rohan Garg, Jonathan Riddell
  • Date: 2013-06-21 00:48:29 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20130621004829-y2ui02eg0j47h94y
Tags: 4:4.10.80-0ubuntu1
[ Rohan Garg ]
* New upstream release
  - Update and sort install files
  - Drop kubuntu_pate_find_python.diff, kubuntu_kate_initial_preference.patch,
    kubuntu_find_python.diff from debian/patches , not required

[ Jonathan Riddell ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Test file for rpmspec.xml
2
 
 
3
 
# Comments start with a # in column="0":
4
 
 
5
 
# Some comment
6
 
 
7
 
# When they don't start in column="0", that they are recognized as comments, but with an alert:
8
 
 # This is a bad comment.
9
 
# RPM spec says clear that comments must start at the begin of the line. However, in practice
10
 
# the RPM software is more permissive, depending on the context. But for our syntax highlighting,
11
 
# we give, while recognizing the as comment, at least a little alert. Comments should not contain
12
 
# the character % (which is marked as warning), but 2 of them are okay: %%. TODO is higlighted.
13
 
 
14
 
# A spec file starts with "Normal" context. Here, you can specify values for some tags:
15
 
Name:                kradioripper-unstable # Note that here in no comment possible!
16
 
Name:                name only _one_ word allowed
17
 
Name:                %macro no further syntax check after macro!
18
 
# Some tags support only _one_ word as value
19
 
Version:             0.4test5 up-from-the-space-this-is-an-error
20
 
# Some tag can have parameters: Any char in paranthesis:
21
 
Summary:             Recorder for internet radios (based on Streamripper)  
22
 
Summary(de.UTF-8):   Aufnahmeprogramm für Internetradios (basiert auf Streamripper)
23
 
# requiere free text:
24
 
License:             License 1 2 3
25
 
# requiere a well defines value:
26
 
Requires( / (  = ):  Some, value()
27
 
# new type "switch" accepts: yes, no, 0, 1
28
 
AutoReq: yes
29
 
AutoReq: yes invalid
30
 
AutoReq: %macro no further syntax check after macro!
31
 
AutoReq: no
32
 
AutoReq: 0
33
 
AutoReq: 1
34
 
# requiere a number:
35
 
Epoch:               123123
36
 
Epoch:               123123 invalid
37
 
Epoch:               %macro no further syntax check afer macro!
38
 
# If tags are used that are not known, they are not highlighted:
39
 
Invalidtag:          Some value
40
 
Invalid content in this section (only tags are allowed)
41
 
  
42
 
# You can use conditions in specs (highlighted with region markers):
43
 
%if 0%{?mandriva_version}  
44
 
# numbers and strings are distingished: string:
45
 
%if lsdksfj
46
 
# number:
47
 
%if 23472398
48
 
# string:
49
 
%if lksdjfsl72939
50
 
# invalid:
51
 
%if 92437lsdkfjdsl
52
 
# valid:
53
 
%if "lsdfj %ksdf(sdfs) 3489"
54
 
Release:             %mkrel 1.2
55
 
%else  
56
 
Release:             0  
57
 
%endif  
58
 
# requiere a well defined value:
59
 
%ifos fixed_value
60
 
# You must use these special macros (%%if etc.) always at the start of the line - if not,
61
 
# that's bad but not an arror. You must also always use the specified form. Everything else is an
62
 
# error:
63
 
 %if
64
 
something %if
65
 
%{if}
66
 
%if(some options)
67
 
# However, this are different macros and therefore correct:
68
 
%ifx
69
 
%{ifx}
70
 
%ifx(some options)
71
 
 
72
 
# the \ is escaped in the line. At the end of the line it escapes the line break:
73
 
echo This is \" a text \\ and here\
74
 
it continues.
75
 
 
76
 
%define name value
77
 
%define invalid_näme value
78
 
%define macroname multi\
79
 
line content with references like %0 %* %# %{-f} %{-f*} %1 %2 and so on
80
 
%global name value
81
 
%global invalid_näme value
82
 
%undefine name
83
 
%undefine name too-many-parameters
84
 
 
85
 
# This special comment is treated and highlighted like a tag:
86
 
# norootforbuild  
87
 
# It can't have parameters, so every following non-whitespace character is not good:
88
 
# norootforbuild  DONT WRITE ANYTHING HERE!
89
 
# wrong spacing is also recognized:
90
 
#  norootforbuild
91
 
# and also an indeet is not fine for norootforbuild:
92
 
 # norootforbuild
93
 
  
94
 
# This following "Conflicts" tag will be removed by set-version.sh,  
95
 
# if it is a "kradioripper" release (and not a "kradioripper-unstable" release)...  
96
 
Conflicts:           kradioripper  
97
 
  
98
 
  
99
 
%description  
100
 
# Here, a new section starts. It contains a value for the RPM field "description" and is therefor
101
 
# colored like values:
102
 
A KDE program for ripping internet radios. Based on StreamRipper.  
103
 
  
104
 
  
105
 
# A section start can have parameters:
106
 
%description -l de.UTF-8  
107
 
Ein KDE-Aufnahmeprogramm für Internetradios. Basiert auf StreamRipper.   
108
 
  
109
 
# These sections starts are errors:
110
 
 %description not at the first line
111
 
%{description} wrong form
112
 
%description(no options allowed, only parameters!)
113
 
  
114
 
  
115
 
%prep  
116
 
# This starts a section that defines the commands to prepare the build.
117
 
# q means quit. n sets the directory:  
118
 
%setup -q -n kradioripper  
119
 
echo Test
120
 
# Macros can have different forms: Valid:
121
 
%abc
122
 
%abcÄndOfMacro
123
 
%abc(def)EndOfMacro
124
 
%{abc}EndOfMacro
125
 
%{something but no single %}EndOfMacro
126
 
%{abc:def}EndOfMacro
127
 
%(abc)
128
 
# Invalid:
129
 
%ÄInvalidChar
130
 
%
131
 
%)
132
 
%}
133
 
# You can use macros inside of macro calls: Fine:
134
 
%{something %but no %{sin%(fine)gle} }EndOfMacro
135
 
# Bad:
136
 
%{No closing paranthesis (No syntax highlightig for this error available)
137
 
  
138
 
  
139
 
%build  
140
 
cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix}  
141
 
%__make %{?jobs:-j %jobs}  
142
 
  
143
 
  
144
 
%install  
145
 
%if 0%{?suse_version}  
146
 
%makeinstall  
147
 
%suse_update_desktop_file kradioripper  
148
 
%endif  
149
 
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}  
150
 
make install DESTDIR=%{buildroot}  
151
 
desktop-file-install --delete-original --vendor fedora --dir=%{buildroot}/%{_datadir}/applications/kde4 %{buildroot}/%{_datadir}/applications/kde4/kradioripper.desktop  
152
 
%endif  
153
 
%if 0%{?mandriva_version}  
154
 
%makeinstall_std  
155
 
%endif  
156
 
  
157
 
  
158
 
%clean  
159
 
rm -rf "%{buildroot}"  
160
 
  
161
 
  
162
 
%files  
163
 
%defattr(-,root,root)  
164
 
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}  
165
 
%{_datadir}/applications/kde4/fedora-kradioripper.desktop  
166
 
%else  
167
 
%{_datadir}/applications/kde4/kradioripper.desktop  
168
 
%endif  
169
 
%{_bindir}/kradioripper  
170
 
%{_datadir}/locale/*/LC_MESSAGES/kradioripper.mo  
171
 
%if 0%{?mandriva_version}  
172
 
# TODO The %%doc macro is actually broken for mandriva 2009 in build service...
173
 
%dir %{_datadir}/apps/kradioripper  
174
 
%{_datadir}/apps/kradioripper/*  
175
 
%else  
176
 
%doc COPYING LICENSE LICENSE.GPL2 LICENSE.GPL3 NEWS WARRANTY  
177
 
%dir %{_datadir}/kde4/apps/kradioripper  
178
 
%{_datadir}/kde4/apps/kradioripper/*  
179
 
%endif  
180
 
  
181
 
  
182
 
%changelog  
183
 
* Sun May 04 2008 email@email.com
184
 
- some text
185
 
- some text
186
 
  in two lines
187
 
- some text
188
 
  in two lines
189
 
  + with subtext
190
 
  - and more subtext
191
 
  in two lines
192
 
* Tue Apr 24 2007 Name
193
 
- text
194
 
  * When the star isn't at column 0, than it doesn't indicate
195
 
  a new date
196
 
* Wen Sep 08 2003 Wrong weekday
197
 
* Mon Mai 08 2003 Wrong month
198
 
* Mon Sep 0 2003 bad day
199
 
* Mon Sep 8 2003 good day
200
 
* Mon Sep 08 2003 good day
201
 
* Mon Sep 32 2003 bad day
202
 
* Mon Sep 08 03 bad year
203
 
* Mon Sep 08 2003 Name
204
 
# When using macros, the error check is disabled:
205
 
* %myDataMacro Title of the entry
206
 
- Text
207
 
    - can
208
 
        - be
209
 
        - indeeded
210
 
        - without
211
 
    - problems
212