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: f3f5499e4b8a032cdb595eb47255829a
17 Patch0: %{name}-desktop.patch
18 URL: http://liferea.sourceforge.net/
19 BuildRequires: GConf2-devel >= 2.10.0
20 BuildRequires: autoconf
21 BuildRequires: automake
22 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33}
23 BuildRequires: gtk+2-devel >= 2:2.6.4
24 %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtool
27 BuildRequires: libxml2-devel >= 1:2.6.19
29 %if %{with mozilla_firefox}
30 BuildRequires: mozilla-firefox-devel
32 BuildRequires: mozilla-devel
35 BuildRequires: pkgconfig
36 BuildRequires: rpmbuild(macros) >= 1.197
37 Requires(post,preun): GConf2
38 Requires: %{name}-backend = %{version}-%{release}
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
44 Liferea is a GTK+ clone of FeedReader.
47 Liferea jest klonem, napisanym za pomoc± biblioteki GTK+, programu
51 Summary: GtkHTML module for Liferea
52 Summary(pl): Modu³ GtkHTML dla Liferea
53 Group: X11/Applications/Networking
54 Requires: %{name} = %{version}-%{release}
55 Provides: %{name}-backend = %{version}-%{release}
58 GtkHTML module for Liferea.
60 %description gtkhtml -l pl
61 Modu³ GtkHTML dla Liferea.
64 Summary: Mozilla HTML browser module for Liferea
65 Summary(pl): Modu³ przegl±darki HTML dla Liferea oparty na Mozilli
66 Group: X11/Applications/Networking
67 Requires: %{name} = %{version}-%{release}
68 %if %{with mozilla_firefox}
69 %requires_eq mozilla-firefox
71 Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
73 Provides: %{name}-backend = %{version}-%{release}
76 Mozilla HTML browser module for Liferea.
78 %description mozilla -l pl
79 Modu³ przegl±darki HTML dla Liferea oparty na Mozilli.
93 --disable-schemas-install \
94 %{!?with_dbus: --disable-dbus} \
95 %{!?with_gtkhtml: --disable-gtkhtml2} \
96 %{!?with_mozilla: --disable-gecko}
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT \
104 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
106 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
111 %gconf_schema_install liferea.schemas
114 %gconf_schema_uninstall liferea.schemas
117 rm -rf $RPM_BUILD_ROOT
119 %files -f %{name}.lang
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog NEWS README
122 %attr(755,root,root) %{_bindir}/*
123 %dir %{_libdir}/%{name}
124 %{_sysconfdir}/gconf/schemas/*.schemas
128 %{_mandir}/man1/liferea.1*
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*