shotwell-vl.spec 4.4 KB

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