1 | # |
---|
2 | # spec file for package GNU Source Highlight (Version 1.x) |
---|
3 | # |
---|
4 | # Author: Christian W. Zuckschwerdt <zany@triq.net>, Jan 2003 |
---|
5 | # |
---|
6 | |
---|
7 | Summary: syntax highlighting for source documents |
---|
8 | Name: source-highlight |
---|
9 | Version: 3.1.4 |
---|
10 | Release: 2%{?_dist_release} |
---|
11 | License: GPL |
---|
12 | Group: Utilities/Console |
---|
13 | Source: ftp://ftp.gnu.org/gnu/source-highlight/%{name}-%{version}.tar.gz |
---|
14 | URL: http://www.gnu.org/software/src-highlite/ |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | |
---|
17 | BuildRequires: libboost-devel >= 1.33.1 |
---|
18 | BuildRequires: libboost-regex >= 1.33.1 |
---|
19 | BuildRequires: bison |
---|
20 | BuildRequires: flex |
---|
21 | BuildRequires: ctags |
---|
22 | BuildRequires: help2man |
---|
23 | Requires: ctags |
---|
24 | |
---|
25 | Vendor: Project Vine |
---|
26 | Distribution: Vine Linux |
---|
27 | |
---|
28 | %description |
---|
29 | This program, given a source file, produces a document |
---|
30 | with syntax highlighting. Both source languages and output formats |
---|
31 | can be specified with a simple syntax and added dynamically. At the |
---|
32 | moment this package can handle many programming languages, such as, |
---|
33 | e.g., Java, C/C++, Prolog, Perl, Php3, Python, Flex, ChangeLog, etc. |
---|
34 | as source languages, and some output formats such, as, e.g., HTML, |
---|
35 | XHTML, LaTeX, etc. |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: Development environment of source-highlight |
---|
39 | Group: Development/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | Requires: pkgconfig |
---|
42 | Requires: libboost-devel |
---|
43 | Requires: libboost-regex |
---|
44 | |
---|
45 | %description devel |
---|
46 | Header files and libraries for building a extension library for the |
---|
47 | source-highlight |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup -q |
---|
51 | |
---|
52 | %build |
---|
53 | %configure --disable-static --with-boost-regex=boost_regex |
---|
54 | make |
---|
55 | |
---|
56 | %install |
---|
57 | rm -rf $RPM_BUILD_ROOT |
---|
58 | |
---|
59 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
60 | |
---|
61 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la |
---|
62 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir |
---|
63 | |
---|
64 | %clean |
---|
65 | rm -rf $RPM_BUILD_ROOT |
---|
66 | |
---|
67 | %post |
---|
68 | /sbin/install-info %{_infodir}/source-highlight.info.gz %{_infodir}/dir |
---|
69 | /sbin/install-info %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir |
---|
70 | |
---|
71 | %preun |
---|
72 | if [ $1 = 0 ]; then |
---|
73 | /sbin/install-info --delete %{_infodir}/source-highlight.info.gz %{_infodir}/dir |
---|
74 | /sbin/install-info --delete %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir |
---|
75 | fi |
---|
76 | |
---|
77 | %files |
---|
78 | %defattr(-, root, root) |
---|
79 | %doc README COPYING ChangeLog TODO.txt AUTHORS THANKS |
---|
80 | %{_sysconfdir}/bash_completion.d/source-highlight-bash-completion |
---|
81 | %{_bindir}/* |
---|
82 | %{_libdir}/*.so.* |
---|
83 | %{_datadir}/%{name}/* |
---|
84 | %{_datadir}/doc/source-highlight/* |
---|
85 | %{_mandir}/man?/* |
---|
86 | %{_infodir}/source-highlight*.info* |
---|
87 | |
---|
88 | %files devel |
---|
89 | %defattr(-, root, root) |
---|
90 | %{_includedir}/srchilite/*.h |
---|
91 | %{_libdir}/*.so |
---|
92 | %{_libdir}/pkgconfig/source-highlight.pc |
---|
93 | %{_datadir}/aclocal/*.m4 |
---|
94 | |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 3.1.4-2 |
---|
98 | - rebuilt with libboost-1.45.0 |
---|
99 | |
---|
100 | * Sun Oct 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1 |
---|
101 | - initial build for Vine Linux |
---|
102 | |
---|