]>
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 |
acfee9b6 | 4 | Version: 2.10 |
6314a4d5 | 5 | Release: 5 |
41351bf5 | 6 | License: GPL v3+ |
5a78beb7 | 7 | Group: Applications/Publishing |
41351bf5 | 8 | Source0: http://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz |
acfee9b6 | 9 | # Source0-md5: 03e9cf03580873b76ca0a89f0468b146 |
41351bf5 | 10 | Patch0: %{name}-info.patch |
0cc89293 | 11 | Patch1: %{name}-am.patch |
5ed541e5 | 12 | URL: http://www.gnu.org/software/src-highlite/ |
5ed04ced | 13 | BuildRequires: automake |
14 | BuildRequires: bison | |
6db7bfa9 | 15 | BuildRequires: boost-devel >= 1.36.0 |
5ed04ced | 16 | BuildRequires: flex |
5a78beb7 | 17 | BuildRequires: libstdc++-devel |
41351bf5 | 18 | BuildRequires: texinfo |
5a78beb7 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | This program, given a source file, produces a document with syntax | |
23 | highlighting. | |
24 | ||
10a403aa | 25 | At the moment this package can handle: |
5a78beb7 | 26 | |
5ed541e5 | 27 | - Java |
28 | - Javascript | |
29 | - C/C++ | |
30 | - Prolog | |
31 | - Perl | |
32 | - Php3 | |
33 | - Python | |
34 | - Flex | |
35 | - ChangeLog | |
36 | - Ruby | |
37 | - Lua | |
38 | - Caml | |
39 | - Sml | |
40 | - Log | |
5a78beb7 | 41 | |
5ed541e5 | 42 | as source languages, and |
43 | ||
44 | - HTML | |
45 | - XHTML | |
46 | - ANSI color escape sequences (you can use this feature with less) | |
47 | ||
48 | as output formats. | |
5a78beb7 | 49 | |
90467c55 JR |
50 | %description -l pl.UTF-8 |
51 | Ten program z pliku źródłowego tworzy dokument z podświetloną | |
52 | składnią. | |
5ed541e5 | 53 | |
90467c55 | 54 | Aktualnie obsługiwane języki źródłowe to: |
5ed541e5 | 55 | |
56 | - Java | |
57 | - Javascript | |
58 | - C/C++ | |
59 | - Prolog | |
60 | - Perl | |
61 | - Php3 | |
62 | - Python | |
63 | - Flex | |
64 | - ChangeLog | |
65 | - Ruby | |
66 | - Lua | |
67 | - Caml | |
68 | - Sml | |
69 | - Log | |
70 | ||
90467c55 | 71 | a wynikiem może być: |
5ed541e5 | 72 | |
73 | - HTML | |
74 | - XHTML | |
75 | - kolorowa sekwencja ANSI | |
10a403aa | 76 | |
5a78beb7 | 77 | %prep |
78 | %setup -q | |
41351bf5 | 79 | %patch0 -p1 |
0cc89293 | 80 | %patch1 -p1 |
5a78beb7 | 81 | |
82 | %build | |
5ed04ced | 83 | cp -f /usr/share/automake/config.sub . |
84 | %configure | |
5a78beb7 | 85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
a2a9e200 | 89 | install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
5a78beb7 | 90 | |
aa683887 | 91 | %{__make} install \ |
bada9daf | 92 | DESTDIR=$RPM_BUILD_ROOT |
93 | ||
94 | mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
5a78beb7 | 95 | |
5c844ddf JB |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
fb4c9b56 | 99 | %post -p /sbin/postshell |
8b74804b | 100 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 101 | |
fb4c9b56 | 102 | %postun -p /sbin/postshell |
8b74804b | 103 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 104 | |
5a78beb7 | 105 | %files |
106 | %defattr(644,root,root,755) | |
5ed04ced | 107 | %doc AUTHORS ChangeLog NEWS README THANKS TODO.txt doc/{*.css,*.html,*.java} |
41351bf5 JB |
108 | %attr(755,root,root) %{_bindir}/check-regexp |
109 | %attr(755,root,root) %{_bindir}/cpp2html | |
110 | %attr(755,root,root) %{_bindir}/java2html | |
111 | %attr(755,root,root) %{_bindir}/source-highlight | |
112 | %attr(755,root,root) %{_bindir}/src-hilite-lesspipe.sh | |
acfee9b6 | 113 | %{_mandir}/man1/check-regexp.1* |
41351bf5 | 114 | %{_mandir}/man1/source-highlight.1* |
aa683887 | 115 | %dir %{_datadir}/%{name} |
5ed04ced | 116 | %{_datadir}/%{name}/* |
117 | %{_infodir}/source-highlight.info* |