2 %bcond_without dbus # without DBUS support
3 %bcond_without mozilla # without mozilla
4 %bcond_without gtkhtml # without GtkHTML
5 %bcond_with mozilla_firefox # build with mozilla-firefox-devel
7 Summary: A RSS feed reader
8 Summary(pl): Program do pobierania informacji w formacie RSS
13 Group: X11/Applications/Networking
14 Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
15 # Source0-md5: aab3cd4bb2d09927dd59d11a9ff2274b
16 Patch0: %{name}-desktop.patch
17 URL: http://liferea.sourceforge.net/
18 BuildRequires: GConf2-devel >= 2.10.0
19 BuildRequires: autoconf
20 BuildRequires: automake
21 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.23}
22 BuildRequires: gtk+2-devel >= 2:2.6.4
23 BuildRequires: libxml2-devel >= 1:2.6.19
24 %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtool
28 %if %{with mozilla_firefox}
29 BuildRequires: mozilla-firefox-devel
31 BuildRequires: mozilla-devel
34 BuildRequires: pkgconfig
35 BuildRequires: rpmbuild(macros) >= 1.197
36 Requires(post,preun): GConf2
37 Requires: %{name}-backend = %{version}-%{release}
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
43 Liferea is a GTK+ clone of FeedReader.
46 Liferea jest klonem, napisanym za pomoc± biblioteki GTK+, programu
50 Summary: GtkHTML module for Liferea
51 Summary(pl): Modu³ GtkHTML dla Liferea
52 Group: X11/Applications/Networking
53 Requires: %{name} = %{version}-%{release}
54 Provides: %{name}-backend = %{version}-%{release}
57 GtkHTML module for Liferea.
59 %description gtkhtml -l pl
60 Modu³ GtkHTML dla Liferea.
63 Summary: Mozilla HTML browser module for Liferea
64 Summary(pl): Modu³ przegl±darki HTML dla Liferea oparty na Mozilli
65 Group: X11/Applications/Networking
66 Requires: %{name} = %{version}-%{release}
67 %if %{with mozilla_firefox}
68 %requires_eq mozilla-firefox
70 Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
72 Provides: %{name}-backend = %{version}-%{release}
75 Mozilla HTML browser module for Liferea.
77 %description mozilla -l pl
78 Modu³ przegl±darki HTML dla Liferea oparty na Mozilli.
92 --disable-schemas-install \
93 %{!?with_dbus: --disable-dbus} \
94 %{!?with_gtkhtml: --disable-gtkhtml2} \
95 %{!?with_mozilla: --disable-gecko}
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT \
103 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
105 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
110 %gconf_schema_install liferea.schemas
113 %gconf_schema_uninstall liferea.schemas
116 rm -rf $RPM_BUILD_ROOT
118 %files -f %{name}.lang
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog NEWS README
121 %attr(755,root,root) %{_bindir}/*
122 %dir %{_libdir}/%{name}
123 %{_sysconfdir}/gconf/schemas/*.schemas
127 %{_mandir}/man1/liferea.1*
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*