makepp.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## makepp.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_main 1.50
  25. %define V_cvs 080810
  26. # package information
  27. Name: makepp
  28. Summary: Make Plus Plus
  29. URL: http://makepp.sourceforge.net/
  30. Vendor: G. Holt, A. Johnson, D. Peiffer
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: Building
  35. License: GPL/Artistic
  36. Version: %{V_main}.%{V_cvs}
  37. Release: 20080810
  38. # list of sources
  39. Source0: http://www.cpan.org/authors/id/P/PF/PFEIFFER/makepp-%{V_main}-cvs-%{V_cvs}.tgz
  40. Patch0: makepp.patch
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20060823, perl
  45. PreReq: OpenPKG, openpkg >= 20060823, perl, perl-crypto
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Makepp is a drop-in replacement for GNU make which has a number
  50. of features that allow for more reliable builds and simpler build
  51. files. It supports almost all of the syntax that GNU make supports,
  52. and can be used with makefiles produced by utilities such as
  53. automake. It is called makepp (or make++) because it was designed
  54. for building C++ programs. Also its relationship to make is supposed
  55. to be analogous to C++'s relationship to C: it is almost 100%
  56. backward compatible but adds a number of new features.
  57. %track
  58. prog makepp = {
  59. version = %{V_main}-cvs-%{V_cvs}
  60. url = http://www.cpan.org/authors/id/P/PF/PFEIFFER/
  61. regex = makepp-(\d+\.\d+(?:\.\d+)?(?:-cvs-(\d+))?)\.tgz
  62. }
  63. %prep
  64. %setup -q -c
  65. %patch -p0
  66. %build
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_shtool} mkdir -f -p -m 755 \
  70. $RPM_BUILD_ROOT%{l_prefix}/bin \
  71. $RPM_BUILD_ROOT%{l_prefix}/share/makepp/html \
  72. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  73. %{l_shtool} subst \
  74. -e 's;/usr/local;%{l_prefix};g' \
  75. cvs/install.pl
  76. ( cd cvs
  77. export DESTDIR="$RPM_BUILD_ROOT"
  78. %{l_prefix}/bin/perl install.pl
  79. ) || exit $?
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT