2 %bcond_without dbus # without DBUS support
3 %bcond_without mozilla # without mozilla
4 %bcond_with mozilla_firefox # build with mozilla-firefox-devel
6 Summary: A RSS feed reader
7 Summary(pl): Program do pobierania informacji w formacie RSS
12 Group: X11/Applications/Networking
13 Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
14 # Source0-md5: 08a52274b4ef91f7ac9a01cc45fbad13
15 Patch0: %{name}-desktop.patch
16 URL: http://liferea.sourceforge.net/
17 BuildRequires: GConf2-devel >= 2.10.0
18 BuildRequires: autoconf
19 BuildRequires: automake
20 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.23}
21 BuildRequires: gtk+2-devel >= 2:2.6.4
22 BuildRequires: libxml2-devel >= 1:2.6.19
23 BuildRequires: libgtkhtml-devel >= 2.6.3
24 BuildRequires: libstdc++-devel
25 BuildRequires: libtool
27 %if %{with mozilla_firefox}
28 BuildRequires: mozilla-firefox-devel
30 BuildRequires: mozilla-devel
33 BuildRequires: pkgconfig
34 BuildRequires: rpmbuild(macros) >= 1.197
35 Requires(post,preun): GConf2
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
41 Liferea is a GTK+ clone of FeedReader.
44 Liferea jest klonem, napisanym za pomoc± biblioteki GTK+, programu
48 Summary: Mozilla HTML browser module for Liferea
49 Summary(pl): Modu³ przegl±darki HTML dla Liferea oparty na Mozilli
50 Group: X11/Applications/Networking
51 Requires: %{name} = %{version}-%{release}
52 %if %{with mozilla_firefox}
53 Requires: mozilla-firefox = %(rpm -q --qf '%{EPOCH}:%{VERSION}' mozilla-firefox)
55 Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
59 Mozilla HTML browser module for Liferea.
61 %description mozilla -l pl
62 Modu³ przegl±darki HTML dla Liferea oparty na Mozilli.
76 --disable-schemas-install \
77 %{!?with_mozilla: --without-mozilla} \
78 %{!?with_dbus: --disable-dbus}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT \
86 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
88 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
93 %gconf_schema_install liferea.schemas
96 %gconf_schema_uninstall liferea.schemas
99 rm -rf $RPM_BUILD_ROOT
101 %files -f %{name}.lang
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog NEWS README
104 %attr(755,root,root) %{_bindir}/*
105 %dir %{_libdir}/%{name}
106 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
107 %{_sysconfdir}/gconf/schemas/*.schemas
111 %{_mandir}/man1/liferea.1*
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*