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