[2128] | 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 | |
---|
[12387] | 7 | Name: source-highlight |
---|
| 8 | Summary: Syntax highlighting for source documents |
---|
| 9 | Version: 3.1.8 |
---|
[12537] | 10 | Release: 3%{?_dist_release} |
---|
| 11 | Group: programming |
---|
[12387] | 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
[8986] | 14 | |
---|
[12387] | 15 | License: GPLv3 |
---|
[12537] | 16 | URL: http://www.gnu.org/software/src-highlite/ |
---|
[12387] | 17 | Source: ftp://ftp.gnu.org/gnu/source-highlight/%{name}-%{version}.tar.gz |
---|
[2128] | 18 | |
---|
[12387] | 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | BuildRequires: libboost-devel >= 1.33.1 |
---|
| 21 | BuildRequires: libboost-regex >= 1.33.1 |
---|
| 22 | BuildRequires: bison |
---|
| 23 | BuildRequires: flex |
---|
| 24 | BuildRequires: ctags |
---|
| 25 | BuildRequires: help2man |
---|
| 26 | Requires: ctags |
---|
[2128] | 27 | |
---|
[12387] | 28 | %description |
---|
[2128] | 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 | |
---|
[12537] | 37 | |
---|
[2128] | 38 | %package devel |
---|
| 39 | Summary: Development environment of source-highlight |
---|
[12537] | 40 | Group: programming |
---|
[2128] | 41 | Requires: %{name} = %{version}-%{release} |
---|
| 42 | Requires: pkgconfig |
---|
| 43 | Requires: libboost-devel |
---|
| 44 | Requires: libboost-regex |
---|
| 45 | |
---|
| 46 | %description devel |
---|
| 47 | Header files and libraries for building a extension library for the |
---|
| 48 | source-highlight |
---|
| 49 | |
---|
[12537] | 50 | |
---|
| 51 | %debug_package |
---|
| 52 | |
---|
| 53 | |
---|
[2128] | 54 | %prep |
---|
| 55 | %setup -q |
---|
| 56 | |
---|
[12537] | 57 | |
---|
[2128] | 58 | %build |
---|
| 59 | %configure --disable-static --with-boost-regex=boost_regex |
---|
[8986] | 60 | make %{?_smp_mflags} |
---|
[2128] | 61 | |
---|
[12537] | 62 | |
---|
[2128] | 63 | %install |
---|
| 64 | rm -rf $RPM_BUILD_ROOT |
---|
| 65 | |
---|
| 66 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 67 | |
---|
[12387] | 68 | rm -rf pkgdoc |
---|
| 69 | mv %{buildroot}%{_datadir}/doc/source-highlight pkgdoc |
---|
| 70 | |
---|
[2128] | 71 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la |
---|
| 72 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir |
---|
| 73 | |
---|
[12387] | 74 | |
---|
[2128] | 75 | %clean |
---|
| 76 | rm -rf $RPM_BUILD_ROOT |
---|
| 77 | |
---|
[12537] | 78 | |
---|
[2128] | 79 | %post |
---|
| 80 | /sbin/install-info %{_infodir}/source-highlight.info.gz %{_infodir}/dir |
---|
| 81 | /sbin/install-info %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir |
---|
| 82 | |
---|
| 83 | %preun |
---|
| 84 | if [ $1 = 0 ]; then |
---|
| 85 | /sbin/install-info --delete %{_infodir}/source-highlight.info.gz %{_infodir}/dir |
---|
| 86 | /sbin/install-info --delete %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir |
---|
| 87 | fi |
---|
| 88 | |
---|
| 89 | %files |
---|
| 90 | %defattr(-, root, root) |
---|
[12387] | 91 | %license COPYING |
---|
| 92 | %doc pkgdoc/* |
---|
| 93 | %doc README ChangeLog TODO.txt AUTHORS THANKS |
---|
| 94 | %dir %{_sysconfdir}/bash_completion.d |
---|
[8986] | 95 | %{_sysconfdir}/bash_completion.d/source-highlight |
---|
[2128] | 96 | %{_bindir}/* |
---|
| 97 | %{_libdir}/*.so.* |
---|
| 98 | %{_datadir}/%{name}/* |
---|
| 99 | %{_mandir}/man?/* |
---|
| 100 | %{_infodir}/source-highlight*.info* |
---|
| 101 | |
---|
| 102 | %files devel |
---|
| 103 | %defattr(-, root, root) |
---|
| 104 | %{_includedir}/srchilite/*.h |
---|
| 105 | %{_libdir}/*.so |
---|
| 106 | %{_libdir}/pkgconfig/source-highlight.pc |
---|
[8986] | 107 | #{_datadir}/aclocal/*.m4 |
---|
[2128] | 108 | |
---|
| 109 | |
---|
| 110 | %changelog |
---|
[12537] | 111 | * Sat Feb 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.8-3 |
---|
| 112 | - rebuilt with boost-1.75.0. |
---|
| 113 | |
---|
[12387] | 114 | * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.8-2 |
---|
| 115 | - rebuilt with boost-1.72.0. |
---|
| 116 | |
---|
[11678] | 117 | * Wed May 23 2018 Toshiaki Ara <ara_t@384.jp> 3.1.8-1 |
---|
| 118 | - updated to 3.1.8 |
---|
| 119 | |
---|
[11362] | 120 | * Mon Jan 08 2018 Toshiaki Ara <ara_t@384.jp> 3.1.7-3 |
---|
| 121 | - rebuild with libboost-1.66.0 |
---|
| 122 | |
---|
[10771] | 123 | * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 3.1.7-2 |
---|
| 124 | - rebuild with gcc-5.4.0 |
---|
| 125 | |
---|
[8986] | 126 | * Wed Oct 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1.7-1 |
---|
| 127 | - updated to 3.1.7 |
---|
| 128 | - changed Group to Development/Tools |
---|
| 129 | |
---|
[8034] | 130 | * Mon Dec 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-3 |
---|
| 131 | - rebuild with libboost-1.54.0 |
---|
| 132 | |
---|
[2529] | 133 | * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 3.1.4-2 |
---|
| 134 | - rebuilt with libboost-1.45.0 |
---|
| 135 | |
---|
[2128] | 136 | * Sun Oct 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1 |
---|
| 137 | - initial build for Vine Linux |
---|
| 138 | |
---|