source-highlight-vl.spec 3.5 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.8
  9. Release: 3%{?_dist_release}
  10. Group: programming
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. License: GPLv3
  14. URL: http://www.gnu.org/software/src-highlite/
  15. Source: ftp://ftp.gnu.org/gnu/source-highlight/%{name}-%{version}.tar.gz
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: libboost-devel >= 1.33.1
  18. BuildRequires: libboost-regex >= 1.33.1
  19. BuildRequires: bison
  20. BuildRequires: flex
  21. BuildRequires: ctags
  22. BuildRequires: help2man
  23. Requires: ctags
  24. %description
  25. This program, given a source file, produces a document
  26. with syntax highlighting. Both source languages and output formats
  27. can be specified with a simple syntax and added dynamically. At the
  28. moment this package can handle many programming languages, such as,
  29. e.g., Java, C/C++, Prolog, Perl, Php3, Python, Flex, ChangeLog, etc.
  30. as source languages, and some output formats such, as, e.g., HTML,
  31. XHTML, LaTeX, etc.
  32. %package devel
  33. Summary: Development environment of source-highlight
  34. Group: programming
  35. Requires: %{name} = %{version}-%{release}
  36. Requires: pkgconfig
  37. Requires: libboost-devel
  38. Requires: libboost-regex
  39. %description devel
  40. Header files and libraries for building a extension library for the
  41. source-highlight
  42. %debug_package
  43. %prep
  44. %setup -q
  45. %build
  46. %configure --disable-static --with-boost-regex=boost_regex
  47. make %{?_smp_mflags}
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make DESTDIR=$RPM_BUILD_ROOT install
  51. rm -rf pkgdoc
  52. mv %{buildroot}%{_datadir}/doc/source-highlight pkgdoc
  53. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  54. rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %post
  58. /sbin/install-info %{_infodir}/source-highlight.info.gz %{_infodir}/dir
  59. /sbin/install-info %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir
  60. %preun
  61. if [ $1 = 0 ]; then
  62. /sbin/install-info --delete %{_infodir}/source-highlight.info.gz %{_infodir}/dir
  63. /sbin/install-info --delete %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir
  64. fi
  65. %files
  66. %defattr(-, root, root)
  67. %license COPYING
  68. %doc pkgdoc/*
  69. %doc README ChangeLog TODO.txt AUTHORS THANKS
  70. %dir %{_sysconfdir}/bash_completion.d
  71. %{_sysconfdir}/bash_completion.d/source-highlight
  72. %{_bindir}/*
  73. %{_libdir}/*.so.*
  74. %{_datadir}/%{name}/*
  75. %{_mandir}/man?/*
  76. %{_infodir}/source-highlight*.info*
  77. %files devel
  78. %defattr(-, root, root)
  79. %{_includedir}/srchilite/*.h
  80. %{_libdir}/*.so
  81. %{_libdir}/pkgconfig/source-highlight.pc
  82. #{_datadir}/aclocal/*.m4
  83. %changelog
  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