solarium.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ##
  2. ## solarium.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2011 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_solarium 2.2.0
  25. %define V_area 2011/10
  26. # package information
  27. Name: solarium
  28. Summary: PHP Solr Client Library
  29. URL: http://www.solarium-project.org/
  30. Vendor: Bas de Nooijer et al.
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: Web
  35. License: BSD
  36. Version: %{V_solarium}
  37. Release: 20111112
  38. # list of sources
  39. Source0: http://www.solarium-project.org/wp-content/uploads/%{V_area}/Solarium-%{V_solarium}.zip
  40. # build information
  41. BuildPreReq: OpenPKG, openpkg >= 20100101
  42. PreReq: OpenPKG, openpkg >= 20100101
  43. %description
  44. Solarium is a Solr client library for PHP applications. By offering
  45. an API for common Solr functionality you no longer need to compose
  46. complex query strings and parameters manually, greatly reducing
  47. development time and complexity.
  48. %track
  49. prog solarium = {
  50. version = %{V_solarium}
  51. url = http://www.solarium-project.org/
  52. regex = Solarium-(\d+\.\d+\.\d+)\.zip
  53. }
  54. %prep
  55. %setup -q -n Solarium-%{V_solarium}
  56. %build
  57. %install
  58. %{l_shtool} mkdir -f -p -m 755 \
  59. $RPM_BUILD_ROOT%{l_prefix}/lib/php
  60. cp -rp library/* $RPM_BUILD_ROOT%{l_prefix}/lib/php/
  61. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  62. %files -f files
  63. %clean