shotwell-vl.spec 4.9 KB

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