source-highlight-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. Name: source-highlight
  7. Summary: Syntax highlighting for source documents
  8. Version: 3.1.9
  9. Release: 2%{?_dist_release}
  10. Group: programming
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. License: GPLv3+
  14. URL: https://www.gnu.org/software/src-highlite/
  15. Source0: https://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz
  16. # Taken from https://git.savannah.gnu.org/cgit/src-highlite.git/patch/?id=904949c9026cb772dc93fbe0947a252ef47127f4
  17. # and slightly adapted
  18. Patch0: 904949c9026cb772dc93fbe0947a252ef47127f4.patch
  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. %description
  28. This program, given a source file, produces a document
  29. with syntax highlighting. Both source languages and output formats
  30. can be specified with a simple syntax and added dynamically. At the
  31. moment this package can handle many programming languages, such as,
  32. e.g., Java, C/C++, Prolog, Perl, Php3, Python, Flex, ChangeLog, etc.
  33. as source languages, and some output formats such, as, e.g., HTML,
  34. XHTML, LaTeX, etc.
  35. %package devel
  36. Summary: Development environment of source-highlight
  37. Group: programming
  38. Requires: %{name} = %{version}-%{release}
  39. Requires: pkgconfig
  40. Requires: libboost-devel
  41. Requires: libboost-regex
  42. %description devel
  43. Header files and libraries for building a extension library for the
  44. source-highlight
  45. %debug_package
  46. %prep
  47. %setup -q
  48. %build
  49. export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS"
  50. %configure --disable-static --with-boost-regex=boost_regex
  51. make %{?_smp_mflags}
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. make DESTDIR=$RPM_BUILD_ROOT install
  55. rm -rf pkgdoc
  56. mv %{buildroot}%{_datadir}/doc/source-highlight pkgdoc
  57. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  58. rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %files
  62. %defattr(-, root, root)
  63. %license COPYING
  64. %doc pkgdoc/*
  65. %doc README ChangeLog TODO.txt AUTHORS THANKS
  66. %dir %{_sysconfdir}/bash_completion.d
  67. %{_sysconfdir}/bash_completion.d/source-highlight
  68. %{_bindir}/*
  69. %{_libdir}/*.so.*
  70. %{_datadir}/%{name}/*
  71. %{_mandir}/man?/*
  72. %{_infodir}/source-highlight*.info*
  73. %files devel
  74. %defattr(-, root, root)
  75. %{_includedir}/srchilite/*.h
  76. %{_libdir}/*.so
  77. %{_libdir}/pkgconfig/source-highlight.pc
  78. #{_datadir}/aclocal/*.m4
  79. %changelog
  80. * Wed Nov 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.9-2
  81. - rebuilt with boost-1.83.0.
  82. * Sat Nov 05 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.9-1
  83. - updated to 3.1.9.
  84. * Sat Feb 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.8-3
  85. - rebuilt with boost-1.75.0.
  86. * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.8-2
  87. - rebuilt with boost-1.72.0.
  88. * Wed May 23 2018 Toshiaki Ara <ara_t@384.jp> 3.1.8-1
  89. - updated to 3.1.8
  90. * Mon Jan 08 2018 Toshiaki Ara <ara_t@384.jp> 3.1.7-3
  91. - rebuild with libboost-1.66.0
  92. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 3.1.7-2
  93. - rebuild with gcc-5.4.0
  94. * Wed Oct 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1.7-1
  95. - updated to 3.1.7
  96. - changed Group to Development/Tools
  97. * Mon Dec 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-3
  98. - rebuild with libboost-1.54.0
  99. * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 3.1.4-2
  100. - rebuilt with libboost-1.45.0
  101. * Sun Oct 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1
  102. - initial build for Vine Linux