2 # - create subpackage -lua (?)
5 %bcond_without dbus # without DBUS support
6 %bcond_without gtkhtml # without GtkHTML
7 %bcond_without xulrunner # without XULRunner backend
8 %bcond_without lua # without LUA scripting support
9 %bcond_with nm # with NetworkManager support
10 %bcond_without webkit # without WebKit backend
13 %undefine with_gtkhtml # GtkHTML backend disabled on x86_64
15 Summary: A RSS feed reader
16 Summary(pl.UTF-8): Program do pobierania informacji w formacie RSS
21 Group: X11/Applications/Networking
22 Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
23 # Source0-md5: 7772f04bd3ed995b7ce36e52d26ec088
24 Patch0: %{name}-desktop.patch
25 Patch1: %{name}-xulrunner.patch
26 Patch2: %{name}-lua51.patch
27 Patch3: %{name}-ac.patch
28 URL: http://liferea.sourceforge.net/
29 BuildRequires: GConf2-devel >= 2.10.0
30 %{?with_nm:BuildRequires: NetworkManager-devel}
31 BuildRequires: autoconf >= 2.59
32 BuildRequires: automake
33 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33}
34 BuildRequires: gettext-devel
35 BuildRequires: gnutls-devel
36 BuildRequires: gtk+2-devel >= 2:2.8.0
37 %{?with_webkit:BuildRequires: gtk-webkit-devel}
38 BuildRequires: intltool >= 0.35.5
39 BuildRequires: libglade2-devel >= 2.0.0
40 %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
41 BuildRequires: libnotify-devel >= 0.3.2
42 BuildRequires: libstdc++-devel
43 BuildRequires: libtool
44 BuildRequires: libxml2-devel >= 1:2.6.27
45 BuildRequires: libxslt-devel >= 1.1.19
46 %{?with_lua:BuildRequires: lua51-devel}
47 BuildRequires: pkgconfig
48 BuildRequires: rpmbuild(macros) >= 1.311
49 BuildRequires: sed >= 4.0
50 BuildRequires: sqlite3-devel
51 %{?with_xulrunner:BuildRequires: xulrunner-devel >= 1.9-5}
52 Requires(post,postun): gtk+2
53 Requires(post,postun): hicolor-icon-theme
54 Requires(post,preun): GConf2
55 Requires: %{name}-backend = %{version}-%{release}
57 Obsoletes: liferea-gtkhtml
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
62 # we have strict deps for it
63 %define _noautoreq libxpcom.so
66 Liferea is a GTK+ clone of FeedReader.
68 %description -l pl.UTF-8
69 Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu
73 Summary: GtkHTML module for Liferea
74 Summary(pl.UTF-8): Moduł GtkHTML dla Liferea
75 Group: X11/Applications/Networking
76 Requires: %{name} = %{version}-%{release}
77 Provides: %{name}-backend = %{version}-%{release}
80 GtkHTML module for Liferea.
82 %description gtkhtml -l pl.UTF-8
83 Moduł GtkHTML dla Liferea.
86 Summary: Mozilla HTML browser module for Liferea
87 Summary(pl.UTF-8): Moduł przeglądarki HTML dla Liferea oparty na Mozilli
88 Group: X11/Applications/Networking
89 Requires: %{name} = %{version}-%{release}
90 %requires_eq_to xulrunner xulrunner-devel
91 Provides: %{name}-backend = %{version}-%{release}
94 Mozilla HTML browser module for Liferea.
96 %description mozilla -l pl.UTF-8
97 Moduł przeglądarki HTML dla Liferea oparty na Mozilli.
100 Summary: WebKit module for Liferea
101 Summary(pl.UTF-8): Moduł WebKit dla Liferea
102 Group: X11/Applications/Networking
103 Requires: %{name} = %{version}-%{release}
104 Provides: %{name}-backend = %{version}-%{release}
107 WebKit module for Liferea.
109 %description webkit -l pl.UTF-8
110 Moduł WebKit dla Liferea.
128 --disable-schemas-install \
129 %{!?with_dbus: --disable-dbus} \
130 %{!?with_gtkhtml: --disable-gtkhtml2} \
131 %{!?with_lua: --disable-lua} \
132 %{!?with_nm: --disable-nm} \
133 %{!?with_xulrunner: --disable-gecko} \
134 %{!?with_webkit: --disable-webkit}
138 rm -rf $RPM_BUILD_ROOT
141 DESTDIR=$RPM_BUILD_ROOT \
142 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
144 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
149 %gconf_schema_install liferea.schemas
150 %update_icon_cache hicolor
153 %gconf_schema_uninstall liferea.schemas
156 %update_icon_cache hicolor
159 rm -rf $RPM_BUILD_ROOT
161 %files -f %{name}.lang
162 %defattr(644,root,root,755)
163 %doc AUTHORS ChangeLog NEWS README
164 %attr(755,root,root) %{_bindir}/liferea
165 %attr(755,root,root) %{_bindir}/liferea-add-feed
166 %attr(755,root,root) %{_bindir}/liferea-bin
167 %dir %{_libdir}/%{name}
168 %attr(755,root,root) %{_libdir}/%{name}/liblinotiflibnotify.so
169 %{_iconsdir}/hicolor/48x48/apps/liferea.png
170 %{_sysconfdir}/gconf/schemas/liferea.schemas
172 %{_desktopdir}/*.desktop
173 %{_mandir}/man1/liferea.1*
174 %{_mandir}/pl/man1/liferea.1*
176 %attr(755,root,root) %{_libdir}/%{name}/libliscrlua.so
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so
185 %if %{with xulrunner}
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlx.so
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlw.so