atk.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ##
  2. ## atk.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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 version
  26. %define V_atk 1.2.4
  27. %define V_glib_major 2.2
  28. %define V_gtk_major 2.2
  29. # package information
  30. Name: atk
  31. Summary: The Gtk Accessability Toolkit
  32. URL: http://www.gtk.org/
  33. Vendor: The Gtk Project
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [PLUS]
  36. Group: XWindow
  37. License: GPL
  38. Version: %{V_atk}
  39. Release: 20030612
  40. # list of sources
  41. Source0: ftp://ftp.gtk.org/pub/gtk/v%{V_gtk_major}/atk-%{V_atk}.tar.gz
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20020206, make, X11, glib2 >= %{V_glib_major}
  46. PreReq: OpenPKG, openpkg >= 20020206, X11, glib2 >= %{V_glib_major}
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. The ATK library provides a set of interfaces for accessibility. By
  51. supporting the ATK interfaces, an application or toolkit can be used
  52. with such tools as screen readers, magnifiers, and alternative input
  53. devices.
  54. %prep
  55. %setup -q -n atk-%{version}
  56. %{l_shtool} subst \
  57. -e 's;/atk-1\.0;/atk;g' \
  58. -e 's;libatk-1\.0\.la;libatk.la;g' \
  59. Makefile.in */Makefile.in
  60. %{l_shtool} subst \
  61. -e 's;/atk-1\.0;/atk;g' \
  62. -e 's;-@ATK_API_VERSION@;;' \
  63. atk.pc.in
  64. %build
  65. CC="%{l_cc}" \
  66. CFLAGS="%{l_cflags -O}" \
  67. CPPFLAGS="%{l_cppflags}" \
  68. LDFLAGS="%{l_ldflags}" \
  69. ./configure \
  70. --prefix=%{l_prefix} \
  71. --with-x \
  72. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  73. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  74. --disable-nls \
  75. --with-native-locale=no \
  76. --enable-shm \
  77. --disable-debug \
  78. --disable-shared \
  79. --enable-static
  80. %{l_make} %{l_mflags}
  81. %install
  82. rm -rf $RPM_BUILD_ROOT
  83. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  84. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc
  85. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
  86. rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
  87. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  88. %{l_files_std} \
  89. '%not %dir %{l_prefix}/lib/pkgconfig'
  90. %files -f files
  91. %clean
  92. rm -rf $RPM_BUILD_ROOT