]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | %bcond_without gnome2 | |
3 | # | |
4 | Summary: Personal photo manager | |
5 | Summary(pl.UTF-8): Menedżer prywatnych galerii fotograficznych | |
6 | Name: f-spot | |
7 | Version: 0.8.2 | |
8 | Release: 7 | |
9 | License: GPL | |
10 | Group: X11/Applications/Graphics | |
11 | Source0: http://ftp.gnome.org/Public/GNOME/sources/f-spot/0.8/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: 3f2286835c9cdf44e50bc564d8e6b892 | |
13 | Patch0: %{name}-build.patch | |
14 | Patch1: %{name}-PixbufLoader.patch | |
15 | URL: http://www.gnome.org/projects/f-spot/ | |
16 | BuildRequires: GConf2-devel >= 2.14.0 | |
17 | BuildRequires: autoconf | |
18 | BuildRequires: automake | |
19 | BuildRequires: dotnet-flickrnet | |
20 | BuildRequires: dotnet-gnome-keyring-sharp-devel | |
21 | BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0 | |
22 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.12.1 | |
23 | BuildRequires: dotnet-ndesk-dbus-glib-sharp-devel | |
24 | BuildRequires: gettext-tools | |
25 | BuildRequires: gnome-doc-utils | |
26 | BuildRequires: gnome-icon-theme | |
27 | BuildRequires: intltool >= 0.40.0 | |
28 | BuildRequires: lcms-devel >= 1.12 | |
29 | BuildRequires: libgnome-keyring-devel | |
30 | BuildRequires: libgnomeui-devel >= 2.16.0 | |
31 | BuildRequires: libtool | |
32 | BuildRequires: libunique-devel | |
33 | BuildRequires: mono-addins-devel | |
34 | BuildRequires: mono-csharp >= 1.1.17 | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
37 | BuildRequires: rpmbuild(macros) >= 1.311 | |
38 | BuildRequires: sqlite3-devel | |
39 | Requires(post,postun): desktop-file-utils | |
40 | Requires(post,postun): gtk-update-icon-cache | |
41 | Requires(post,postun): hicolor-icon-theme | |
42 | Requires(post,postun): scrollkeeper | |
43 | Requires: mono-addins | |
44 | Suggests: dcraw | |
45 | Suggests: udev-libgphoto2 | |
46 | Suggests: dbus-x11 | |
47 | # sr@Latn vs. sr@latin | |
48 | Conflicts: glibc-misc < 6:2.7 | |
49 | ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 | |
50 | ExcludeArch: i386 | |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
52 | ||
53 | %define _noautoreq mono(Mono.*) mono(FlickrNet) mono(gnome-keyring-sharp) | |
54 | ||
55 | %description | |
56 | F-Spot is an application designed to provide personal photo management | |
57 | to the GNOME desktop. | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | F-Spot jest prywatnym menedżerem galerii fotograficznych dla | |
61 | środowiska GNOME. | |
62 | ||
63 | %package screensaver | |
64 | Summary: Module for gnome-screensaver | |
65 | Summary(pl.UTF-8): Moduł dla gnome-screensavera | |
66 | Group: X11/Applications | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | Requires: gnome-screensaver | |
69 | ||
70 | %description screensaver | |
71 | F-Spot module for gnome-screensaver. | |
72 | ||
73 | %description screensaver -l pl.UTF-8 | |
74 | Moduł F-Spot dla gnome-screensavera. | |
75 | ||
76 | %prep | |
77 | %setup -q | |
78 | %patch0 -p1 | |
79 | %patch1 -p1 | |
80 | ||
81 | %build | |
82 | %{__intltoolize} | |
83 | %{__libtoolize} | |
84 | %{__aclocal} -I build/m4/f-spot -I build/m4/shamrock -I build/m4/shave | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | CFLAGS="-pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14" | |
89 | %configure \ | |
90 | --disable-static \ | |
91 | --disable-scrollkeeper \ | |
92 | --with-gnome-screensaver=%{_prefix} | |
93 | ||
94 | %{__make} -j1 \ | |
95 | saverdir=%{_libdir}/gnome-screensaver \ | |
96 | themesdir=%{_desktopdir}/screensavers | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT \ | |
103 | saverdir=%{_libdir}/gnome-screensaver \ | |
104 | themesdir=%{_desktopdir}/screensavers | |
105 | ||
106 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la | |
107 | ||
108 | %find_lang %{name} --with-gnome --with-omf | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post | |
114 | %scrollkeeper_update_post | |
115 | %update_desktop_database_post | |
116 | %update_icon_cache hicolor | |
117 | %gconf_schema_install: | |
118 | ||
119 | %postun | |
120 | %scrollkeeper_update_postun | |
121 | %update_desktop_database_postun | |
122 | %update_icon_cache hicolor | |
123 | %gconf_schema_uninstall | |
124 | ||
125 | %files -f %{name}.lang | |
126 | %defattr(644,root,root,755) | |
127 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README TODO | |
128 | %attr(755,root,root) %{_bindir}/* | |
129 | %{_datadir}/%{name} | |
130 | %{_iconsdir}/hicolor/*/*/*.* | |
131 | %dir %{_libdir}/%{name} | |
132 | %attr(755,root,root) %{_libdir}/%{name}/*.exe | |
133 | %{_libdir}/%{name}/*.addins | |
134 | %dir %{_libdir}/%{name}/Extensions | |
135 | %{_libdir}/%{name}/Extensions/* | |
136 | %attr(755,root,root) %{_libdir}/%{name}/lib*.so* | |
137 | %{_libdir}/%{name}/*.dll | |
138 | %{_libdir}/%{name}/*.mdb | |
139 | %{_libdir}/%{name}/*.dll.config | |
140 | %{_libdir}/%{name}/*.exe.config | |
141 | %{_desktopdir}/*.desktop | |
142 | %{_pkgconfigdir}/f-spot.pc | |
143 | %{_sysconfdir}/gconf/schemas/f-spot.schemas | |
144 | ||
145 | %if %{with gnome2} | |
146 | %files screensaver | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_libdir}/gnome-screensaver/f-spot-screensaver | |
149 | %{_desktopdir}/screensavers/f-spot-screensaver.desktop | |
150 | %endif |