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.UTF-8): 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: 57d6dccc89d2a05af027b9c06dd145c4
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
29 BuildRequires: libxslt-devel >= 1.1.19
31 %if %{with mozilla_firefox}
32 BuildRequires: mozilla-firefox-devel
34 BuildRequires: mozilla-devel
37 BuildRequires: pkgconfig
38 BuildRequires: rpmbuild(macros) >= 1.311
39 Requires(post,postun): gtk+2
40 Requires(post,postun): hicolor-icon-theme
41 Requires(post,preun): GConf2
42 Requires: %{name}-backend = %{version}-%{release}
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 %if %{with mozilla_firefox}
73 %requires_eq mozilla-firefox-libs
75 Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
77 Provides: %{name}-backend = %{version}-%{release}
80 Mozilla HTML browser module for Liferea.
82 %description mozilla -l pl.UTF-8
83 Moduł przeglądarki HTML dla Liferea oparty na Mozilli.
97 --disable-schemas-install \
98 %{!?with_dbus: --disable-dbus} \
99 %{!?with_gtkhtml: --disable-gtkhtml2} \
100 %{!?with_mozilla: --disable-gecko}
104 rm -rf $RPM_BUILD_ROOT
107 DESTDIR=$RPM_BUILD_ROOT \
108 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
110 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
115 %gconf_schema_install liferea.schemas
116 %update_icon_cache hicolor
119 %gconf_schema_uninstall liferea.schemas
122 %update_icon_cache hicolor
125 rm -rf $RPM_BUILD_ROOT
127 %files -f %{name}.lang
128 %defattr(644,root,root,755)
129 %doc AUTHORS ChangeLog NEWS README
130 %attr(755,root,root) %{_bindir}/*
131 %dir %{_libdir}/%{name}
132 %attr(755,root,root) %{_libdir}/%{name}/*.so.*.*.*
133 %{_iconsdir}/hicolor/48x48/apps/liferea.png
134 %{_mandir}/pl/man1/liferea.1*
135 %{_sysconfdir}/gconf/schemas/*.schemas
137 %{_desktopdir}/*.desktop
138 %{_mandir}/man1/liferea.1*
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*