]>
Commit | Line | Data |
---|---|---|
ff352935 | 1 | # |
989c7716 MB |
2 | # Conditional build: |
3 | %bcond_without xulrunner # without XULRunner render | |
4 | %bcond_without webkit # without WebKit render | |
ff352935 | 5 | # |
ca2b7594 MWP |
6 | Summary: RSS Reader for Evolution Mail |
7 | Summary(pl.UTF-8): Czytnik kanałów informacyjnych RSS dla Evolution | |
8 | Name: evolution-rss | |
989c7716 MB |
9 | Version: 0.1.0 |
10 | Release: 1 | |
ca2b7594 MWP |
11 | License: GPL v2 |
12 | Group: X11/Applications | |
fa0b24e1 | 13 | Source0: http://gnome.eu.org/%{name}-%{version}.tar.gz |
989c7716 | 14 | # Source0-md5: 63479fcf4c3af998ab2794e5a0f075f6 |
9189d495 | 15 | Patch0: %{name}-ac.patch |
989c7716 | 16 | Patch1: %{name}-libxul.patch |
fa0b24e1 MB |
17 | URL: http://gnome.eu.org/evo/index.php/Evolution_RSS_Reader_Plugin |
18 | BuildRequires: GConf2-devel >= 2.22.0 | |
9189d495 | 19 | BuildRequires: autoconf |
ff352935 | 20 | BuildRequires: automake |
fa0b24e1 MB |
21 | BuildRequires: dbus-glib-devel >= 0.74 |
22 | BuildRequires: evolution-devel >= 2.22.0 | |
23 | BuildRequires: gettext-devel | |
24 | BuildRequires: gtk+2-devel >= 2:2.12.8 | |
989c7716 | 25 | %{?with_webkit:BuildRequires: gtk-webkit-devel} |
ff352935 | 26 | BuildRequires: intltool >= 0.36.2 |
fa0b24e1 MB |
27 | BuildRequires: libglade2-devel >= 1:2.6.2 |
28 | BuildRequires: libgnomeui-devel >= 2.22.0 | |
29 | BuildRequires: libsoup-devel >= 2.4.0 | |
ff352935 | 30 | BuildRequires: libtool |
ca2b7594 MWP |
31 | BuildRequires: pkgconfig |
32 | BuildRequires: rpmbuild(macros) >= 1.197 | |
989c7716 | 33 | %{?with_xulrunner:BuildRequires: xulrunner-devel >= 1.9-5} |
fa0b24e1 MB |
34 | Requires(post,postun): GConf2 |
35 | Requires: evolution >= 2.22.0 | |
36 | Requires: gtk+2 >= 2:2.12.8 | |
989c7716 | 37 | %{?with_xulrunner:%requires_eq xulrunner-libs} |
ca2b7594 MWP |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
76100b89 | 40 | # we have strict deps for xulrunner-libs |
ff352935 MB |
41 | %define _noautoreq libxpcom.so |
42 | ||
ca2b7594 | 43 | %description |
aa93b2ba | 44 | RSS Reader for Evolution Mail. |
ca2b7594 MWP |
45 | |
46 | %description -l pl.UTF-8 | |
aa93b2ba | 47 | Czytnik kanałów informacyjnych RSS dla Evolution. |
ca2b7594 MWP |
48 | |
49 | %prep | |
50 | %setup -q | |
9189d495 | 51 | %patch0 -p1 |
989c7716 | 52 | %patch1 -p1 |
ca2b7594 MWP |
53 | |
54 | %build | |
ff352935 MB |
55 | %{__intltoolize} |
56 | %{__libtoolize} | |
57 | %{__aclocal} -I m4 | |
9189d495 | 58 | %{__autoconf} |
ff352935 MB |
59 | %{__autoheader} |
60 | %{__automake} | |
989c7716 MB |
61 | %configure \ |
62 | %{?!with_xulrunner:--disable-gecko} \ | |
63 | %{?!with_webkit:--disable-webkit} | |
ca2b7594 MWP |
64 | %{__make} |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
ff352935 | 70 | DESTDIR=$RPM_BUILD_ROOT |
ca2b7594 | 71 | |
fa0b24e1 MB |
72 | rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/*/plugins/liborg-gnome-evolution-rss.la |
73 | ||
ca2b7594 MWP |
74 | %find_lang %{name} |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
fa0b24e1 MB |
79 | %post |
80 | %gconf_schema_install evolution-rss.schemas | |
81 | ||
82 | %preun | |
83 | %gconf_schema_uninstall evolution-rss.schemas | |
ca2b7594 MWP |
84 | |
85 | %files -f %{name}.lang | |
86 | %defattr(644,root,root,755) | |
87 | %doc AUTHORS ChangeLog NEWS README TODO | |
fa0b24e1 MB |
88 | %attr(755,root,root) %{_bindir}/evolution-import-rss |
89 | %attr(755,root,root) %{_libdir}/evolution/*/plugins/liborg-gnome-evolution-rss.so | |
90 | %{_libdir}/bonobo/servers/GNOME_Evolution_RSS_2.22.server | |
91 | %{_libdir}/evolution/*/plugins/org-gnome-evolution-rss.eplug | |
92 | %{_libdir}/evolution/*/plugins/org-gnome-evolution-rss.xml | |
93 | %{_sysconfdir}/gconf/schemas/evolution-rss.schemas | |
94 | %{_datadir}/evolution/*/errors/org-gnome-evolution-rss.error | |
989c7716 MB |
95 | %{_datadir}/evolution/*/glade/*.glade |
96 | %{_datadir}/evolution/*/images/*.png |