]>
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 |
d031e357 | 4 | Version: 3.1.4 |
be009272 | 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 |
d031e357 | 9 | # Source0-md5: becf8292b84ece6b532b0f0c92b530ee |
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 | ||
0e59593f AG |
175 | %package devel |
176 | Summary: Header file for srchlite library | |
177 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki srchlite | |
178 | Group: Development/Libraries | |
3c32c45d | 179 | Requires: %{name}-libs = %{version}-%{release} |
0e59593f AG |
180 | |
181 | %description devel | |
182 | Header file for srchlite library. | |
183 | ||
184 | %description devel -l pl.UTF-8 | |
185 | Plik nagłówkowy biblioteki srchlite. | |
186 | ||
187 | %package libs | |
188 | Summary: Source highlight library | |
189 | Summary(pl.UTF-8): Biblioteka podświetlania składni | |
190 | Group: Libraries | |
191 | ||
192 | %description libs | |
193 | Source highlight library. | |
194 | ||
195 | %description libs -l pl.UTF-8 | |
196 | Biblioteka podświetlania składni. | |
197 | ||
198 | %package static | |
199 | Summary: Static source-highlight library | |
200 | Summary(pl.UTF-8): Statyczna biblioteka source-highlight | |
201 | Group: Development/Libraries | |
3c32c45d | 202 | Requires: %{name}-devel = %{version}-%{release} |
0e59593f AG |
203 | |
204 | %description static | |
205 | Statoic source highlight library. | |
206 | ||
207 | %description static -l pl.UTF-8 | |
208 | Statyczna biblioteka podświetlania składni. | |
209 | ||
9e193422 AG |
210 | %package -n bash-completion-source-highlight |
211 | Summary: bash-completion for source-higlight | |
212 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla pakietu source-highlight | |
213 | Group: Applications/Shells | |
214 | Requires: bash-completion | |
215 | ||
216 | %description -n bash-completion-source-highlight | |
217 | This package provides bash-completion for source-highlight. | |
218 | ||
219 | %description -n bash-completion-source-highlight -l pl.UTF-8 | |
0e59593f AG |
220 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla pakiet |
221 | source-highlight. | |
10a403aa | 222 | |
5a78beb7 | 223 | %prep |
224 | %setup -q | |
41351bf5 | 225 | %patch0 -p1 |
5a78beb7 | 226 | |
227 | %build | |
5ed04ced | 228 | cp -f /usr/share/automake/config.sub . |
6237e2ed | 229 | %configure \ |
230 | --with-boost-libdir=%{_libdir} | |
5a78beb7 | 231 | %{__make} |
232 | ||
233 | %install | |
234 | rm -rf $RPM_BUILD_ROOT | |
a2a9e200 | 235 | install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
5a78beb7 | 236 | |
aa683887 | 237 | %{__make} install \ |
bada9daf | 238 | DESTDIR=$RPM_BUILD_ROOT |
239 | ||
240 | mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
5a78beb7 | 241 | |
5c844ddf JB |
242 | %clean |
243 | rm -rf $RPM_BUILD_ROOT | |
244 | ||
fb4c9b56 | 245 | %post -p /sbin/postshell |
8b74804b | 246 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 247 | |
fb4c9b56 | 248 | %postun -p /sbin/postshell |
8b74804b | 249 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 250 | |
0e59593f AG |
251 | %post libs -p /sbin/ldconfig |
252 | %postun libs -p /sbin/ldconfig | |
253 | ||
5a78beb7 | 254 | %files |
255 | %defattr(644,root,root,755) | |
5ed04ced | 256 | %doc AUTHORS ChangeLog NEWS README THANKS TODO.txt doc/{*.css,*.html,*.java} |
41351bf5 JB |
257 | %attr(755,root,root) %{_bindir}/check-regexp |
258 | %attr(755,root,root) %{_bindir}/cpp2html | |
259 | %attr(755,root,root) %{_bindir}/java2html | |
260 | %attr(755,root,root) %{_bindir}/source-highlight | |
0e59593f | 261 | %attr(755,root,root) %{_bindir}/source-highlight-settings |
41351bf5 | 262 | %attr(755,root,root) %{_bindir}/src-hilite-lesspipe.sh |
acfee9b6 | 263 | %{_mandir}/man1/check-regexp.1* |
41351bf5 | 264 | %{_mandir}/man1/source-highlight.1* |
0e59593f | 265 | %{_mandir}/man1/source-highlight-settings.1* |
aa683887 | 266 | %dir %{_datadir}/%{name} |
5ed04ced | 267 | %{_datadir}/%{name}/* |
268 | %{_infodir}/source-highlight.info* | |
0e59593f AG |
269 | %{_infodir}/source-highlight-lib.info* |
270 | ||
271 | %files devel | |
272 | %defattr(644,root,root,755) | |
3c32c45d MB |
273 | %attr(755,root,root) %{_libdir}/libsource-highlight.so |
274 | %{_libdir}/libsource-highlight.la | |
0e59593f | 275 | %{_includedir}/srchilite |
3c32c45d | 276 | %{_pkgconfigdir}/source-highlight.pc |
0e59593f AG |
277 | |
278 | %files libs | |
279 | %defattr(644,root,root,755) | |
3c32c45d MB |
280 | %attr(755,root,root) %{_libdir}/libsource-highlight.so.*.*.* |
281 | %attr(755,root,root) %ghost %{_libdir}/libsource-highlight.so.3 | |
0e59593f AG |
282 | |
283 | %files static | |
284 | %defattr(644,root,root,755) | |
3c32c45d | 285 | %{_libdir}/libsource-highlight.a |
9e193422 AG |
286 | |
287 | %files -n bash-completion-source-highlight | |
288 | %defattr(644,root,root,755) | |
289 | %{_sysconfdir}/bash_completion.d/* |