]> git.pld-linux.org Git - packages/shotwell.git/blame - shotwell.spec
Release: 2
[packages/shotwell.git] / shotwell.spec
CommitLineData
ef4a4c23
MB
1Summary: Photo manager for GNOME
2Name: shotwell
3c484989 3Version: 0.13.1
01674a4b 4Release: 2
ef4a4c23
MB
5License: LGPL v2+ and CC-BY-SA
6Group: X11/Applications
0bc3d124 7Source0: http://yorba.org/download/shotwell/0.13/%{name}-%{version}.tar.xz
3c484989 8# Source0-md5: 71eb1346093705ca2b37c12a21994d14
16625d9e 9Patch0: %{name}-cflags.patch
3c484989 10Patch1: %{name}-libexec.patch
23007e22 11Patch2: %{name}-format_string.patch
ef4a4c23 12URL: http://yorba.org/shotwell/
cbd0b1ac 13# The dependencies are listed in Makefile
6cdc458b 14BuildRequires: bash
ef4a4c23 15BuildRequires: gettext-devel
2336a66e 16BuildRequires: gexiv2-devel
cbd0b1ac
JK
17BuildRequires: glib2-devel >= 2.30.0
18BuildRequires: gstreamer-devel >= 0.10.28
19BuildRequires: gstreamer-plugins-base-devel >= 0.10.32
3c484989 20BuildRequires: gtk+3-devel >= 3.4
cbd0b1ac
JK
21BuildRequires: gtk-webkit3-devel >= 1.4.0
22BuildRequires: json-glib-devel >= 0.6.16
ef4a4c23 23BuildRequires: libexif-devel >= 0.6.16
ef4a4c23 24BuildRequires: libgphoto2-devel >= 2.4.2
0bc3d124 25BuildRequires: libraw-devel >= 0.14.7-2
ef4a4c23 26BuildRequires: libsoup-devel >= 2.26.0
cbd0b1ac 27BuildRequires: libunique3-devel >= 3.0.0
ef4a4c23
MB
28BuildRequires: libusb-compat-devel
29BuildRequires: libxml2-devel >= 1:2.6.32
6cdc458b 30BuildRequires: m4
ef4a4c23 31BuildRequires: pkgconfig
57bbc534 32BuildRequires: rest-devel >= 0.7
ef4a4c23
MB
33BuildRequires: rpmbuild(macros) >= 1.311
34BuildRequires: sqlite3-devel >= 3.5.9
35BuildRequires: udev-glib-devel >= 145
0bc3d124 36BuildRequires: vala >= 1:0.17.2
cbd0b1ac 37BuildRequires: vala-gexiv2 >= 0.3.92
3352f896 38BuildRequires: vala-libgee >= 0.5.0
ef4a4c23 39Requires(post,postun): desktop-file-utils
3352f896 40Requires(post,postun): glib2 >= 1:2.26.0
a7666439
AF
41Requires(post,postun): gtk-update-icon-cache
42Requires(post,postun): hicolor-icon-theme
ef4a4c23
MB
43Requires: hicolor-icon-theme
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
47Shotwell is a digital photo organizer designed for the GNOME desktop
48environment. It allows you to import photos from disk or camera,
49organize them in various ways, view them in full-window or fullscreen
50mode, and export them to share with others.
51
52%prep
53%setup -q
57bbc534 54%patch0 -p1
3c484989 55%patch1 -p1
23007e22 56%patch2 -p1
ef4a4c23
MB
57
58%build
6cdc458b 59# this is not autoconf generated
ef4a4c23
MB
60./configure \
61 --prefix=%{_prefix} \
6426964a 62 --lib=%{_lib} \
ef4a4c23
MB
63 --disable-schemas-install \
64 --disable-desktop-update \
65 --disable-icon-update
16625d9e 66
ef4a4c23
MB
67%{__make} \
68 CC="%{__cc}" \
57bbc534 69 RPMCFLAGS="%{rpmcflags}"
ef4a4c23
MB
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
74%{__make} install \
6426964a 75 DESTDIR=$RPM_BUILD_ROOT
16625d9e 76
73407465
JB
77# ta_IN is a duplicate of ta
78# te_IN is incomplete duplicate of te
79%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ta_IN,te_IN}
57bbc534 80
c88ae34c 81%find_lang shotwell --with-gnome
910bb999
MB
82%find_lang shotwell-extras
83
84cat shotwell.lang shotwell-extras.lang > shotwell-all.lang
ef4a4c23 85
73407465 86%{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled
57bbc534 87
ef4a4c23
MB
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post
ef4a4c23
MB
92%update_icon_cache hicolor
93%update_desktop_database
3352f896 94%glib_compile_schemas
ef4a4c23 95
ef4a4c23
MB
96%postun
97%update_icon_cache hicolor
98%update_desktop_database_postun
3352f896 99%glib_compile_schemas
ef4a4c23 100
910bb999 101%files -f shotwell-all.lang
ef4a4c23
MB
102%defattr(644,root,root,755)
103%doc AUTHORS COPYING MAINTAINERS NEWS README THANKS
fb983c00 104%attr(755,root,root) %{_bindir}/shotwell*
16625d9e
JK
105%{_desktopdir}/%{name}-viewer.desktop
106%{_desktopdir}/%{name}.desktop
3c484989 107%attr(755,root,root) %{_libdir}/%{name}/shotwell-settings-migrator
16625d9e 108%{_datadir}/%{name}
9efefa8e 109%{_datadir}/GConf/gsettings/*.convert
110%{_datadir}/glib-2.0/schemas/*.gschema.xml
16625d9e
JK
111%dir %{_libdir}/%{name}
112%dir %{_libdir}/%{name}/plugins
113%dir %{_libdir}/%{name}/plugins/builtin
114%{_libdir}/%{name}/plugins/builtin/*.png
115%{_libdir}/%{name}/plugins/builtin/*.glade
116%attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/*.so
ef4a4c23 117%{_iconsdir}/hicolor/*/*/*.svg
This page took 0.072825 seconds and 4 git commands to generate.