libwebp-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Name: libwebp
  2. Summary: Library and tools for the WebP graphics format
  3. Summary(ja): WebP 画像フォーマットのためのライブラリとツール
  4. Version: 1.1.0
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. Packager: iwaim
  10. # Additional IPR is licensed as well. See PATENTS file for details
  11. License: BSD
  12. URL: https://developers.google.com/speed/webp
  13. Source0: https://github.com/webmproject/libwebp/archive/v%{version}.tar.gz#/libwebp-%{version}.tar.gz
  14. Source1: libwebp_jni_example.java
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: libjpeg-devel
  17. BuildRequires: libpng-devel
  18. BuildRequires: libtool
  19. BuildRequires: java-1.8.0-openjdk-devel
  20. BuildRequires: jpackage-utils
  21. BuildRequires: swig
  22. BuildRequires: freeglut-devel
  23. %description
  24. WebP is an image format that does lossy compression of digital
  25. photographic images. WebP consists of a codec based on VP8, and a
  26. container based on RIFF. Webmasters, web developers and browser
  27. developers can use WebP to compress, archive and distribute digital
  28. images more efficiently.
  29. %package tools
  30. Summary: The WebP command line tools
  31. Summary(ja): WebP コマンドラインツール
  32. Group: Development/Tools
  33. %description tools
  34. WebP is an image format that does lossy compression of digital
  35. photographic images. WebP consists of a codec based on VP8, and a
  36. container based on RIFF. Webmasters, web developers and browser
  37. developers can use WebP to compress, archive and distribute digital
  38. images more efficiently.
  39. %package devel
  40. Summary: Development files for libwebp, a library for the WebP format
  41. Summary(ja): WebP フォーマットのためのライブラリ libwebp の開発ファイル
  42. Group: Development/Libraries
  43. Requires: %{name} = %{version}-%{release}
  44. %description devel
  45. WebP is an image format that does lossy compression of digital
  46. photographic images. WebP consists of a codec based on VP8, and a
  47. container based on RIFF. Webmasters, web developers and browser
  48. developers can use WebP to compress, archive and distribute digital
  49. images more efficiently.
  50. %package java
  51. Summary: Java bindings for libwebp, a library for the WebP format
  52. Summary(ja): WebP フォーマットのためのライブラリ libwebp の Java バインディング
  53. Group: Development/Libraries
  54. Requires: %{name} = %{version}-%{release}
  55. Requires: java
  56. Requires: jpackage-utils
  57. %description java
  58. Java bindings for libwebp.
  59. %prep
  60. %setup -q
  61. %build
  62. %global optflags %{optflags} -fPIC
  63. mkdir -p m4
  64. ./autogen.sh
  65. %configure --disable-static --enable-libwebpmux \
  66. --enable-libwebpdemux --enable-libwebpdecoder \
  67. --disable-neon
  68. make %{?_smp_mflags}
  69. # swig generated Java bindings
  70. cp %{SOURCE1} .
  71. cd swig
  72. rm -rf libwebp.jar libwebp_java_wrap.c
  73. mkdir -p java/com/google/webp
  74. swig -ignoremissing -I../src -java \
  75. -package com.google.webp \
  76. -outdir java/com/google/webp \
  77. -o libwebp_java_wrap.c libwebp.swig
  78. gcc %{optflags} -shared \
  79. -I/usr/lib/jvm/java/include \
  80. -I/usr/lib/jvm/java/include/linux \
  81. -I../src \
  82. -L../src/.libs -lwebp libwebp_java_wrap.c \
  83. -o libwebp_jni.so
  84. cd java
  85. javac com/google/webp/libwebp.java
  86. jar cvf ../libwebp.jar com/google/webp/*.class
  87. %install
  88. make install DESTDIR=%{buildroot}
  89. find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete
  90. # swig generated Java bindings
  91. mkdir -p %{buildroot}/%{_libdir}/%{name}-java
  92. cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
  93. %post -n %{name} -p /sbin/ldconfig
  94. %postun -n %{name} -p /sbin/ldconfig
  95. %files tools
  96. %{_bindir}/*
  97. %{_mandir}/man*/*
  98. %files -n %{name}
  99. %license COPYING PATENTS
  100. %doc README* NEWS AUTHORS
  101. %{_libdir}/%{name}*.so.*
  102. %files devel
  103. %{_libdir}/%{name}*.so
  104. %{_includedir}/*
  105. %{_libdir}/pkgconfig/*
  106. %files java
  107. %doc libwebp_jni_example.java
  108. %{_libdir}/%{name}-java/
  109. %changelog
  110. * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1
  111. - new upstream release.
  112. * Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.1-1
  113. - new upstream release.
  114. * Sun Oct 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.3.1-3
  115. - moved libwebp to System Environment/Libraries Group
  116. * Tue Jul 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.1-2
  117. - rebuild with libpng-1.6.12
  118. * Sat Oct 12 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.3.1-1
  119. - new upstream release
  120. * Sat Jan 12 2013 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1
  121. - initial build for Vine Linux
  122. * Thu Dec 27 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.2.1-1
  123. - new upstream release 0.2.1
  124. * Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.1.3-3
  125. - rebuild against new libjpeg
  126. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
  127. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  128. * Thu Feb 02 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.3-1
  129. - Several spec improvements by Scott Tsai <scottt.tw@gmail.com>
  130. * Wed May 25 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.2-1
  131. - Initial spec. Based on openSUSE one