2005-05-11 07:25:31 +00:00
|
|
|
Summary: Produces a document with syntax highlighting
|
|
|
|
Name: source-highlight
|
2010-06-07 12:51:54 +00:00
|
|
|
Version: 3.1.3
|
2010-08-05 16:55:04 +00:00
|
|
|
Release: 3%{?dist}
|
2005-05-11 07:25:31 +00:00
|
|
|
Group: Development/Tools
|
2007-12-14 22:50:43 +00:00
|
|
|
License: GPLv3+
|
2010-06-07 12:51:54 +00:00
|
|
|
Source0: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz
|
|
|
|
Source1: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz.sig
|
2005-05-11 07:25:31 +00:00
|
|
|
URL: http://www.gnu.org/software/src-highlite/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2005-06-20 09:48:43 +00:00
|
|
|
BuildRequires: bison, flex, boost-devel
|
2010-06-07 12:51:54 +00:00
|
|
|
BuildRequires: help2man, ctags, chrpath
|
2010-07-27 18:16:55 +00:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
2005-10-17 10:11:25 +00:00
|
|
|
Requires: ctags
|
2004-11-08 05:21:35 +00:00
|
|
|
|
|
|
|
%description
|
2005-03-05 19:28:28 +00:00
|
|
|
This program, given a source file, produces a document with syntax
|
2004-11-08 05:21:35 +00:00
|
|
|
highlighting. At the moment this package can handle :
|
2005-05-11 07:25:31 +00:00
|
|
|
Java, Javascript, C/C++, Prolog, Perl, Php3, Python, Flex, ChangeLog, Ruby,
|
|
|
|
Lua, Caml, Sml and Log as source languages, and HTML, XHTML and ANSI color
|
|
|
|
escape sequences as output format.
|
2004-11-08 05:21:35 +00:00
|
|
|
|
2010-06-07 12:51:54 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for source-highlight
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for source-highlight
|
|
|
|
|
2004-11-08 05:21:35 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2010-06-07 12:51:54 +00:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-boost-regex=boost_regex
|
2004-11-08 05:21:35 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2005-05-11 07:25:31 +00:00
|
|
|
mv $RPM_BUILD_ROOT%{_datadir}/doc/ docs
|
2007-12-14 22:50:43 +00:00
|
|
|
%{__sed} -i 's/\r//' docs/source-highlight/*.css
|
2004-11-08 05:21:35 +00:00
|
|
|
|
2007-09-22 16:31:20 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
2010-06-07 12:51:54 +00:00
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/source-highlight
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/source-highlight-settings
|
2007-09-22 16:31:20 +00:00
|
|
|
|
2004-11-08 05:21:35 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-06-20 09:48:43 +00:00
|
|
|
%post
|
2010-06-07 12:51:54 +00:00
|
|
|
/sbin/ldconfig
|
2005-06-20 09:48:43 +00:00
|
|
|
/sbin/install-info %{_infodir}/source-highlight.info \
|
|
|
|
%{_infodir}/dir 2>/dev/null || :
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/source-highlight.info \
|
|
|
|
%{_infodir}/dir 2>/dev/null || :
|
|
|
|
fi
|
|
|
|
|
2010-06-07 12:51:54 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2004-11-08 05:21:35 +00:00
|
|
|
%files
|
|
|
|
%defattr (-,root,root)
|
2005-05-11 07:25:31 +00:00
|
|
|
%doc docs/source-highlight/*
|
2004-11-08 05:21:35 +00:00
|
|
|
%{_bindir}/cpp2html
|
|
|
|
%{_bindir}/java2html
|
|
|
|
%{_bindir}/source-highlight
|
2007-09-16 19:46:15 +00:00
|
|
|
%{_bindir}/check-regexp
|
2010-06-07 12:51:54 +00:00
|
|
|
%{_bindir}/source-highlight-settings
|
2004-11-08 05:21:35 +00:00
|
|
|
%{_bindir}/src-hilite-lesspipe.sh
|
2010-06-07 12:51:54 +00:00
|
|
|
%dir %{_sysconfdir}/bash_completion.d
|
|
|
|
%{_sysconfdir}/bash_completion.d/source-highlight-bash-completion
|
|
|
|
%{_libdir}/libsource-highlight.so.*
|
|
|
|
%dir %{_datadir}/source-highlight
|
|
|
|
%{_datadir}/source-highlight/*
|
2004-11-08 05:21:35 +00:00
|
|
|
%{_mandir}/man1/*
|
2010-06-07 12:51:54 +00:00
|
|
|
%{_infodir}/source-highlight*.info*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%dir %{_includedir}/srchilite
|
|
|
|
%{_libdir}/libsource-highlight.so
|
|
|
|
%{_libdir}/pkgconfig/source-highlight.pc
|
|
|
|
%{_includedir}/srchilite/*.h
|
|
|
|
%{_datadir}/aclocal/ax_boost_*.m4
|
2004-11-08 05:21:35 +00:00
|
|
|
|
|
|
|
%changelog
|
2010-08-05 16:55:04 +00:00
|
|
|
* Thu Aug 5 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 3.1.3-3
|
|
|
|
- rebuild for new boost (again)
|
|
|
|
|
2010-07-27 18:16:55 +00:00
|
|
|
* Tue Jul 27 2010 Christoph Wickert <cwickert@fedoraproject.org> - 3.1.3-2
|
|
|
|
- Rebuild for new boost
|
|
|
|
- Fix Requires for %%post and %%preun
|
|
|
|
|
2010-06-07 12:51:54 +00:00
|
|
|
* Fri Jun 04 2010 Leigh Scott <leigh123linux@googlemail.com> - 3.1.3-1
|
|
|
|
- updated to 3.1.3
|
|
|
|
- change configure command so it finds boost_regex
|
|
|
|
- fix source url's
|
|
|
|
- add devel package
|
|
|
|
- fix directory ownership
|
|
|
|
- fix rpath on binary
|
|
|
|
|
2010-01-22 13:39:41 +00:00
|
|
|
* Fri Jan 22 2010 Adrian Reber <adrian@lisas.de> - 2.10-5
|
|
|
|
- rebuilt for new boost.
|
|
|
|
|
2009-07-27 04:37:07 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 02:12:47 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-18 01:41:12 +00:00
|
|
|
* Wed Dec 17 2008 Benjamin Kosnik <bkoz@redhat.com> - 2.10-2
|
|
|
|
- Rebuild for boost-1.37.0.
|
|
|
|
|
2008-08-23 11:46:06 +00:00
|
|
|
* Sat Aug 16 2008 Adrian Reber <adrian@lisas.de> - 2.10-1
|
|
|
|
- updated to 2.10
|
|
|
|
|
2008-06-13 09:31:58 +00:00
|
|
|
* Fri Jun 13 2008 Adrian Reber <adrian@lisas.de> - 2.9-1
|
|
|
|
- updated to 2.9
|
|
|
|
- removed upstreamed gcc43 patch
|
|
|
|
|
2008-02-12 09:18:52 +00:00
|
|
|
* Tue Feb 12 2008 Adrian Reber <adrian@lisas.de> - 2.8-2
|
|
|
|
- added gcc43 patch
|
|
|
|
|
2007-12-14 22:50:43 +00:00
|
|
|
* Fri Dec 14 2007 Adrian Reber <adrian@lisas.de> - 2.8-1
|
|
|
|
- updated to 2.8
|
|
|
|
- license changed to GPLv3+
|
|
|
|
|
2007-09-16 19:46:15 +00:00
|
|
|
* Sun Sep 16 2007 Adrian Reber <adrian@lisas.de> - 2.7-1
|
|
|
|
- updated to 2.7
|
|
|
|
- updated files section
|
|
|
|
- updated license
|
|
|
|
|
2007-08-20 10:14:02 +00:00
|
|
|
* Mon Aug 20 2007 Caolan McNamara <caolanm@redhat.com> - 2.4-2
|
|
|
|
- rebuild for boost rebuild
|
|
|
|
|
2006-09-15 21:45:46 +00:00
|
|
|
* Fri Sep 15 2006 Adrian Reber <adrian@lisas.de> - 2.4-1
|
|
|
|
- updated to 2.4
|
|
|
|
|
2006-06-23 18:13:04 +00:00
|
|
|
* Wed Mar 21 2006 Adrian Reber <adrian@lisas.de> - 2.3-2
|
|
|
|
- using a new url.lang to fix #195720
|
|
|
|
(https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=131352)
|
|
|
|
|
2006-03-13 01:39:39 +00:00
|
|
|
* Sun Mar 12 2006 Adrian Reber <adrian@lisas.de> - 2.3-1
|
|
|
|
- updated to 2.3
|
|
|
|
|
2005-10-17 10:11:25 +00:00
|
|
|
* Mon Oct 17 2005 Adrian Reber <adrian@lisas.de> - 2.2-1
|
|
|
|
- updated to 2.2
|
|
|
|
- added ctags BuildRequires and Requires
|
|
|
|
|
2005-08-31 10:24:13 +00:00
|
|
|
* Wed Aug 31 2005 Adrian Reber <adrian@lisas.de> - 2.1.2-1
|
|
|
|
- updated to 2.1.2
|
|
|
|
- removed boost-compile-fix patch
|
|
|
|
|
2005-08-25 17:37:24 +00:00
|
|
|
* Thu Aug 25 2005 Adrian Reber <adrian@lisas.de> - 2.1.1-2
|
|
|
|
- rebuilt due to boost's SONAME change (boost 1.33.0)
|
|
|
|
- added patch to compile with boost 1.33.0
|
|
|
|
|
2005-08-03 14:11:58 +00:00
|
|
|
* Wed Aug 03 2005 Adrian Reber <adrian@lisas.de> - 2.1.1-1
|
|
|
|
- updated to 2.1.1 (fixes #164861)
|
|
|
|
|
|
|
|
* Mon Aug 01 2005 Adrian Reber <adrian@lisas.de> - 2.1-1
|
|
|
|
- updated to 2.1
|
|
|
|
|
2005-06-20 09:48:43 +00:00
|
|
|
* Sun Jun 19 2005 Adrian Reber <adrian@lisas.de> - 2.0-1
|
|
|
|
- updated to 2.0
|
|
|
|
- added boost-devel, help2man to BR
|
|
|
|
- included info file
|
|
|
|
|
2005-05-11 07:25:31 +00:00
|
|
|
* Wed May 11 2005 Adrian Reber <adrian@lisas.de> - 1.11-1
|
|
|
|
- updated to 1.11
|
|
|
|
- included the documentation
|
|
|
|
- optimised the %%descritpion
|
|
|
|
|
2005-04-06 22:13:32 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-11-08 05:21:35 +00:00
|
|
|
* Tue Jun 22 2004 Adrian Reber <adrian@lisas.de> - 0:1.9-0.fdr.2
|
|
|
|
- added the Epoch: 0
|
|
|
|
|
|
|
|
* Tue Jun 22 2004 Adrian Reber <adrian@lisas.de> - 1.9-0.fdr.1
|
|
|
|
- removed mandrake specific macros
|
|
|
|
|
|
|
|
* Thu Jun 17 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.9-1mdk
|
|
|
|
- 1.9
|
|
|
|
|
2008-06-13 09:31:58 +00:00
|
|
|
* Wed Jan 07 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.8-1mdk
|
2004-11-08 05:21:35 +00:00
|
|
|
- 1.8
|
|
|
|
- drop Prefix tag
|
|
|
|
- clean out redundant buildrequires
|
|
|
|
- rm -rf $RPM_BUILD_ROOT at the beginning of %%install, not %%prep
|
|
|
|
- use %%makeinstall_std macro
|
|
|
|
- cosmetics
|
|
|
|
|
|
|
|
* Wed Mar 26 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.7-1mdk
|
|
|
|
- 1.7
|
|
|
|
|
|
|
|
* Sat Feb 01 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.6.3-1mdk
|
|
|
|
- 1.6.3
|
|
|
|
|
|
|
|
* Wed Jan 22 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.6.2-1mdk
|
|
|
|
- 1.6.2
|
|
|
|
|
|
|
|
* Sat Nov 23 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.6.1-1mdk
|
|
|
|
- 1.6.1
|
|
|
|
- fix unpackaged files
|
|
|
|
|
|
|
|
* Thu Sep 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.5-2mdk
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
* Thu Jul 18 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.5-1mdk
|
|
|
|
- 1.5
|
|
|
|
|
|
|
|
* Wed Jun 26 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.4-1mdk
|
|
|
|
- obsoletes java2html & cpp2html
|