]>
Commit | Line | Data |
---|---|---|
5a78beb7 | 1 | Summary: GNU Source Highlight |
fd896d07 | 2 | Summary(pl.UTF-8): Podświetlanie składni z projektu GNU |
5a78beb7 | 3 | Name: source-highlight |
091814d2 | 4 | Version: 3.1.7 |
2353fd29 | 5 | Release: 4 |
41351bf5 | 6 | License: GPL v3+ |
5a78beb7 | 7 | Group: Applications/Publishing |
41351bf5 | 8 | Source0: http://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz |
091814d2 | 9 | # Source0-md5: 0ff81588d3536b4c4e571122ba940595 |
41351bf5 | 10 | Patch0: %{name}-info.patch |
5ed541e5 | 11 | URL: http://www.gnu.org/software/src-highlite/ |
5ed04ced | 12 | BuildRequires: automake |
6db7bfa9 | 13 | BuildRequires: boost-devel >= 1.36.0 |
5ed04ced | 14 | BuildRequires: flex |
5a78beb7 | 15 | BuildRequires: libstdc++-devel |
41351bf5 | 16 | BuildRequires: texinfo |
3c32c45d | 17 | Requires: %{name}-libs = %{version}-%{release} |
5a78beb7 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | This program, given a source file, produces a document with syntax | |
22 | highlighting. | |
23 | ||
10a403aa | 24 | At the moment this package can handle: |
5a78beb7 | 25 | |
0e59593f AG |
26 | - Ada |
27 | - Asm (new) | |
28 | - Applescript (new) | |
29 | - Awk (new) | |
9e193422 | 30 | - Autoconf files |
0e59593f | 31 | - Bat (new) |
9e193422 AG |
32 | - Bib |
33 | - Bison | |
0e59593f AG |
34 | - C/C++ |
35 | - C# | |
36 | - Clipper (new) | |
37 | - Cobol (new) | |
38 | - Configuration files (generic) | |
9e193422 AG |
39 | - Caml |
40 | - Changelog | |
41 | - Css | |
0e59593f | 42 | - D (new) |
9e193422 | 43 | - Diff |
0e59593f AG |
44 | - Erlang (new) |
45 | - errors (compiler output) (new) | |
9e193422 AG |
46 | - Flex |
47 | - Fortran | |
48 | - GLSL | |
0e59593f | 49 | - Haskell |
9e193422 AG |
50 | - Haxe |
51 | - Html | |
52 | - ini files | |
5ed541e5 | 53 | - Java |
54 | - Javascript | |
9e193422 AG |
55 | - KDE desktop files |
56 | - Latex | |
57 | - Ldap files | |
58 | - Logtalk | |
59 | - Log files | |
60 | - lsm files (Linux Software Map) | |
61 | - Lua | |
62 | - Makefile | |
0e59593f | 63 | - Manifest (new) |
9e193422 AG |
64 | - M4 |
65 | - ML | |
0e59593f | 66 | - Oz |
9e193422 | 67 | - Pascal |
5ed541e5 | 68 | - Perl |
0e59593f | 69 | - pkg-config files |
9e193422 AG |
70 | - PHP |
71 | - Postscript | |
72 | - Prolog | |
73 | - Properties files | |
5ed541e5 | 74 | - Python |
9e193422 | 75 | - RPM Spec files |
5ed541e5 | 76 | - Ruby |
0e59593f | 77 | - Scala |
9e193422 AG |
78 | - Shell |
79 | - S-Lang | |
80 | - Sql | |
81 | - Tcl | |
0e59593f AG |
82 | - Texinfo |
83 | - VBscript (new) | |
9e193422 | 84 | - XML |
0e59593f | 85 | - XOrg conf files |
5a78beb7 | 86 | |
5ed541e5 | 87 | as source languages, and |
0e59593f | 88 | |
5ed541e5 | 89 | - HTML |
90 | - XHTML | |
9e193422 AG |
91 | - ANSI color escape sequences |
92 | - LaTeX | |
93 | - Texinfo | |
94 | - DocBook | |
5ed541e5 | 95 | |
0e59593f | 96 | |
5ed541e5 | 97 | as output formats. |
5a78beb7 | 98 | |
90467c55 JR |
99 | %description -l pl.UTF-8 |
100 | Ten program z pliku źródłowego tworzy dokument z podświetloną | |
101 | składnią. | |
5ed541e5 | 102 | |
90467c55 | 103 | Aktualnie obsługiwane języki źródłowe to: |
5ed541e5 | 104 | |
0e59593f AG |
105 | - Ada |
106 | - Asm (nowość) | |
107 | - Applescript (nowość) | |
108 | - Awk (nowość) | |
9e193422 | 109 | - Autoconf files |
0e59593f | 110 | - Bat (nowość) |
9e193422 AG |
111 | - Bib |
112 | - Bison | |
0e59593f AG |
113 | - C/C++ |
114 | - C# | |
115 | - Clipper (nowość) | |
116 | - Cobol (nowość) | |
117 | - Configuration files (generic) | |
9e193422 AG |
118 | - Caml |
119 | - Changelog | |
120 | - Css | |
0e59593f | 121 | - D (nowość) |
9e193422 | 122 | - Diff |
0e59593f AG |
123 | - Erlang (nowość) |
124 | - errors (compiler output) (nowość) | |
9e193422 AG |
125 | - Flex |
126 | - Fortran | |
127 | - GLSL | |
0e59593f | 128 | - Haskell |
9e193422 AG |
129 | - Haxe |
130 | - Html | |
131 | - ini files | |
5ed541e5 | 132 | - Java |
133 | - Javascript | |
9e193422 AG |
134 | - KDE desktop files |
135 | - Latex | |
136 | - Ldap files | |
137 | - Logtalk | |
138 | - Log files | |
139 | - lsm files (Linux Software Map) | |
140 | - Lua | |
141 | - Makefile | |
0e59593f | 142 | - Manifest (nowość) |
9e193422 AG |
143 | - M4 |
144 | - ML | |
0e59593f | 145 | - Oz |
9e193422 | 146 | - Pascal |
5ed541e5 | 147 | - Perl |
0e59593f | 148 | - pkg-config files |
9e193422 AG |
149 | - PHP |
150 | - Postscript | |
151 | - Prolog | |
152 | - Properties files | |
5ed541e5 | 153 | - Python |
9e193422 | 154 | - RPM Spec files |
5ed541e5 | 155 | - Ruby |
0e59593f | 156 | - Scala |
9e193422 AG |
157 | - Shell |
158 | - S-Lang | |
159 | - Sql | |
160 | - Tcl | |
0e59593f AG |
161 | - Texinfo |
162 | - VBscript (nowość) | |
9e193422 | 163 | - XML |
0e59593f | 164 | - XOrg conf files |
5ed541e5 | 165 | |
90467c55 | 166 | a wynikiem może być: |
5ed541e5 | 167 | |
168 | - HTML | |
169 | - XHTML | |
9e193422 AG |
170 | - ANSI color escape sequences |
171 | - LaTeX | |
172 | - Texinfo | |
173 | - DocBook | |
174 | ||
bbdd359f JB |
175 | %package libs |
176 | Summary: Source highlight library | |
177 | Summary(pl.UTF-8): Biblioteka podświetlania składni | |
178 | Group: Libraries | |
179 | ||
180 | %description libs | |
181 | Source highlight library. | |
182 | ||
183 | %description libs -l pl.UTF-8 | |
184 | Biblioteka podświetlania składni. | |
185 | ||
0e59593f AG |
186 | %package devel |
187 | Summary: Header file for srchlite library | |
188 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki srchlite | |
189 | Group: Development/Libraries | |
3c32c45d | 190 | Requires: %{name}-libs = %{version}-%{release} |
88a857be JB |
191 | Requires: boost-devel >= 1.36.0 |
192 | Requires: libstdc++-devel | |
0e59593f AG |
193 | |
194 | %description devel | |
195 | Header file for srchlite library. | |
196 | ||
197 | %description devel -l pl.UTF-8 | |
198 | Plik nagłówkowy biblioteki srchlite. | |
199 | ||
0e59593f AG |
200 | %package static |
201 | Summary: Static source-highlight library | |
202 | Summary(pl.UTF-8): Statyczna biblioteka source-highlight | |
203 | Group: Development/Libraries | |
3c32c45d | 204 | Requires: %{name}-devel = %{version}-%{release} |
0e59593f AG |
205 | |
206 | %description static | |
207 | Statoic source highlight library. | |
208 | ||
209 | %description static -l pl.UTF-8 | |
210 | Statyczna biblioteka podświetlania składni. | |
211 | ||
9e193422 AG |
212 | %package -n bash-completion-source-highlight |
213 | Summary: bash-completion for source-higlight | |
214 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla pakietu source-highlight | |
215 | Group: Applications/Shells | |
216 | Requires: bash-completion | |
217 | ||
218 | %description -n bash-completion-source-highlight | |
219 | This package provides bash-completion for source-highlight. | |
220 | ||
221 | %description -n bash-completion-source-highlight -l pl.UTF-8 | |
0e59593f AG |
222 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla pakiet |
223 | source-highlight. | |
10a403aa | 224 | |
5a78beb7 | 225 | %prep |
226 | %setup -q | |
41351bf5 | 227 | %patch0 -p1 |
5a78beb7 | 228 | |
229 | %build | |
5ed04ced | 230 | cp -f /usr/share/automake/config.sub . |
6237e2ed | 231 | %configure \ |
232 | --with-boost-libdir=%{_libdir} | |
5a78beb7 | 233 | %{__make} |
234 | ||
235 | %install | |
236 | rm -rf $RPM_BUILD_ROOT | |
a2a9e200 | 237 | install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
5a78beb7 | 238 | |
aa683887 | 239 | %{__make} install \ |
bada9daf | 240 | DESTDIR=$RPM_BUILD_ROOT |
241 | ||
2353fd29 JR |
242 | %{__rm} -rf docdir-%{name}-%{version} |
243 | %{__mv} -f $RPM_BUILD_ROOT%{_docdir}/%{name} docdir-%{name}-%{version} | |
244 | ||
091814d2 | 245 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsource-highlight.la |
5a78beb7 | 246 | |
5c844ddf JB |
247 | %clean |
248 | rm -rf $RPM_BUILD_ROOT | |
249 | ||
fb4c9b56 | 250 | %post -p /sbin/postshell |
8b74804b | 251 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 252 | |
fb4c9b56 | 253 | %postun -p /sbin/postshell |
8b74804b | 254 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 255 | |
0e59593f AG |
256 | %post libs -p /sbin/ldconfig |
257 | %postun libs -p /sbin/ldconfig | |
258 | ||
5a78beb7 | 259 | %files |
260 | %defattr(644,root,root,755) | |
5ed04ced | 261 | %doc AUTHORS ChangeLog NEWS README THANKS TODO.txt doc/{*.css,*.html,*.java} |
2353fd29 | 262 | %doc docdir-%{name}-%{version}/* |
41351bf5 JB |
263 | %attr(755,root,root) %{_bindir}/check-regexp |
264 | %attr(755,root,root) %{_bindir}/cpp2html | |
265 | %attr(755,root,root) %{_bindir}/java2html | |
266 | %attr(755,root,root) %{_bindir}/source-highlight | |
091814d2 | 267 | %attr(755,root,root) %{_bindir}/source-highlight-esc.sh |
0e59593f | 268 | %attr(755,root,root) %{_bindir}/source-highlight-settings |
41351bf5 | 269 | %attr(755,root,root) %{_bindir}/src-hilite-lesspipe.sh |
acfee9b6 | 270 | %{_mandir}/man1/check-regexp.1* |
41351bf5 | 271 | %{_mandir}/man1/source-highlight.1* |
0e59593f | 272 | %{_mandir}/man1/source-highlight-settings.1* |
aa683887 | 273 | %dir %{_datadir}/%{name} |
5ed04ced | 274 | %{_datadir}/%{name}/* |
275 | %{_infodir}/source-highlight.info* | |
0e59593f AG |
276 | %{_infodir}/source-highlight-lib.info* |
277 | ||
bbdd359f JB |
278 | %files libs |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_libdir}/libsource-highlight.so.*.*.* | |
281 | %attr(755,root,root) %ghost %{_libdir}/libsource-highlight.so.4 | |
282 | ||
0e59593f AG |
283 | %files devel |
284 | %defattr(644,root,root,755) | |
3c32c45d | 285 | %attr(755,root,root) %{_libdir}/libsource-highlight.so |
0e59593f | 286 | %{_includedir}/srchilite |
3c32c45d | 287 | %{_pkgconfigdir}/source-highlight.pc |
0e59593f | 288 | |
0e59593f AG |
289 | %files static |
290 | %defattr(644,root,root,755) | |
3c32c45d | 291 | %{_libdir}/libsource-highlight.a |
9e193422 AG |
292 | |
293 | %files -n bash-completion-source-highlight | |
294 | %defattr(644,root,root,755) | |
8cc44e39 | 295 | %{_sysconfdir}/bash_completion.d/source-highlight |