3 %bcond_without dbus # without DBUS support
4 %bcond_without mozilla # without mozilla
5 %bcond_without gtkhtml # without GtkHTML
6 %bcond_without mozilla_firefox # build with mozilla-firefox-devel
8 Summary: A RSS feed reader
9 Summary(pl): Program do pobierania informacji w formacie RSS
14 Group: X11/Applications/Networking
15 Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
16 # Source0-md5: ca51d163b2ec831e91567b5a2c52effe
17 Patch0: %{name}-desktop.patch
18 Patch1: %{name}-mozilla.patch
19 URL: http://liferea.sourceforge.net/
20 BuildRequires: GConf2-devel >= 2.10.0
21 BuildRequires: autoconf
22 BuildRequires: automake
23 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33}
24 BuildRequires: gtk+2-devel >= 2:2.6.4
25 BuildRequires: libxml2-devel >= 1:2.6.19
26 %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtool
30 %if %{with mozilla_firefox}
31 BuildRequires: mozilla-firefox-devel
33 BuildRequires: mozilla-devel
36 BuildRequires: pkgconfig
37 BuildRequires: rpmbuild(macros) >= 1.197
38 Requires(post,preun): GConf2
39 Requires: %{name}-backend = %{version}-%{release}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
45 Liferea is a GTK+ clone of FeedReader.
48 Liferea jest klonem, napisanym za pomoc± biblioteki GTK+, programu
52 Summary: GtkHTML module for Liferea
53 Summary(pl): Modu³ GtkHTML dla Liferea
54 Group: X11/Applications/Networking
55 Requires: %{name} = %{version}-%{release}
56 Provides: %{name}-backend = %{version}-%{release}
59 GtkHTML module for Liferea.
61 %description gtkhtml -l pl
62 Modu³ GtkHTML dla Liferea.
65 Summary: Mozilla HTML browser module for Liferea
66 Summary(pl): Modu³ przegl±darki HTML dla Liferea oparty na Mozilli
67 Group: X11/Applications/Networking
68 Requires: %{name} = %{version}-%{release}
69 %if %{with mozilla_firefox}
70 %requires_eq mozilla-firefox
72 Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
74 Provides: %{name}-backend = %{version}-%{release}
77 Mozilla HTML browser module for Liferea.
79 %description mozilla -l pl
80 Modu³ przegl±darki HTML dla Liferea oparty na Mozilli.
95 --disable-schemas-install \
96 %{!?with_dbus: --disable-dbus} \
97 %{!?with_gtkhtml: --disable-gtkhtml2} \
98 %{!?with_mozilla: --disable-gecko}
102 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT \
106 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
108 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
113 %gconf_schema_install liferea.schemas
116 %gconf_schema_uninstall liferea.schemas
119 rm -rf $RPM_BUILD_ROOT
121 %files -f %{name}.lang
122 %defattr(644,root,root,755)
123 %doc AUTHORS ChangeLog NEWS README
124 %attr(755,root,root) %{_bindir}/*
125 %dir %{_libdir}/%{name}
126 %{_sysconfdir}/gconf/schemas/*.schemas
130 %{_mandir}/man1/liferea.1*
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*