]>
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 |
0fa2a4a7 | 4 | Version: 3.1.8 |
d3f4796d | 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 |
0fa2a4a7 | 9 | # Source0-md5: 3243470706ef5fefdc3e43b5306a4e41 |
41351bf5 | 10 | Patch0: %{name}-info.patch |
5ed541e5 | 11 | URL: http://www.gnu.org/software/src-highlite/ |
0fa2a4a7 | 12 | BuildRequires: bison |
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 | ||
0fa2a4a7 JB |
24 | This package can handle many programming languages, e.g. C/C++, Flex, |
25 | Java, PHP, Perl, Prolog, Python as source languages; and some output | |
26 | formats, e.g. HTML, XHTML, LaTeX. | |
5a78beb7 | 27 | |
90467c55 JR |
28 | %description -l pl.UTF-8 |
29 | Ten program z pliku źródłowego tworzy dokument z podświetloną | |
30 | składnią. | |
5ed541e5 | 31 | |
0fa2a4a7 JB |
32 | Pakiet potrafi obsłużyć wiele języków programowania, np. C/C++, Flex, |
33 | Java, PHP, Perl, Prolog, Python jako języki źródłowe; oraz kilka | |
34 | formatów wyjściowych, np. HTML, XHTML, LaTeX. | |
9e193422 | 35 | |
bbdd359f JB |
36 | %package libs |
37 | Summary: Source highlight library | |
38 | Summary(pl.UTF-8): Biblioteka podświetlania składni | |
39 | Group: Libraries | |
40 | ||
41 | %description libs | |
42 | Source highlight library. | |
43 | ||
44 | %description libs -l pl.UTF-8 | |
45 | Biblioteka podświetlania składni. | |
46 | ||
0e59593f AG |
47 | %package devel |
48 | Summary: Header file for srchlite library | |
49 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki srchlite | |
50 | Group: Development/Libraries | |
3c32c45d | 51 | Requires: %{name}-libs = %{version}-%{release} |
88a857be JB |
52 | Requires: boost-devel >= 1.36.0 |
53 | Requires: libstdc++-devel | |
0e59593f AG |
54 | |
55 | %description devel | |
56 | Header file for srchlite library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Plik nagłówkowy biblioteki srchlite. | |
60 | ||
0e59593f AG |
61 | %package static |
62 | Summary: Static source-highlight library | |
63 | Summary(pl.UTF-8): Statyczna biblioteka source-highlight | |
64 | Group: Development/Libraries | |
3c32c45d | 65 | Requires: %{name}-devel = %{version}-%{release} |
0e59593f AG |
66 | |
67 | %description static | |
68 | Statoic source highlight library. | |
69 | ||
70 | %description static -l pl.UTF-8 | |
71 | Statyczna biblioteka podświetlania składni. | |
72 | ||
9e193422 AG |
73 | %package -n bash-completion-source-highlight |
74 | Summary: bash-completion for source-higlight | |
75 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla pakietu source-highlight | |
76 | Group: Applications/Shells | |
77 | Requires: bash-completion | |
78 | ||
79 | %description -n bash-completion-source-highlight | |
80 | This package provides bash-completion for source-highlight. | |
81 | ||
82 | %description -n bash-completion-source-highlight -l pl.UTF-8 | |
0e59593f AG |
83 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla pakiet |
84 | source-highlight. | |
10a403aa | 85 | |
5a78beb7 | 86 | %prep |
87 | %setup -q | |
41351bf5 | 88 | %patch0 -p1 |
5a78beb7 | 89 | |
90 | %build | |
6237e2ed | 91 | %configure \ |
92 | --with-boost-libdir=%{_libdir} | |
5a78beb7 | 93 | %{__make} |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
a2a9e200 | 97 | install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
5a78beb7 | 98 | |
aa683887 | 99 | %{__make} install \ |
bada9daf | 100 | DESTDIR=$RPM_BUILD_ROOT |
101 | ||
2353fd29 JR |
102 | %{__rm} -rf docdir-%{name}-%{version} |
103 | %{__mv} -f $RPM_BUILD_ROOT%{_docdir}/%{name} docdir-%{name}-%{version} | |
104 | ||
091814d2 | 105 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsource-highlight.la |
5a78beb7 | 106 | |
5c844ddf JB |
107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
fb4c9b56 | 110 | %post -p /sbin/postshell |
8b74804b | 111 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 112 | |
fb4c9b56 | 113 | %postun -p /sbin/postshell |
8b74804b | 114 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5ed04ced | 115 | |
0e59593f AG |
116 | %post libs -p /sbin/ldconfig |
117 | %postun libs -p /sbin/ldconfig | |
118 | ||
5a78beb7 | 119 | %files |
120 | %defattr(644,root,root,755) | |
5ed04ced | 121 | %doc AUTHORS ChangeLog NEWS README THANKS TODO.txt doc/{*.css,*.html,*.java} |
2353fd29 | 122 | %doc docdir-%{name}-%{version}/* |
41351bf5 JB |
123 | %attr(755,root,root) %{_bindir}/check-regexp |
124 | %attr(755,root,root) %{_bindir}/cpp2html | |
125 | %attr(755,root,root) %{_bindir}/java2html | |
126 | %attr(755,root,root) %{_bindir}/source-highlight | |
091814d2 | 127 | %attr(755,root,root) %{_bindir}/source-highlight-esc.sh |
0e59593f | 128 | %attr(755,root,root) %{_bindir}/source-highlight-settings |
41351bf5 | 129 | %attr(755,root,root) %{_bindir}/src-hilite-lesspipe.sh |
acfee9b6 | 130 | %{_mandir}/man1/check-regexp.1* |
41351bf5 | 131 | %{_mandir}/man1/source-highlight.1* |
0e59593f | 132 | %{_mandir}/man1/source-highlight-settings.1* |
aa683887 | 133 | %dir %{_datadir}/%{name} |
5ed04ced | 134 | %{_datadir}/%{name}/* |
135 | %{_infodir}/source-highlight.info* | |
0e59593f AG |
136 | %{_infodir}/source-highlight-lib.info* |
137 | ||
bbdd359f JB |
138 | %files libs |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_libdir}/libsource-highlight.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libsource-highlight.so.4 | |
142 | ||
0e59593f AG |
143 | %files devel |
144 | %defattr(644,root,root,755) | |
3c32c45d | 145 | %attr(755,root,root) %{_libdir}/libsource-highlight.so |
0e59593f | 146 | %{_includedir}/srchilite |
3c32c45d | 147 | %{_pkgconfigdir}/source-highlight.pc |
0e59593f | 148 | |
0e59593f AG |
149 | %files static |
150 | %defattr(644,root,root,755) | |
3c32c45d | 151 | %{_libdir}/libsource-highlight.a |
9e193422 AG |
152 | |
153 | %files -n bash-completion-source-highlight | |
154 | %defattr(644,root,root,755) | |
8cc44e39 | 155 | %{_sysconfdir}/bash_completion.d/source-highlight |