source-highlight-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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: 1%{?_dist_release}
  10. License: GPLv3
  11. Group: Development/Tools
  12. Source: ftp://ftp.gnu.org/gnu/source-highlight/%{name}-%{version}.tar.gz
  13. URL: http://www.gnu.org/software/src-highlite/
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: libboost-devel >= 1.33.1
  16. BuildRequires: libboost-regex >= 1.33.1
  17. BuildRequires: bison
  18. BuildRequires: flex
  19. BuildRequires: ctags
  20. BuildRequires: help2man
  21. Requires: ctags
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  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: Development/Libraries
  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. %prep
  43. %setup -q
  44. %build
  45. %configure --disable-static --with-boost-regex=boost_regex
  46. make %{?_smp_mflags}
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. make DESTDIR=$RPM_BUILD_ROOT install
  50. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
  51. rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %post
  55. /sbin/install-info %{_infodir}/source-highlight.info.gz %{_infodir}/dir
  56. /sbin/install-info %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir
  57. %preun
  58. if [ $1 = 0 ]; then
  59. /sbin/install-info --delete %{_infodir}/source-highlight.info.gz %{_infodir}/dir
  60. /sbin/install-info --delete %{_infodir}/source-highlight-lib.info.gz %{_infodir}/dir
  61. fi
  62. %files
  63. %defattr(-, root, root)
  64. %doc README COPYING ChangeLog TODO.txt AUTHORS THANKS
  65. %{_sysconfdir}/bash_completion.d/source-highlight
  66. %{_bindir}/*
  67. %{_libdir}/*.so.*
  68. %{_datadir}/%{name}/*
  69. %{_datadir}/doc/source-highlight/*
  70. %{_mandir}/man?/*
  71. %{_infodir}/source-highlight*.info*
  72. %files devel
  73. %defattr(-, root, root)
  74. %{_includedir}/srchilite/*.h
  75. %{_libdir}/*.so
  76. %{_libdir}/pkgconfig/source-highlight.pc
  77. #{_datadir}/aclocal/*.m4
  78. %changelog
  79. * Wed May 23 2018 Toshiaki Ara <ara_t@384.jp> 3.1.8-1
  80. - updated to 3.1.8
  81. * Mon Jan 08 2018 Toshiaki Ara <ara_t@384.jp> 3.1.7-3
  82. - rebuild with libboost-1.66.0
  83. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 3.1.7-2
  84. - rebuild with gcc-5.4.0
  85. * Wed Oct 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1.7-1
  86. - updated to 3.1.7
  87. - changed Group to Development/Tools
  88. * Mon Dec 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-3
  89. - rebuild with libboost-1.54.0
  90. * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 3.1.4-2
  91. - rebuilt with libboost-1.45.0
  92. * Sun Oct 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1
  93. - initial build for Vine Linux