3 %bcond_without dbus # without DBUS support
4 %bcond_without gtkhtml # without GtkHTML
5 %bcond_without xulrunner # without XULRunner backend
8 %undefine with_gtkhtml # GtkHTML backend disabled on x86_64
10 Summary: A RSS feed reader
11 Summary(pl.UTF-8): Program do pobierania informacji w formacie RSS
16 Group: X11/Applications/Networking
17 Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
18 # Source0-md5: 695e1c3bef330faa71a0d41706fbd104
19 Patch0: %{name}-desktop.patch
20 Patch1: %{name}-xulrunner.patch
21 URL: http://liferea.sourceforge.net/
22 BuildRequires: GConf2-devel >= 2.10.0
23 BuildRequires: autoconf >= 2.59
24 BuildRequires: automake
25 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33}
26 BuildRequires: gtk+2-devel >= 2:2.8.0
27 %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
28 BuildRequires: libnotify-devel >= 0.3.2
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtool
31 BuildRequires: libxml2-devel >= 1:2.6.19
32 BuildRequires: libxslt-devel >= 1.1.19
33 BuildRequires: pkgconfig
34 BuildRequires: rpmbuild(macros) >= 1.311
35 %{?with_xulrunner:BuildRequires: xulrunner-devel}
36 Requires(post,postun): gtk+2
37 Requires(post,postun): hicolor-icon-theme
38 Requires(post,preun): GConf2
39 Requires: %{name}-backend = %{version}-%{release}
41 Obsoletes: liferea-gtkhtml
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
48 Liferea is a GTK+ clone of FeedReader.
50 %description -l pl.UTF-8
51 Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu
55 Summary: GtkHTML module for Liferea
56 Summary(pl.UTF-8): Moduł GtkHTML dla Liferea
57 Group: X11/Applications/Networking
58 Requires: %{name} = %{version}-%{release}
59 Provides: %{name}-backend = %{version}-%{release}
62 GtkHTML module for Liferea.
64 %description gtkhtml -l pl.UTF-8
65 Moduł GtkHTML dla Liferea.
68 Summary: Mozilla HTML browser module for Liferea
69 Summary(pl.UTF-8): Moduł przeglądarki HTML dla Liferea oparty na Mozilli
70 Group: X11/Applications/Networking
71 Requires: %{name} = %{version}-%{release}
72 %requires_eq_to xulrunner xulrunner-devel
73 Provides: %{name}-backend = %{version}-%{release}
76 Mozilla HTML browser module for Liferea.
78 %description mozilla -l pl.UTF-8
79 Moduł przeglądarki HTML dla Liferea oparty na Mozilli.
94 --disable-schemas-install \
95 %{!?with_dbus: --disable-dbus} \
96 %{!?with_gtkhtml: --disable-gtkhtml2} \
97 %{!?with_xulrunner: --disable-xulrunner}
101 rm -rf $RPM_BUILD_ROOT
104 DESTDIR=$RPM_BUILD_ROOT \
105 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
107 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
112 %gconf_schema_install liferea.schemas
113 %update_icon_cache hicolor
116 %gconf_schema_uninstall liferea.schemas
119 %update_icon_cache hicolor
122 rm -rf $RPM_BUILD_ROOT
124 %files -f %{name}.lang
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog NEWS README
127 %attr(755,root,root) %{_bindir}/*
128 %dir %{_libdir}/%{name}
129 %attr(755,root,root) %{_libdir}/%{name}/*.so.*.*.*
130 %{_iconsdir}/hicolor/48x48/apps/liferea.png
131 %{_mandir}/pl/man1/liferea.1*
132 %{_sysconfdir}/gconf/schemas/*.schemas
134 %{_desktopdir}/*.desktop
135 %{_mandir}/man1/liferea.1*
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
143 %if %{with xulrunner}
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlx.so*