source-highlight-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. Summary: syntax highlighting for source documents
  7. Name: source-highlight
  8. Version: 3.1.4
  9. Release: 2%{?_dist_release}
  10. License: GPL
  11. Group: Utilities/Console
  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
  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-bash-completion
  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. * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 3.1.4-2
  80. - rebuilt with libboost-1.45.0
  81. * Sun Oct 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1
  82. - initial build for Vine Linux