sharutils.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## sharutils.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2012 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 information
  24. Name: sharutils
  25. Summary: GNU Shell Archive Utilities
  26. URL: http://www.gnu.org/software/sharutils/
  27. Vendor: Free Software Foundation
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: BASE
  31. Group: Archiver
  32. License: GPL
  33. Version: 4.13.2
  34. Release: 20130105
  35. # list of sources
  36. Source0: http://ftp.gnu.org/gnu/sharutils/sharutils-%{version}.tar.gz
  37. # build information
  38. BuildPreReq: OpenPKG, openpkg >= 20100101, make
  39. PreReq: OpenPKG, openpkg >= 20100101
  40. %description
  41. GNU shar makes so-called shell archives out of many files, preparing
  42. them for transmission by electronic mail services. A shell archive
  43. is a collection of files that can be unpacked by /bin/sh. A wide
  44. range of features provide extensive flexibility in manufacturing
  45. shars and in specifying shar smartness. For example, shar may
  46. compress files, uuencode binary files, split long files and
  47. construct multi-part mailings, ensure correct unsharing order,
  48. and provide simplistic checksums. GNU unshar scans a set of
  49. mail messages looking for the start of shell archives. It will
  50. automatically strip off the mail headers and other introductory
  51. text. The archive bodies are then unpacked by a copy of the shell.
  52. unshar may also process files containing concatenated shell
  53. archives.
  54. %track
  55. prog sharutils = {
  56. version = %{version}
  57. url = http://ftp.gnu.org/gnu/sharutils/
  58. regex = (\d+\.\d+\.\d+)
  59. }
  60. %prep
  61. %setup -q
  62. chmod a+rx install-sh
  63. %build
  64. CC="%{l_cc}" \
  65. CFLAGS="%{l_cflags -O}" \
  66. ./configure \
  67. --prefix=%{l_prefix} \
  68. --infodir=%{l_prefix}/info \
  69. --mandir=%{l_prefix}/man \
  70. --disable-nls
  71. %{l_make} %{l_mflags -O}
  72. %install
  73. %{l_make} %{l_mflags} install install-man \
  74. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  75. exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  76. infodir=$RPM_BUILD_ROOT%{l_prefix}/info \
  77. mandir=$RPM_BUILD_ROOT%{l_prefix}/man
  78. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  79. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias
  80. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  82. %files -f files
  83. %clean