libopenraw-vl.spec 7.2 KB

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