libopenraw-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. Summary: Decode camera RAW files
  2. Name: libopenraw
  3. Version: 0.0.8
  4. Release: 1%{?_dist_release}
  5. License: LGPLv3+
  6. Group: System Environment/Libraries
  7. URL: http://libopenraw.freedesktop.org/wiki
  8. Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz
  9. # upstream patch 1b15acdcfdc4664bc6c0be473cb6e096071a4e62 adds support
  10. # for certain PEF files and fixes a crash when opening such files
  11. Patch0: 0001-Support-partially-PEF-from-Pentax-K20D.patch
  12. # upstream patch 22287584fbfa4657098ee997957a6c4fc972a53b to
  13. # properly decompress CFA from certain cameras (patch slightly modified
  14. # to omit patching README)
  15. Patch1: 0001-Properly-decompress-CFA-from-Canon-7D-5DMkII-500D-1D.patch
  16. # https://bugs.freedesktop.org/show_bug.cgi?id=31088
  17. Patch2: libopenraw-0.0.8-pixbufloaderdir.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  19. BuildRequires: libtool autoconf automake
  20. BuildRequires: libboost-devel
  21. BuildRequires: libboost-test
  22. BuildRequires: exempi-devel >= 1.99.5
  23. BuildRequires: gtk2-devel
  24. BuildRequires: curl-devel
  25. BuildRequires: libjpeg-devel
  26. BuildRequires: libxml2-devel
  27. Vendor: Project Vine
  28. Distribution: Vine Linux
  29. %description
  30. libopenraw is an ongoing project to provide a free software
  31. implementation for camera RAW files decoding. One of the main reason is
  32. that dcraw is not suited for easy integration into applications, and
  33. there is a need for an easy to use API to build free software digital
  34. image processing application.
  35. %package gnome
  36. Summary: GUI components of %{name}
  37. Group: System Environment/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. %description gnome
  40. The %{name}-gnome package contains gui components of %{name}.
  41. %package devel
  42. Summary: Development files for %{name}
  43. Group: Development/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. Requires: pkgconfig
  46. %description devel
  47. The %{name}-devel package contains libraries and header files for
  48. developing applications that use %{name}.
  49. %package gnome-devel
  50. Summary: Development files for %{name}-gnome
  51. Group: Development/Libraries
  52. Requires: %{name}-gnome = %{version}-%{release}
  53. Requires: %{name}-devel = %{version}-%{release}
  54. Requires: pkgconfig
  55. %description gnome-devel
  56. The %{name}-gnome-devel package contains libraries and header files for
  57. developing applications that use %{name}-gnome.
  58. %package pixbuf-loader
  59. Summary: RAW image loader for GTK+ applications
  60. Group: System Environment/Libraries
  61. Requires: gtk2
  62. Requires: %{name} = %{version}-%{release}
  63. Requires(post): gdk-pixbuf2
  64. Requires(postun): gdk-pixbuf2
  65. %description pixbuf-loader
  66. %{name}-pixbuf-loader contains a plugin to load RAW images, as created by
  67. digital cameras, in GTK+ applications.
  68. %prep
  69. %setup -q
  70. %patch1 -p1 -b CFA-decrompress-fix
  71. %patch0 -p1 -b pef-crash-fix
  72. %patch2 -p1 -b pixbufloaderdir
  73. %build
  74. autoreconf -i -f
  75. %configure --disable-static --enable-gnome
  76. # Omit unused direct shared library dependencies.
  77. sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
  78. make %{?_smp_mflags}
  79. %check
  80. make check
  81. %install
  82. rm -rf $RPM_BUILD_ROOT
  83. make install DESTDIR=$RPM_BUILD_ROOT
  84. find $RPM_BUILD_ROOT -type f -name "*.la" -delete
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT
  87. %post -p /sbin/ldconfig
  88. %postun -p /sbin/ldconfig
  89. %post gnome -p /sbin/ldconfig
  90. %postun gnome -p /sbin/ldconfig
  91. %post pixbuf-loader
  92. gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
  93. %postun pixbuf-loader
  94. gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
  95. %files
  96. %defattr(-,root,root,-)
  97. %doc AUTHORS
  98. %doc ChangeLog
  99. %doc COPYING
  100. %doc NEWS
  101. %doc README
  102. %doc TODO
  103. %{_libdir}/%{name}.so.*
  104. %files gnome
  105. %defattr(-,root,root,-)
  106. %{_libdir}/%{name}gnome.so.*
  107. %files devel
  108. %defattr(-,root,root,-)
  109. %{_libdir}/%{name}.so
  110. %{_libdir}/pkgconfig/%{name}-1.0.pc
  111. %dir %{_includedir}/%{name}-1.0
  112. %{_includedir}/%{name}-1.0/%{name}/*.h
  113. %files gnome-devel
  114. %defattr(-,root,root,-)
  115. %{_libdir}/%{name}gnome.so
  116. %{_libdir}/pkgconfig/%{name}-gnome-1.0.pc
  117. %dir %{_includedir}/%{name}-1.0/%{name}-gnome
  118. %{_includedir}/%{name}-1.0/%{name}-gnome/gdkpixbuf.h
  119. %files pixbuf-loader
  120. %defattr(-,root,root,-)
  121. %{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
  122. %changelog
  123. * Mon Jun 13 2011 IWAI, Masaharu <iwai@alib.jp> 0.0.8-1
  124. - initial build for Vine Linux
  125. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-5
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  127. * Sun Oct 24 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-4
  128. - fix %%post and %%postun scripts and install directory for
  129. pixbuf-loader
  130. * Sun Oct 24 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-3
  131. - add upstream patch 22287584fbfa4657098ee997957a6c4fc972a53b to
  132. properly decompress CFA from certain cameras (BZ 624283)
  133. * Wed Sep 08 2010 Christian Krause <chkr@fedoraproject.org> - 0.0.8-2
  134. - add upstream patch 1b15acdcfdc4664bc6c0be473cb6e096071a4e62
  135. to support certain PEF files and to fix a crash when opening
  136. such files (BZ 606898)
  137. * Sat Dec 05 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.0.8-1
  138. - Version bump to 0.0.8.
  139. * Fixed a huge memory leak. (FreeDesktop Bugzilla #21435)
  140. * cfa output should write the data in PGM as big endian.
  141. * Better handling of Canon CR2 "slices" to fix crasher with Canon
  142. 450D/Digital Rebel XSi files (and possibly others).
  143. * Added new API or_rawfile_new_from_memory() to load a Raw file from a
  144. memory buffer.
  145. * Added new API or_rawfile_get_typeid() and the associated consts.
  146. * Added new API or_rawdata_get_minmax().
  147. * Added new API or_get_file_extensions().
  148. * Added new API or_rawfile_get_rendered_image() to get a rendered image.
  149. * Added new API or_bitmapdata_*().
  150. * New GdkPixbuf loader.
  151. * Decompress NEF files.
  152. - License changed to LGPLv3 or later.
  153. - Missing includes fixed by upstream.
  154. - Replaced 'BuildRequires: chrpath glib2-devel' with 'BuildRequires:
  155. exempi-devel libcurl-devel'.
  156. - Added 'Requires: gtk2' to pixbuf-loader for directory ownership.
  157. - Added a %%check stanza.
  158. * Fri Jul 24 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.0.5-4
  159. - Autorebuild for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  160. * Wed Feb 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.0.5-3
  161. - add stdio.h for fopen and friends
  162. * Wed Feb 25 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.0.5-2
  163. - Autorebuild for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  164. * Tue Mar 04 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.5-1
  165. - New upstream version.
  166. * Wed Feb 20 2008 Release Engineering <rel-eng@fedoraproject.org> - 0.0.4-3
  167. - Autorebuild for GCC 4.3
  168. * Wed Jan 30 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.4-2
  169. - Added missing dependency on libxml
  170. * Wed Jan 30 2008 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.4-1
  171. - New upstream version.
  172. * Fri Dec 28 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.3-1
  173. - New upstream version.
  174. - Updated license tag.
  175. - Fixed rpath error.
  176. * Thu May 03 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-5
  177. - Added unowned directory to list of files.
  178. - Changed license from GPL to LGPL.
  179. * Wed May 02 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-4
  180. - Moved gui components to a separate package.
  181. * Tue May 01 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-3
  182. - Added missing BuildRequirement.
  183. * Mon Apr 30 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-2
  184. - Added missing BuildRequirement.
  185. * Sun Apr 29 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.0.2-1
  186. - Inital version.