pgautodoc.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ##
  2. ## pgautodoc.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 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: pgautodoc
  26. Summary: PostgreSQL Reengineering Tool
  27. URL: http://www.rbt.ca/autodoc/
  28. Vendor: Rod Taylor
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: PLUS
  32. Group: Database
  33. License: BSD
  34. Version: 1.30
  35. Release: 20070103
  36. # list of sources
  37. Source0: http://www.rbt.ca/autodoc/binaries/postgresql_autodoc-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130
  42. PreReq: OpenPKG, openpkg >= 20040130, postgresql, perl, perl-dbi
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. This is a utility which will run through PostgreSQL system tables
  47. and returns HTML, DOT, and 2 styles of XML which describes the
  48. database. The HTML is human readable (via webbrowser). The first
  49. style of XML is actually the fileformat of Dia, a UML diagram tool.
  50. The second type of XML is similar to the HTML but in the Docbook
  51. 4 format. It enables you to mix in other docbook documentation
  52. via the XREFs, generating PDFs, HTML, RTF, or other formatted
  53. documents. Between these tools and JavaDoc with the appropriate
  54. XREFs, documentation about a project can be generated quickly and be
  55. easily updatable yet have a very professional look with some DSSSL
  56. work.
  57. %track
  58. prog pgautodoc = {
  59. version = %{version}
  60. url = http://www.rbt.ca/autodoc/releasenotes.html
  61. regex = postgresql_autodoc-(\d+.\d+)\.tar\.gz
  62. }
  63. %prep
  64. %setup -q -n postgresql_autodoc
  65. %build
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/bin
  70. %{l_shtool} install -c -m 755 \
  71. -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
  72. postgresql_autodoc.pl $RPM_BUILD_ROOT%{l_prefix}/bin/pg_autodoc
  73. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  74. %files -f files
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT