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