as-gui.spec 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ##
  2. ## as-gui.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: as-gui
  27. Summary: Accounting System (AS) Graphical User Interface (GUI)
  28. URL: http://as.is.eu.cw.com/
  29. Vendor: Michael Schloh von Bennewitz
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Editor
  33. License: GPL
  34. Version: 0.7.5
  35. Release: 20031120
  36. # package options
  37. %option with_mico yes
  38. %option with_esoap yes
  39. # list of sources
  40. Source0: http://as.is.eu.cw.com/source/as-gui-%{version}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206, X11
  45. PreReq: OpenPKG, openpkg >= 20020206, X11
  46. BuildPreReq: qt >= 3.2.3-20031120, pkgconfig, make
  47. %if "%{with_mico}" == "yes"
  48. BuildPreReq: mico
  49. %endif
  50. %if "%{with_esoap}" == "yes"
  51. BuildPreReq: easysoap
  52. %endif
  53. AutoReq: no
  54. AutoReqProv: no
  55. %description
  56. Accounting System (AS) is the Cable & Wireless time tracking and
  57. accounting system. AS GUI is the graphical user interface client.
  58. %prep
  59. %setup -q -n as-gui-%{version}
  60. %build
  61. CC="%{l_cc}" \
  62. CXX="%{l_cxx}" \
  63. CPPFLAGS="%{l_cppflags}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. CXXFLAGS="%{l_cxxflags -O}" \
  66. LDFLAGS="%{l_ldflags}" \
  67. ./configure \
  68. --prefix=%{l_prefix} \
  69. --datadir=%{l_prefix}/share/as-gui \
  70. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  71. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  72. %if "%{with_mico}" == "yes"
  73. --with-mico=%{l_prefix} \
  74. %endif
  75. %if "%{with_esoap}" == "yes"
  76. --with-esoap=%{l_prefix} \
  77. %endif
  78. --with-qtdir=%{l_prefix}
  79. %{l_make} %{l_mflags -O}
  80. %install
  81. rm -rf $RPM_BUILD_ROOT
  82. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  83. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  84. %files -f files
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT