diff --git a/README.md b/README.md index d0131a9..2dc7e3c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # source-highlight +GNU Source-highlight, given a source file, produces a document with syntax highlighting. + +Source-highlight reads source language specifications dynamically, thus it can be easily extended (without recompiling the sources) for handling new languages. +It also reads output format specifications dynamically, and thus it can be easily extended (without recompiling the sources) for handling new output formats. +The syntax for these specifications is quite easy (take a look at the manual). + +Source-highlight is a command line program, and it can also be used as a CGI. + diff --git a/source-highlight.spec b/source-highlight.spec new file mode 100644 index 0000000..2c4baab --- /dev/null +++ b/source-highlight.spec @@ -0,0 +1,155 @@ +Name: source-highlight +Version: 3.1.7 +Release: 2mamba +Summary: A source code highlighter with support for many languages +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://www.gnu.org/software/src-highlite +Source: ftp://ftp.gnu.org/gnu/src-highlite/source-highlight-%{version}.tar.gz +License: GPL +BuildRequires: bison +BuildRequires: flex +BuildRequires: libboost-devel +BuildRequires: ctags +BuildRequires: help2man +BuildRequires: valgrind +BuildRequires: tetex +Requires: ctags +Requires: help2man +Requires(post):%{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +GNU Source-highlight, given a source file, produces a document with syntax highlighting. + +Source-highlight reads source language specifications dynamically, thus it can be easily extended (without recompiling the sources) for handling new languages. +It also reads output format specifications dynamically, and thus it can be easily extended (without recompiling the sources) for handling new output formats. +The syntax for these specifications is quite easy (take a look at the manual). + +Source-highlight is a command line program, and it can also be used as a CGI. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for lib%{name} +Requires: %{name} = %{version}-%{release} + +%description devel +GNU Source-highlight, given a source file, produces a document with syntax highlighting. + +Source-highlight reads source language specifications dynamically, thus it can be easily extended (without recompiling the sources) for handling new languages. +It also reads output format specifications dynamically, and thus it can be easily extended (without recompiling the sources) for handling new output formats. +The syntax for these specifications is quite easy (take a look at the manual). + +Source-highlight is a command line program, and it can also be used as a CGI. + +This package contains static libraries and header files need for development. + +%prep +%setup -q + +%build +%configure --with-bash-completion="%{_sysconfdir}/bash_completion.d" +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# remove conflict with autoconf-archive package +rm -f "%{buildroot}%{_datadir}/aclocal"/*boost*.m4 + +rm -fr %{buildroot}%{_docdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +/sbin/ldconfig +%install_info %{name}.info + +%preun +%uninstall_info %{name}.info + +%postun -p /sbin/ldconfig + +%post devel +%install_info source-highlight-lib.info + +%preun devel +%uninstall_info source-highlight-lib.info + +%files +%defattr(-,root,root) +%{_bindir}/* +%{_datadir}/%{name} +%{_infodir}/%{name}.info.* +%{_libdir}/libsource-highlight.so.* +%{_sysconfdir}/bash_completion.d/source-highlight +%{_mandir}/man1/* +%doc AUTHORS COPYING CREDITS + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/srchilite +%{_includedir}/srchilite +%{_libdir}/libsource-highlight.a +%{_libdir}/libsource-highlight.la +%{_libdir}/libsource-highlight.so +%{_libdir}/pkgconfig/source-highlight.pc +#%{_datadir}/aclocal/ax_boost_*.m4 +%{_infodir}/source-highlight-lib.info.* +%doc ChangeLog NEWS README THANKS +%doc TODO.txt doc/{*.css,*.html,*.java} + +%changelog +* Sun Jul 21 2013 Silvan Calarco 3.1.7-2mamba +- rebuilt with libboost 1.52 + +* Tue Aug 07 2012 Automatic Build System 3.1.7-1mamba +- automatic version update by autodist + +* Fri Sep 09 2011 Automatic Build System 3.1.5-1mamba +- automatic version update by autodist + +* Tue Dec 14 2010 Automatic Build System 3.1.4-2mamba +- automatic rebuild by autodist + +* Tue Jun 29 2010 Automatic Build System 3.1.4-1mamba +- automatic update by autodist + +* Sun Jun 13 2010 Automatic Build System 3.1.3-2mamba +- automatic rebuild by autodist + +* Fri Apr 16 2010 Automatic Build System 3.1.3-1mamba +- automatic update by autodist + +* Thu Jan 14 2010 Automatic Build System 3.1.2-1mamba +- automatic update by autodist + +* Wed Sep 23 2009 Automatic Build System 3.1.1-1mamba +- automatic update by autodist + +* Mon Jun 15 2009 Davide Madrisan 3.1-2mamba +- install the source-highlight-lib info file +- run ldconfig in %%post and %%postun scripts +- fixed a conflict with the autoconf-archive package + +* Mon Jun 15 2009 Automatic Build System 3.1-1mamba +- automatic update by autodist + +* Sun Jun 07 2009 Automatic Build System 3.0.1-2mamba +- automatic rebuild by autodist + +* Thu Jun 04 2009 Automatic Build System 3.0.1-1mamba +- automatic update by autodist + +* Tue Dec 30 2008 Silvan Calarco 2.11.1-1mamba +- automatic update by autodist + +* Sun Nov 02 2008 Silvan Calarco 2.10-1mamba +- automatic update by autodist + +* Sun Oct 28 2007 Stefano Cotta Ramusino 2.8-1mamba +- package created by autospec