shotwell-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. Name: shotwell
  2. Version: 0.8.1
  3. Release: 4%{?_dist_release}
  4. Summary: A photo organizer for the GNOME desktop
  5. Summary(ja): GNOME デスクトップ向けの画像整理ソフト
  6. Group: Applications/Graphics
  7. # LGPLv2+ for the code
  8. # CC-BY-SA for some of the icons
  9. License: LGPLv2+ and CC-BY-SA
  10. URL: http://www.yorba.org/shotwell/
  11. Source0: http://www.yorba.org/download/shotwell/0.8/shotwell-%{version}.tar.bz2
  12. # http://trac.yorba.org/ticket/3379
  13. Source1: shotwell-icons.tar.bz2
  14. Patch1: shotwell-0.8.1-vala.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: GConf2-devel
  17. BuildRequires: LibRaw-devel
  18. BuildRequires: LibRaw-static
  19. BuildRequires: WebKit-gtk-devel
  20. BuildRequires: dbus-glib-devel
  21. BuildRequires: desktop-file-utils
  22. BuildRequires: gettext
  23. BuildRequires: gtk2-devel
  24. BuildRequires: gstreamer-devel
  25. BuildRequires: hal-devel
  26. BuildRequires: json-glib-devel
  27. BuildRequires: libexif-devel
  28. BuildRequires: libgee-devel
  29. BuildRequires: libgphoto2-devel
  30. BuildRequires: libgudev1-devel
  31. BuildRequires: libgexiv2-devel >= 0.2.0
  32. BuildRequires: libsoup-devel
  33. BuildRequires: libxml2-devel
  34. BuildRequires: sqlite3-devel
  35. BuildRequires: unique-devel
  36. BuildRequires: vala-devel >= 0.9.5
  37. Vendor: Project Vine
  38. Distribution: Vine Linux
  39. Packager: kudoh
  40. %description
  41. Shotwell is a new open source photo organizer designed for the GNOME desktop
  42. environment. It allows you to import photos from your camera, view and edit
  43. them, and share them with others.
  44. %description -l ja
  45. Shotwell は GNOME デスクトップ環境用に設計された新しいオープンソースの
  46. 画像整理ソフトです。
  47. あなたのカメラから写真を取り込んだり、それらを表示・編集したり、
  48. 他の人々と共有するなどができます。
  49. %prep
  50. %setup -q -n %{name}-%{version}
  51. #%patch0 -p1
  52. %patch1 -p1
  53. %build
  54. ./configure --prefix=/usr --disable-schemas-install --assume-pkgs
  55. sed -i -e 's/\\n/\n/g' configure.mk
  56. sed -i -e 's/^CFLAGS=.*$/CFLAGS=%{optflags}/' Makefile
  57. sed -i -e 's|LIB_DIRS=.*$|LIB_DIRS=%{_libdir}|' libraw-config
  58. make %{?_smp_mflags}
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  62. export XDG_DISABLE_MAKEFILE_UPDATES=1
  63. # otherwise gettext always returns English text regardless of LANGUAGE asked
  64. export LANG=en_US.utf8
  65. make install DESTDIR=$RPM_BUILD_ROOT
  66. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell.desktop
  67. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell-viewer.desktop
  68. # put hi-res icons in place
  69. (
  70. cd $RPM_BUILD_ROOT%{_datadir}/icons/hicolor
  71. rm -rf 16x16 24x24 scalable
  72. tar xf %{SOURCE1}
  73. )
  74. %find_lang %{name}
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT
  77. %post
  78. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  79. update-desktop-database &> /dev/null || :
  80. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  81. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/shotwell.schemas > /dev/null || :
  82. %pre
  83. if [ "$1" -gt 1 ]; then
  84. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  85. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/shotwell.schemas > /dev/null || :
  86. fi
  87. %preun
  88. if [ "$1" -eq 0 ]; then
  89. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  90. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/shotwell.schemas > /dev/null || :
  91. fi
  92. %postun
  93. if [ $1 -eq 0 ] ; then
  94. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  95. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
  96. fi
  97. update-desktop-database &> /dev/null || :
  98. %posttrans
  99. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
  100. %files -f %{name}.lang
  101. %defattr(-,root,root,-)
  102. %doc README COPYING MAINTAINERS NEWS THANKS AUTHORS
  103. %{_sysconfdir}/gconf/schemas/shotwell.schemas
  104. %{_bindir}/shotwell
  105. %{_datadir}/gnome/help/
  106. %{_datadir}/shotwell
  107. %{_datadir}/applications/shotwell.desktop
  108. %{_datadir}/applications/shotwell-viewer.desktop
  109. %{_datadir}/icons/hicolor/*
  110. %exclude %{_datadir}/icons/hicolor/icon-theme.cache
  111. %changelog
  112. * Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.1-4
  113. - add hi-res icons (SOURCE1)
  114. - add LANG=en_US.utf8 to get gettext to actually generate translated strings
  115. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.1-3
  116. - dropt Patch0
  117. - added BuildRequires: LibRaw-static
  118. * Sun Apr 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.8.1-2
  119. - add Patch1 (shotwell-0.8.1-vala.patch)
  120. * Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.1-1
  121. - new upstream release
  122. - added BuildRequires: gstreamer-devel, json-glib-devel, libsoup-devel, libxml2-devel
  123. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
  124. - rebuilt with rpm-4.8.1 for pkg-config
  125. - fixed %%changelog in Tue Sep 14 2010
  126. * Tue Sep 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  127. - new upstream release
  128. - changed source URL
  129. - added Patch0 to work around desktop file incorrect comment
  130. - changed BuildRequires: vala-devel >= 0.9.5
  131. * Fri Aug 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
  132. - new upstream release
  133. * Sat Aug 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.0-1
  134. - new upstream release
  135. - changed BuildRequires: libgexiv2-devel >= 0.2.0
  136. * Thu Jul 22 2010 Shu KONNO <owa@bg.wakwak.com> - 0.6.1-2
  137. - fixed LIB_DIRS in libraw-config (for lib64)
  138. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
  139. - new upstream release
  140. - added BuildRequires: LibRaw-devel, libgexiv2-devel
  141. * Wed May 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1
  142. - new upstream release
  143. * Sat Mar 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.0-1
  144. - new upstream release
  145. - added BuildRequires: libgudev1-devel
  146. - applied new naming policy to spec
  147. * Wed Jan 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.3-1
  148. - new upstream release
  149. - proved Japanese description
  150. * Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.2-1
  151. - new upstrema release
  152. * Wed Dec 30 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.1-1
  153. - intial build for VineSeed
  154. * Fri Dec 18 2009 Matthias Clasen <mclasen@redhat.com> - 0.4.0-0.1.20091218svn
  155. * Thu Nov 12 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.2-1
  156. - Update to 0.3.2
  157. * Tue Nov 3 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.0-1
  158. - Version 0.3.0
  159. * Thu Aug 20 2009 Michel Salim <salimma@fedoraproject.org> - 0.2.0-3
  160. - Rebuild against new libgee
  161. * Sun Aug 12 2009 Matthias Clasen <mclasen@redhat.com> - 0.2.0-2.fc12
  162. - Bring icon cache handling in sync with current guidelines
  163. * Sun Aug 9 2009 Matthias Clasen <mclasen@redhat.com> - 0.2.0-1.fc12
  164. - Initial packaging