commit 9895be9c5f9322b1b4385852fa5c988e74f20640 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:17:21 2019 -0400 Package init diff --git a/source-highlight-3.1.8.tar.gz b/source-highlight-3.1.8.tar.gz new file mode 100644 index 0000000..7c25121 Binary files /dev/null and b/source-highlight-3.1.8.tar.gz differ diff --git a/source-highlight-3.1.8.tar.gz.sig b/source-highlight-3.1.8.tar.gz.sig new file mode 100644 index 0000000..88427c9 Binary files /dev/null and b/source-highlight-3.1.8.tar.gz.sig differ diff --git a/source-highlight.spec b/source-highlight.spec new file mode 100644 index 0000000..e3c4514 --- /dev/null +++ b/source-highlight.spec @@ -0,0 +1,85 @@ +Name: source-highlight +Version: 3.1.8 +Release: 21 +Summary: Source Code Highlighter with Support for Many Languages +License: GPLv3+ +URL: http://www.gnu.org/software/src-highlite +Source0: ftp://ftp.gnu.org/gnu/src-highlite/source-highlight-%{version}.tar.gz +Source1: ftp://ftp.gnu.org/gnu/src-highlite/source-highlight-%{version}.tar.gz.sig + +BuildRequires: bison boost-devel chrpath ctags flex gcc gcc-c++ help2man bash-completion +Requires: ctags + +%description +This program, 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 +Summary: Header files for source-highlight +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for source-highlight + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 -S git + +%build +%configure --with-boost-regex=boost_regex +%make_build + +%install +%make_install +%delete_la + +mv $RPM_BUILD_ROOT%{_datadir}/doc/ docs +sed -i 's/\r//' docs/source-highlight/*.css + +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/source-highlight +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/source-highlight-settings + +echo -e "\ncxx = cpp.lang" >> $RPM_BUILD_ROOT%{_datadir}/source-highlight/lang.map + +bashcompdir=$(pkg-config --variable=completionsdir bash-completion) +install -p -d $RPM_BUILD_ROOT$bashcompdir + +pushd $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d +install -p -m 755 source-highlight $RPM_BUILD_ROOT$bashcompdir/ +popd + +%files +%defattr(-,root,root) +%{_bindir}/check-regexp +%{_bindir}/*html +%{_bindir}/source-highlight* +%{_bindir}/src-hilite-lesspipe.sh +%{_libdir}/libsource-*.so* +%{_datadir}/bash-completion/completions/source-highlight +%{_datadir}/source-highlight/* +%exclude %{_sysconfdir}/bash_completion.d + +%files devel +%defattr(-,root,root) +%{_includedir}/srchilite/* +%{_libdir}/pkgconfig/* +%{_libdir}/*.a + +%files help +%doc docs/source-highlight/* +%{_mandir}/man1/*.gz +%{_datadir}/info/*.info.gz +%exclude %{_datadir}/info/dir + +%changelog +* Thu Aug 29 2019 openEuler Buildteam - 3.1.8-21 +- Package init