shotwell-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. Name: shotwell
  2. Version: 0.7.2
  3. Release: 2%{?_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.7/shotwell-%{version}.tar.bz2
  12. # svn co svn://svn.yorba.org/shotwell/branches/shotwell-0.4, make dist
  13. Patch0: workaround_desktop.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: GConf2-devel
  16. BuildRequires: LibRaw-devel
  17. BuildRequires: WebKit-gtk-devel
  18. BuildRequires: dbus-glib-devel
  19. BuildRequires: desktop-file-utils
  20. BuildRequires: gettext
  21. BuildRequires: gtk2-devel
  22. BuildRequires: hal-devel
  23. BuildRequires: libexif-devel
  24. BuildRequires: libgee-devel
  25. BuildRequires: libgphoto2-devel
  26. BuildRequires: libgudev1-devel
  27. BuildRequires: libgexiv2-devel >= 0.2.0
  28. BuildRequires: sqlite3-devel
  29. BuildRequires: unique-devel
  30. BuildRequires: vala-devel >= 0.9.5
  31. %description
  32. Shotwell is a new open source photo organizer designed for the GNOME desktop
  33. environment. It allows you to import photos from your camera, view and edit
  34. them, and share them with others.
  35. %description -l ja
  36. Shotwell は GNOME デスクトップ環境用に設計された新しいオープンソースの
  37. 画像整理ソフトです。
  38. あなたのカメラから写真を取り込んだり、それらを表示・編集したり、
  39. 他の人々と共有するなどができます。
  40. %prep
  41. %setup -q -n %{name}-%{version}
  42. %patch0 -p1
  43. %build
  44. ./configure --prefix=/usr --disable-schemas-install --assume-pkgs
  45. sed -i -e 's/\\n/\n/g' configure.mk
  46. sed -i -e 's/^CFLAGS=.*$/CFLAGS=%{optflags}/' Makefile
  47. sed -i -e 's|LIB_DIRS=.*$|LIB_DIRS=%{_libdir}|' libraw-config
  48. make %{?_smp_mflags}
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  52. export XDG_DISABLE_MAKEFILE_UPDATES=1
  53. make install DESTDIR=$RPM_BUILD_ROOT
  54. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell.desktop
  55. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell-viewer.desktop
  56. %find_lang %{name}
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %post
  60. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  61. update-desktop-database &> /dev/null || :
  62. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  63. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/shotwell.schemas > /dev/null || :
  64. %pre
  65. if [ "$1" -gt 1 ]; then
  66. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  67. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/shotwell.schemas > /dev/null || :
  68. fi
  69. %preun
  70. if [ "$1" -eq 0 ]; then
  71. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  72. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/shotwell.schemas > /dev/null || :
  73. fi
  74. %postun
  75. if [ $1 -eq 0 ] ; then
  76. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  77. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
  78. fi
  79. update-desktop-database &> /dev/null || :
  80. %posttrans
  81. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
  82. %files -f %{name}.lang
  83. %defattr(-,root,root,-)
  84. %doc README COPYING MAINTAINERS NEWS THANKS AUTHORS
  85. %{_sysconfdir}/gconf/schemas/shotwell.schemas
  86. %{_bindir}/shotwell
  87. %{_datadir}/gnome/help/
  88. %{_datadir}/shotwell
  89. %{_datadir}/applications/shotwell.desktop
  90. %{_datadir}/applications/shotwell-viewer.desktop
  91. %{_datadir}/icons/hicolor/*
  92. %changelog
  93. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
  94. - rebuilt with rpm-4.8.1 for pkg-config
  95. - fixed %%changelog in Tue Sep 14 2010
  96. * Tue Sep 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  97. - new upstream release
  98. - changed source URL
  99. - added Patch0 to work around desktop file incorrect comment
  100. - changed BuildRequires: vala-devel >= 0.9.5
  101. * Fri Aug 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
  102. - new upstream release
  103. * Sat Aug 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.0-1
  104. - new upstream release
  105. - changed BuildRequires: libgexiv2-devel >= 0.2.0
  106. * Thu Jul 22 2010 Shu KONNO <owa@bg.wakwak.com> - 0.6.1-2
  107. - fixed LIB_DIRS in libraw-config (for lib64)
  108. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
  109. - new upstream release
  110. - added BuildRequires: LibRaw-devel, libgexiv2-devel
  111. * Wed May 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1
  112. - new upstream release
  113. * Sat Mar 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.0-1
  114. - new upstream release
  115. - added BuildRequires: libgudev1-devel
  116. - applied new naming policy to spec
  117. * Wed Jan 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.3-1
  118. - new upstream release
  119. - proved Japanese description
  120. * Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.2-1
  121. - new upstrema release
  122. * Wed Dec 30 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.1-1
  123. - intial build for VineSeed
  124. * Fri Dec 18 2009 Matthias Clasen <mclasen@redhat.com> - 0.4.0-0.1.20091218svn
  125. * Thu Nov 12 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.2-1
  126. - Update to 0.3.2
  127. * Tue Nov 3 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.0-1
  128. - Version 0.3.0
  129. * Thu Aug 20 2009 Michel Salim <salimma@fedoraproject.org> - 0.2.0-3
  130. - Rebuild against new libgee
  131. * Sun Aug 12 2009 Matthias Clasen <mclasen@redhat.com> - 0.2.0-2.fc12
  132. - Bring icon cache handling in sync with current guidelines
  133. * Sun Aug 9 2009 Matthias Clasen <mclasen@redhat.com> - 0.2.0-1.fc12
  134. - Initial packaging