source: projects/specs/trunk/s/shotwell/shotwell-vl.spec @ 5025

Revision 5025, 7.4 KB checked in by kudoh, 13 years ago (diff)

Name: shotwell
Version: 0.11.5
Release: 1%{?_dist_release}
Summary: A photo manager for the GNOME desktop
Summary(ja): GNOME デスクトップ向けの写真管理ツール

Group: Applications/Graphics?
# LGPLv2+ for the code
# CC-BY-SA for some of the icons
License: LGPLv2+ and CC-BY-SA
URL:  http://www.yorba.org/shotwell/

Source0:  http://www.yorba.org/download/shotwell/0.10/shotwell-%{version}.tar.bz2
#  http://trac.yorba.org/ticket/3379
Source1: shotwell-icons.tar.bz2
Source2: shotwell-0.8.1-vine2-ja.po

Patch0: shotwell-0.11.1-vala-0.14.patch

BuildRoot?: %{_tmppath}/%{name}-%{version}-root

BuildRequires?: GConf2-devel
BuildRequires?: LibRaw?-devel
BuildRequires?: LibRaw?-static
BuildRequires?: WebKit?-gtk-devel
BuildRequires?: dbus-glib-devel
BuildRequires?: desktop-file-utils
BuildRequires?: gettext
BuildRequires?: gtk2-devel
BuildRequires?: gstreamer-devel
BuildRequires?: gstreamer-plugins-base-devel
BuildRequires?: hal-devel
BuildRequires?: json-glib-devel
BuildRequires?: libexif-devel
BuildRequires?: libgee-devel
BuildRequires?: libgphoto2-devel
BuildRequires?: libgudev1-devel
BuildRequires?: libgexiv2-devel >= 0.2.0
BuildRequires?: libsoup-devel
BuildRequires?: libxml2-devel
BuildRequires?: sqlite3-devel
BuildRequires?: unique-devel
BuildRequires?: vala-devel >= 0.9.5

Vendor: Project Vine
Distribution: Vine Linux
Packager: kudoh

%description
Shotwell is a new open source photo manager designed for the GNOME desktop
environment. It allows you to import photos from your camera, view and edit
them, and share them with others.

%description -l ja
Shotwell は GNOME デスクトップ環境用に設計された新しいオープンソースの
画像管理ツールです。
あなたのカメラから写真を取り込んだり、それらを表示・編集したり、
他の人々と共有するなどができます。

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .vala014
pushd po
%rm -f ja.po
%
cp %{SOURCE2} ja.po
popd

%build
# We can't use the configure macro: it's not a standard autotools configure script
export CFLAGS="%{optflags}"
export LIB=%{_lib}

# HACK: Remove fatal-warnings to succeed build with vala 0.13.
sed -i "s:--fatal-warnings ::g" Makefile plugins/Makefile.plugin.mk
./configure --prefix=%{_prefix} --lib=%{_lib} --disable-schemas-install
#sed -i -e 's/
n/\n/g' configure.mk
#sed -i -e 's/CFLAGS=.*$/CFLAGS=%{optflags}/' Makefile
#sed -i -e 's|LIB_DIRS=.*$|LIB_DIRS=%{_libdir}|' libraw-config
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
export XDG_DISABLE_MAKEFILE_UPDATES=1
# otherwise gettext always returns English text regardless of LANGUAGE asked
export LANG=en_US.utf8
make install DESTDIR=$RPM_BUILD_ROOT

desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell.desktop
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell-viewer.desktop

# put hi-res icons in place
(

cd $RPM_BUILD_ROOT%{_datadir}/icons/hicolor
rm -rf 16x16 24x24 scalable
tar xf %{SOURCE1}

)

%find_lang %{name} --all-name

%clean
rm -rf $RPM_BUILD_ROOT

%post

touch --no-create %{_datadir}/icons/hicolor &>/dev/null update-desktop-database &> /dev/null
:
:

%postun
if [ $1 -eq 0 ] ; then

touch --no-create %{_datadir}/icons/hicolor &>/dev/null

gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null glib-compile-schemas %{_datadir}/glib-2.0/schemas
:
:

fi

update-desktop-database &> /dev/null
:

%posttrans

gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null glib-compile-schemas %{_datadir}/glib-2.0/schemas
:
:

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README COPYING MAINTAINERS NEWS THANKS AUTHORS
%{_bindir}/shotwell
%{_bindir}/shotwell-video-thumbnailer
%{_libdir}/shotwell/plugins/builtin
%{_datadir}/GConf/gsettings/shotwell.convert
%{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
%{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
%{_datadir}/gnome/help/
%{_datadir}/shotwell
%{_datadir}/applications/shotwell.desktop
%{_datadir}/applications/shotwell-viewer.desktop
%{_datadir}/icons/hicolor/*
%exclude %{_datadir}/icons/hicolor/icon-theme.cache
%exclude %{_datadir}/glib-2.0/schemas/gschemas.compiled

%changelog

  • Thu Oct 20 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.11.5-1
  • new upstream release
  • Fri Oct 14 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.11.4-1
  • new upstream release
  • Fri Sep 23 2011 Yoji TOYODA <bsyamato@…> 0.11.2-1
  • new upstream release
  • add Patch0 (shotwell-0.11.1-vala-0.14.patch)
  • add BuildRequires?: gstreamer-plugins-base-devel
  • Sat Aug 27 2011 Ryoichi INAGAKI <ryo1@…> 0.10.1-2
  • rebuilt with libgexiv2-0.2.2-2
  • Wed Aug 17 2011 Yoji TOYODA <bsyamato@…> 0.10.1-1
  • new upstream release
  • Sat Jun 18 2011 IWAI, Masaharu <iwai@…> 0.8.1-5
  • add ja.po (Source2): fix <BTS:VineLinux:1142>
  • update Summary and description
  • Fri Jun 10 2011 Daisuke SUZUKI <daisuke@…> 0.8.1-4
  • add hi-res icons (SOURCE1)
  • add LANG=en_US.utf8 to get gettext to actually generate translated strings
  • Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.8.1-3
  • dropt Patch0
  • added BuildRequires?: LibRaw?-static
  • Sun Apr 03 2011 Yoji TOYODA <bsyamato@…> - 0.8.1-2
  • add Patch1 (shotwell-0.8.1-vala.patch)
  • Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.8.1-1
  • new upstream release
  • added BuildRequires?: gstreamer-devel, json-glib-devel, libsoup-devel, libxml2-devel
  • Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.7.2-2
  • rebuilt with rpm-4.8.1 for pkg-config
  • fixed %%changelog in Tue Sep 14 2010
  • Tue Sep 14 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.7.2-1
  • new upstream release
  • changed source URL
  • added Patch0 to work around desktop file incorrect comment
  • changed BuildRequires?: vala-devel >= 0.9.5
  • Fri Aug 27 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.7.1-1
  • new upstream release
  • Sat Aug 21 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.7.0-1
  • new upstream release
  • changed BuildRequires?: libgexiv2-devel >= 0.2.0
  • Thu Jul 22 2010 Shu KONNO <owa@…> - 0.6.1-2
  • fixed LIB_DIRS in libraw-config (for lib64)
  • Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.1-1
  • new upstream release
  • added BuildRequires?: LibRaw?-devel, libgexiv2-devel
  • Wed May 12 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.5.2-1
  • new upstream release
  • Sat Mar 13 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.5.0-1
  • new upstream release
  • added BuildRequires?: libgudev1-devel
  • applied new naming policy to spec
  • Wed Jan 20 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.4.3-1
  • new upstream release
  • proved Japanese description
  • Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.4.2-1
  • new upstrema release
  • Wed Dec 30 2009 Toshiharu Kudoh <toshi.kd2@…> - 0.4.1-1
  • intial build for VineSeed
  • Fri Dec 18 2009 Matthias Clasen <mclasen@…> - 0.4.0-0.1.20091218svn
  • Thu Nov 12 2009 Matthias Clasen <mclasen@…> - 0.3.2-1
  • Update to 0.3.2
  • Tue Nov 3 2009 Matthias Clasen <mclasen@…> - 0.3.0-1
  • Version 0.3.0
  • Thu Aug 20 2009 Michel Salim <salimma@…> - 0.2.0-3
  • Rebuild against new libgee
  • Sun Aug 12 2009 Matthias Clasen <mclasen@…> - 0.2.0-2.fc12
  • Bring icon cache handling in sync with current guidelines
  • Sun Aug 9 2009 Matthias Clasen <mclasen@…> - 0.2.0-1.fc12
  • Initial packaging
RevLine 
[521]1Name:           shotwell
[5025]2Version:        0.11.5
[4812]3Release:        1%{?_dist_release}
[4172]4Summary:        A photo manager for the GNOME desktop
5Summary(ja):    GNOME デスクトップ向けの写真管理ツール
[521]6
7Group:          Applications/Graphics
8# LGPLv2+ for the code
9# CC-BY-SA for some of the icons
10License:        LGPLv2+ and CC-BY-SA
11URL:            http://www.yorba.org/shotwell/
[4104]12
[4616]13Source0:        http://www.yorba.org/download/shotwell/0.10/shotwell-%{version}.tar.bz2
[4104]14# http://trac.yorba.org/ticket/3379
15Source1:        shotwell-icons.tar.bz2
[4172]16Source2:        shotwell-0.8.1-vine2-ja.po
[521]17
[4812]18Patch0:         shotwell-0.11.1-vala-0.14.patch
19
[521]20BuildRoot:      %{_tmppath}/%{name}-%{version}-root
21
[1343]22BuildRequires:  GConf2-devel
23BuildRequires:  LibRaw-devel
[4055]24BuildRequires:  LibRaw-static
[1343]25BuildRequires:  WebKit-gtk-devel
26BuildRequires:  dbus-glib-devel
27BuildRequires:  desktop-file-utils
28BuildRequires:  gettext
[521]29BuildRequires:  gtk2-devel
[2491]30BuildRequires:  gstreamer-devel
[4812]31BuildRequires:  gstreamer-plugins-base-devel
[1343]32BuildRequires:  hal-devel
[2491]33BuildRequires:  json-glib-devel
[1343]34BuildRequires:  libexif-devel
35BuildRequires:  libgee-devel
36BuildRequires:  libgphoto2-devel
[564]37BuildRequires:  libgudev1-devel
[1628]38BuildRequires:  libgexiv2-devel >= 0.2.0
[2491]39BuildRequires:  libsoup-devel
40BuildRequires:  libxml2-devel
[521]41BuildRequires:  sqlite3-devel
[1343]42BuildRequires:  unique-devel
[1803]43BuildRequires:  vala-devel >= 0.9.5
[521]44
[4104]45Vendor: Project Vine
46Distribution: Vine Linux
47Packager: kudoh
48
[521]49%description
[4172]50Shotwell is a new open source photo manager designed for the GNOME desktop
[521]51environment. It allows you to import photos from your camera, view and edit
52them, and share them with others.
53
54%description -l ja
55Shotwell は GNOME デスクトップ環境用に設計された新しいオープンソースの
[4172]56画像管理ツールです。
[521]57あなたのカメラから写真を取り込んだり、それらを表示・編集したり、
58他の人々と共有するなどができます。
59
60%prep
61%setup -q -n %{name}-%{version}
[4812]62%patch0 -p1 -b .vala014
[4172]63pushd po
64%__rm -f ja.po
65%__cp %{SOURCE2} ja.po
66popd
[521]67
68%build
[4812]69# We can't use the configure macro: it's not a standard autotools configure script
70export CFLAGS="%{optflags}"
71export LIB=%{_lib}
72
73# HACK: Remove fatal-warnings to succeed build with vala 0.13.
74sed -i "s:--fatal-warnings ::g" Makefile plugins/Makefile.plugin.mk
75./configure --prefix=%{_prefix} --lib=%{_lib} --disable-schemas-install
76#sed -i -e 's/\\n/\n/g' configure.mk
77#sed -i -e 's/^CFLAGS=.*$/CFLAGS=%{optflags}/' Makefile
78#sed -i -e 's|LIB_DIRS=.*$|LIB_DIRS=%{_libdir}|' libraw-config
[521]79make %{?_smp_mflags}
80
81
82%install
83rm -rf $RPM_BUILD_ROOT
84export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
85export XDG_DISABLE_MAKEFILE_UPDATES=1
[4104]86# otherwise gettext always returns English text regardless of LANGUAGE asked
87export LANG=en_US.utf8
[521]88make install DESTDIR=$RPM_BUILD_ROOT
89
90desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell.desktop
91desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/shotwell-viewer.desktop
92
[4104]93# put hi-res icons in place
94(
95  cd $RPM_BUILD_ROOT%{_datadir}/icons/hicolor
96  rm -rf 16x16 24x24 scalable
97  tar xf %{SOURCE1}
98)
99     
[4616]100%find_lang %{name} --all-name
[521]101
102%clean
103rm -rf $RPM_BUILD_ROOT
104
105%post
106touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
107update-desktop-database &> /dev/null || :
108
109%postun
110if [ $1 -eq 0 ] ; then
111  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
112  gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
[4812]113  glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
[521]114fi
115update-desktop-database &> /dev/null || :
116
117%posttrans
118gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
[4812]119glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
[521]120
121%files -f %{name}.lang
122%defattr(-,root,root,-)
123%doc README COPYING MAINTAINERS NEWS THANKS AUTHORS
124%{_bindir}/shotwell
[4616]125%{_bindir}/shotwell-video-thumbnailer
126%{_libdir}/shotwell/plugins/builtin
[4812]127%{_datadir}/GConf/gsettings/shotwell.convert
128%{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
129%{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
[1628]130%{_datadir}/gnome/help/
[521]131%{_datadir}/shotwell
132%{_datadir}/applications/shotwell.desktop
133%{_datadir}/applications/shotwell-viewer.desktop
[564]134%{_datadir}/icons/hicolor/*
[3330]135%exclude %{_datadir}/icons/hicolor/icon-theme.cache
[4812]136%exclude %{_datadir}/glib-2.0/schemas/gschemas.compiled
[521]137
138
139%changelog
[5025]140* Thu Oct 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.5-1
141- new upstream release
142
[4967]143* Fri Oct 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.4-1
[5025]144- new upstream release
[4967]145
[4812]146* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.11.2-1
147- new upstream release
148- add Patch0 (shotwell-0.11.1-vala-0.14.patch)
149- add BuildRequires: gstreamer-plugins-base-devel
150
[4663]151* Sat Aug 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.10.1-2
152- rebuilt with libgexiv2-0.2.2-2
153
[4616]154* Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.1-1
155- new upstream release
156
[4172]157* Sat Jun 18 2011 IWAI, Masaharu <iwai@alib.jp> 0.8.1-5
158- add ja.po (Source2): fix <BTS:VineLinux:1142>
159- update Summary and description
160
[4104]161* Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.1-4
162- add hi-res icons (SOURCE1)
163- add LANG=en_US.utf8 to get gettext to actually generate translated strings
164
[4055]165* Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.1-3
166- dropt Patch0
167- added BuildRequires: LibRaw-static
168
[3330]169* Sun Apr 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.8.1-2
170- add Patch1 (shotwell-0.8.1-vala.patch)
171
[2491]172* Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.1-1
173- new upstream release
174- added BuildRequires: gstreamer-devel, json-glib-devel, libsoup-devel, libxml2-devel
175
[1939]176* Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
177- rebuilt with rpm-4.8.1 for pkg-config
178- fixed %%changelog in Tue Sep 14 2010
179
[1803]180* Tue Sep 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
181- new upstream release
182- changed source URL
[1939]183- added Patch0 to work around desktop file incorrect comment
[1803]184- changed BuildRequires: vala-devel >= 0.9.5
185
[1677]186* Fri Aug 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
187- new upstream release
188
[1628]189* Sat Aug 21 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.0-1
190- new upstream release
191- changed BuildRequires: libgexiv2-devel >= 0.2.0
192
[1417]193* Thu Jul 22 2010 Shu KONNO <owa@bg.wakwak.com> - 0.6.1-2
194- fixed LIB_DIRS in libraw-config (for lib64)
195
[1343]196* Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
197- new upstream release
198- added BuildRequires: LibRaw-devel, libgexiv2-devel
199
[1007]200* Wed May 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1
201- new upstream release
202
[564]203* Sat Mar 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.0-1
204- new upstream release
205- added BuildRequires:  libgudev1-devel
206- applied new naming policy to spec
207
[521]208* Wed Jan 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.3-1
[564]209- new upstream release
[521]210- proved Japanese description
211
212* Thu Jan 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.2-1
213- new upstrema release
214
215* Wed Dec 30 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.1-1
216- intial build for VineSeed
217
218* Fri Dec 18 2009 Matthias Clasen <mclasen@redhat.com> - 0.4.0-0.1.20091218svn
219* Thu Nov 12 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.2-1
220- Update to 0.3.2
221
222* Tue Nov  3 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.0-1
223- Version 0.3.0
224
225* Thu Aug 20 2009 Michel Salim <salimma@fedoraproject.org> - 0.2.0-3
226- Rebuild against new libgee
227
228* Sun Aug 12 2009  Matthias Clasen <mclasen@redhat.com> - 0.2.0-2.fc12
229- Bring icon cache handling in sync with current guidelines
230
231* Sun Aug  9 2009  Matthias Clasen <mclasen@redhat.com> - 0.2.0-1.fc12
232- Initial packaging
Note: See TracBrowser for help on using the repository browser.