dailystrips.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## dailystrips.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: dailystrips
  26. Summary: Download Daily Online Comic Strips
  27. URL: http://dailystrips.sourceforge.net/
  28. Vendor: Andrew Medico
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: EVAL
  32. Group: Web
  33. License: GPL
  34. Version: 1.0.28
  35. Release: 20061016
  36. # list of sources
  37. Source0: http://switch.dl.sourceforge.net/sourceforge/dailystrips/dailystrips-%{version}.tar.gz
  38. Source1: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/dailystrips/dailystrips/strips.def
  39. Source2: rc.dailystrips
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20060823
  44. PreReq: OpenPKG, openpkg >= 20060823, perl, perl-www, perl-time
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. Dailystrips automatically downloads your favorite online comics
  49. from the web. It currently supports over 300 comics and offers a
  50. 'local' mode in which strips are downloaded and saved locally to
  51. speed access time.
  52. %track
  53. prog dailystrips = {
  54. version = %{version}
  55. url = http://prdownloads.sourceforge.net/dailystrips/
  56. regex = dailystrips-(1\.0\.\d+)\.tar\.gz
  57. }
  58. %prep
  59. %setup -q
  60. %build
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %{l_shtool} mkdir -f -p -m 755 \
  64. $RPM_BUILD_ROOT%{l_prefix}/bin \
  65. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  66. $RPM_BUILD_ROOT%{l_prefix}/etc/dailystrips \
  67. $RPM_BUILD_ROOT%{l_prefix}/var/dailystrips
  68. %{l_shtool} install -c -m 755 \
  69. -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;g' \
  70. -e 's;/usr/share/dailystrips/strips.def;%{l_prefix}/etc/dailystrips/dailystrips.std;g' \
  71. -e 's;/etc/dailystrips.defs;%{l_prefix}/etc/dailystrips/dailystrips.defs;g' \
  72. dailystrips $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -m 755 \
  74. dailystrips-clean $RPM_BUILD_ROOT%{l_prefix}/bin/
  75. %{l_shtool} install -c -m 644 \
  76. %{SOURCE strips.def} $RPM_BUILD_ROOT%{l_prefix}/etc/dailystrips/dailystrips.std
  77. %{l_shtool} install -c -m 644 \
  78. /dev/null $RPM_BUILD_ROOT%{l_prefix}/etc/dailystrips/dailystrips.defs
  79. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  80. %{SOURCE rc.dailystrips} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  82. %{l_files_std} \
  83. '%config %{l_prefix}/etc/dailystrips/*' \
  84. '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/dailystrips'
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT