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: 28d6ec815209dbcab3dfd656205f9f5e
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.8.0
24 %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
25 BuildRequires: libnotify-devel >= 0.3.2
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtool
28 BuildRequires: libxml2-devel >= 1:2.6.19
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(post,postun): gtk+2
40 Requires(post,postun): hicolor-icon-theme
41 Requires: %{name}-backend = %{version}-%{release}
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
47 Liferea is a GTK+ clone of FeedReader.
50 Liferea jest klonem, napisanym za pomoc± biblioteki GTK+, programu
54 Summary: GtkHTML module for Liferea
55 Summary(pl): Modu³ GtkHTML dla Liferea
56 Group: X11/Applications/Networking
57 Requires: %{name} = %{version}-%{release}
58 Provides: %{name}-backend = %{version}-%{release}
61 GtkHTML module for Liferea.
63 %description gtkhtml -l pl
64 Modu³ GtkHTML dla Liferea.
67 Summary: Mozilla HTML browser module for Liferea
68 Summary(pl): Modu³ przegl±darki HTML dla Liferea oparty na Mozilli
69 Group: X11/Applications/Networking
70 Requires: %{name} = %{version}-%{release}
71 %if %{with mozilla_firefox}
72 %requires_eq mozilla-firefox-libs
74 Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
76 Provides: %{name}-backend = %{version}-%{release}
79 Mozilla HTML browser module for Liferea.
81 %description mozilla -l pl
82 Modu³ przegl±darki HTML dla Liferea oparty na Mozilli.
96 --disable-schemas-install \
97 %{!?with_dbus: --disable-dbus} \
98 %{!?with_gtkhtml: --disable-gtkhtml2} \
99 %{!?with_mozilla: --disable-gecko}
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT \
107 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
109 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
114 %gconf_schema_install liferea.schemas
115 %update_icon_cache hicolor
118 %gconf_schema_uninstall liferea.schemas
121 %update_icon_cache hicolor
124 rm -rf $RPM_BUILD_ROOT
126 %files -f %{name}.lang
127 %defattr(644,root,root,755)
128 %doc AUTHORS ChangeLog NEWS README
129 %attr(755,root,root) %{_bindir}/*
130 %dir %{_libdir}/%{name}
131 %attr(755,root,root) %{_libdir}/%{name}/*.so.*.*.*
132 %{_iconsdir}/hicolor/48x48/apps/liferea.png
133 %{_mandir}/pl/man1/liferea.1*
134 %{_sysconfdir}/gconf/schemas/*.schemas
136 %{_desktopdir}/*.desktop
137 %{_mandir}/man1/liferea.1*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*