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