libart.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ##
  2. ## libart.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 versions
  25. %define V_major 2.3
  26. %define V_minor 17
  27. # package information
  28. Name: libart
  29. Summary: Library For High-Performance 2D Graphics
  30. URL: http://www.levien.com/libart/
  31. Vendor: Ralph Levien
  32. Packager: OpenPKG
  33. Distribution: OpenPKG
  34. Class: BASE
  35. Group: Graphics
  36. License: LGPL
  37. Version: %{V_major}.%{V_minor}
  38. Release: 20060925
  39. # list of sources
  40. Source0: ftp://ftp.gnome.org/pub/gnome/sources/libart_lgpl/%{V_major}/libart_lgpl-%{version}.tar.bz2
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130
  45. PreReq: OpenPKG, openpkg >= 20040130
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Libart is a library for high-performance 2D graphics. It supports
  50. a very powerful imaging model, basically the same as SVG and the
  51. Java 2D API. It includes all PostScript imaging operations, and adds
  52. antialiasing and alpha-transparency. It is also highly tuned for
  53. incremental rendering. It contains data structures and algorithms
  54. suited to rapid, precise computation of Region of Interest, and a
  55. two-phase rendering pipeline optimized for interactive display.
  56. %track
  57. prog libart = {
  58. version = %{version}
  59. url = ftp://ftp.gnome.org/pub/gnome/sources/libart_lgpl/%{V_major}/
  60. regex = libart_lgpl-(__VER__)\.tar\.bz2
  61. }
  62. %prep
  63. %setup -q -n libart_lgpl-%{version}
  64. %{l_shtool} subst \
  65. -e 's;art_lgpl_2;art_lgpl;g' \
  66. -e 's;libart-2\.0;libart;g' \
  67. libart-2.0.pc.in \
  68. libart-config.in
  69. %{l_shtool} subst \
  70. -e 's;libart_lgpl_2;libart_lgpl;g' \
  71. -e 's;/libart-2\.0;/libart;g' \
  72. configure \
  73. Makefile.in
  74. %{l_shtool} subst \
  75. -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
  76. configure
  77. %build
  78. CC="%{l_cc}" \
  79. CFLAGS="%{l_cflags -O}" \
  80. CPPFLAGS="%{l_cppflags}" \
  81. LDFLAGS="%{l_ldflags}" \
  82. ./configure \
  83. --prefix=%{l_prefix} \
  84. --enable-static \
  85. --disable-shared
  86. %{l_make} %{l_mflags -O}
  87. %install
  88. rm -rf $RPM_BUILD_ROOT
  89. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  90. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  91. rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
  92. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  93. %files -f files
  94. %clean
  95. rm -rf $RPM_BUILD_ROOT