| 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 | Name: source-highlight |
|---|
| 8 | Summary: Syntax highlighting for source documents |
|---|
| 9 | Version: 3.1.8 |
|---|
| 10 | Release: 2%{?_dist_release} |
|---|
| 11 | Group: Development/Tools |
|---|
| 12 | Vendor: Project Vine |
|---|
| 13 | Distribution: Vine Linux |
|---|
| 14 | |
|---|
| 15 | License: GPLv3 |
|---|
| 16 | Source: ftp://ftp.gnu.org/gnu/source-highlight/%{name}-%{version}.tar.gz |
|---|
| 17 | URL: http://www.gnu.org/software/src-highlite/ |
|---|
| 18 | |
|---|
| 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 |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | %description |
|---|
| 30 | This program, given a source file, produces a document |
|---|
| 31 | with syntax highlighting. Both source languages and output formats |
|---|
| 32 | can be specified with a simple syntax and added dynamically. At the |
|---|
| 33 | moment this package can handle many programming languages, such as, |
|---|
| 34 | e.g., Java, C/C++, Prolog, Perl, Php3, Python, Flex, ChangeLog, etc. |
|---|
| 35 | as source languages, and some output formats such, as, e.g., HTML, |
|---|
| 36 | XHTML, LaTeX, etc. |
|---|
| 37 | |
|---|
| 38 | %package devel |
|---|
| 39 | Summary: Development environment of source-highlight |
|---|
| 40 | Group: Development/Libraries |
|---|
| 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 | |
|---|
| 50 | %prep |
|---|
| 51 | %setup -q |
|---|
| 52 | |
|---|
| 53 | %build |
|---|
| 54 | %configure --disable-static --with-boost-regex=boost_regex |
|---|
| 55 | make %{?_smp_mflags} |
|---|
| 56 | |
|---|
| 57 | %install |
|---|
| 58 | rm -rf $RPM_BUILD_ROOT |
|---|
| 59 | |
|---|
| 60 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 61 | |
|---|
| 62 | rm -rf pkgdoc |
|---|
| 63 | mv %{buildroot}%{_datadir}/doc/source-highlight pkgdoc |
|---|
| 64 | |
|---|
| 65 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la |
|---|
| 66 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | %clean |
|---|
| 70 | rm -rf $RPM_BUILD_ROOT |
|---|
| 71 | |
|---|
| 72 | %post |
|---|
| 73 | /sbin/install-info %{_infodir}/source-highlight.info.gz %{_infodir}/dir |
|---|
| 74 | /sbin/install-info %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir |
|---|
| 75 | |
|---|
| 76 | %preun |
|---|
| 77 | if [ $1 = 0 ]; then |
|---|
| 78 | /sbin/install-info --delete %{_infodir}/source-highlight.info.gz %{_infodir}/dir |
|---|
| 79 | /sbin/install-info --delete %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir |
|---|
| 80 | fi |
|---|
| 81 | |
|---|
| 82 | %files |
|---|
| 83 | %defattr(-, root, root) |
|---|
| 84 | %license COPYING |
|---|
| 85 | %doc pkgdoc/* |
|---|
| 86 | %doc README ChangeLog TODO.txt AUTHORS THANKS |
|---|
| 87 | %dir %{_sysconfdir}/bash_completion.d |
|---|
| 88 | %{_sysconfdir}/bash_completion.d/source-highlight |
|---|
| 89 | %{_bindir}/* |
|---|
| 90 | %{_libdir}/*.so.* |
|---|
| 91 | %{_datadir}/%{name}/* |
|---|
| 92 | %{_mandir}/man?/* |
|---|
| 93 | %{_infodir}/source-highlight*.info* |
|---|
| 94 | |
|---|
| 95 | %files devel |
|---|
| 96 | %defattr(-, root, root) |
|---|
| 97 | %{_includedir}/srchilite/*.h |
|---|
| 98 | %{_libdir}/*.so |
|---|
| 99 | %{_libdir}/pkgconfig/source-highlight.pc |
|---|
| 100 | #{_datadir}/aclocal/*.m4 |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | %changelog |
|---|
| 104 | * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.8-2 |
|---|
| 105 | - rebuilt with boost-1.72.0. |
|---|
| 106 | |
|---|
| 107 | * Wed May 23 2018 Toshiaki Ara <ara_t@384.jp> 3.1.8-1 |
|---|
| 108 | - updated to 3.1.8 |
|---|
| 109 | |
|---|
| 110 | * Mon Jan 08 2018 Toshiaki Ara <ara_t@384.jp> 3.1.7-3 |
|---|
| 111 | - rebuild with libboost-1.66.0 |
|---|
| 112 | |
|---|
| 113 | * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 3.1.7-2 |
|---|
| 114 | - rebuild with gcc-5.4.0 |
|---|
| 115 | |
|---|
| 116 | * Wed Oct 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1.7-1 |
|---|
| 117 | - updated to 3.1.7 |
|---|
| 118 | - changed Group to Development/Tools |
|---|
| 119 | |
|---|
| 120 | * Mon Dec 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-3 |
|---|
| 121 | - rebuild with libboost-1.54.0 |
|---|
| 122 | |
|---|
| 123 | * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 3.1.4-2 |
|---|
| 124 | - rebuilt with libboost-1.45.0 |
|---|
| 125 | |
|---|
| 126 | * Sun Oct 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1 |
|---|
| 127 | - initial build for Vine Linux |
|---|
| 128 | |
|---|