]> git.pld-linux.org Git - packages/liferea.git/blame - liferea.spec
- fix *** glibc detected *** /usr/bin/liferea-bin: free(): invalid pointer: 0x0841189...
[packages/liferea.git] / liferea.spec
CommitLineData
e4cbd3d9 1# TODO: create subpackage -lua (?)
93a9f7c2 2#
ce065e76 3# Conditional build:
c6d083e2 4%bcond_without dbus # without DBUS support
cfb7ca5b 5%bcond_without gtkhtml # without GtkHTML
5d157e09 6%bcond_without xulrunner # without XULRunner backend
beed1c1e 7%bcond_without lua # without LUA scripting support
a0630dd8 8%bcond_with nm # with NetworkManager support
f6d80c17 9#
5d157e09
MB
10%ifarch %{x8664}
11%undefine with_gtkhtml # GtkHTML backend disabled on x86_64
12%endif
c3a7ac07 13Summary: A RSS feed reader
94e05515 14Summary(pl.UTF-8): Program do pobierania informacji w formacie RSS
7d878c33 15Name: liferea
0923b722 16Version: 1.4.1
535dbd84 17Release: 2
d61c977e 18License: GPL v2
057d358d 19Group: X11/Applications/Networking
41512f88 20Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
0923b722 21# Source0-md5: af2187305ad18704415ec70f7994e7d7
923f28f9 22Patch0: %{name}-desktop.patch
5d157e09 23Patch1: %{name}-xulrunner.patch
beed1c1e 24Patch2: %{name}-lua51.patch
7d878c33 25URL: http://liferea.sourceforge.net/
f6d80c17 26BuildRequires: GConf2-devel >= 2.10.0
c53f3073 27BuildRequires: autoconf >= 2.59
c678d658 28BuildRequires: automake
7500482a 29%{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33}
8c6ef9d1 30BuildRequires: gtk+2-devel >= 2:2.8.0
cfb7ca5b 31%{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
8c6ef9d1 32BuildRequires: libnotify-devel >= 0.3.2
d87234a1 33BuildRequires: libstdc++-devel
c678d658 34BuildRequires: libtool
50453512 35BuildRequires: libxml2-devel >= 1:2.6.19
33391785 36BuildRequires: libxslt-devel >= 1.1.19
beed1c1e 37%{?with_lua:BuildRequires: lua51-devel}
a0630dd8 38%{?with_nm:BuildRequires: NetworkManager-devel}
21efbadf 39BuildRequires: pkgconfig
a7124b62 40BuildRequires: rpmbuild(macros) >= 1.311
1c3e70a7 41%{?with_xulrunner:BuildRequires: xulrunner-devel}
8c6ef9d1
MB
42Requires(post,postun): gtk+2
43Requires(post,postun): hicolor-icon-theme
a7124b62 44Requires(post,preun): GConf2
f7f46e7a 45Requires: %{name}-backend = %{version}-%{release}
5d157e09
MB
46%ifarch %{x8664}
47Obsoletes: liferea-gtkhtml
48%endif
7d878c33 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
d87234a1 51%define _noautoreqdep libgtkembedmoz.so libxpcom.so
60b02ea2
MB
52# we have strict deps for it
53%define _noautoreq libxpcom.so
d87234a1 54
7d878c33 55%description
c3a7ac07 56Liferea is a GTK+ clone of FeedReader.
e3a76882 57
abc7ef2a
JR
58%description -l pl.UTF-8
59Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu
c3a7ac07 60FeedReader.
7d878c33 61
f7f46e7a 62%package gtkhtml
63Summary: GtkHTML module for Liferea
94e05515 64Summary(pl.UTF-8): Moduł GtkHTML dla Liferea
f7f46e7a 65Group: X11/Applications/Networking
66Requires: %{name} = %{version}-%{release}
67Provides: %{name}-backend = %{version}-%{release}
68
69%description gtkhtml
70GtkHTML module for Liferea.
71
abc7ef2a
JR
72%description gtkhtml -l pl.UTF-8
73Moduł GtkHTML dla Liferea.
f7f46e7a 74
d87234a1
JB
75%package mozilla
76Summary: Mozilla HTML browser module for Liferea
94e05515 77Summary(pl.UTF-8): Moduł przeglądarki HTML dla Liferea oparty na Mozilli
d87234a1
JB
78Group: X11/Applications/Networking
79Requires: %{name} = %{version}-%{release}
5d157e09 80%requires_eq_to xulrunner xulrunner-devel
f7f46e7a 81Provides: %{name}-backend = %{version}-%{release}
d87234a1
JB
82
83%description mozilla
84Mozilla HTML browser module for Liferea.
85
abc7ef2a
JR
86%description mozilla -l pl.UTF-8
87Moduł przeglądarki HTML dla Liferea oparty na Mozilli.
d87234a1 88
7d878c33 89%prep
84e0b8d3 90%setup -q
923f28f9 91%patch0 -p1
5d157e09 92%patch1 -p1
beed1c1e 93%patch2 -p1
7d878c33 94
95%build
dca7406c 96#%{__glib_gettextize}
07652b7c 97%{__aclocal}
98%{__libtoolize}
99%{__autoheader}
100%{__automake}
101%{__autoconf}
4575ec8b 102%configure \
ce065e76 103 --disable-schemas-install \
cfb7ca5b 104 %{!?with_dbus: --disable-dbus} \
105 %{!?with_gtkhtml: --disable-gtkhtml2} \
beed1c1e 106 %{!?with_lua: --disable-lua} \
a0630dd8 107 %{!?with_nm: --disable-nm} \
5d157e09 108 %{!?with_xulrunner: --disable-xulrunner}
7d878c33 109%{__make}
110
111%install
112rm -rf $RPM_BUILD_ROOT
113
114%{__make} install \
115 DESTDIR=$RPM_BUILD_ROOT \
87a534e2 116 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
7d878c33 117
d87234a1
JB
118rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
119
deb1b71a 120%find_lang %{name}
121
4575ec8b 122%post
e9666971 123%gconf_schema_install liferea.schemas
dca7406c 124%update_icon_cache hicolor
f6d80c17 125
126%preun
e9666971 127%gconf_schema_uninstall liferea.schemas
4575ec8b 128
dca7406c 129%postun
130%update_icon_cache hicolor
131
7d878c33 132%clean
133rm -rf $RPM_BUILD_ROOT
134
deb1b71a 135%files -f %{name}.lang
7d878c33 136%defattr(644,root,root,755)
14552208 137%doc AUTHORS ChangeLog NEWS README
7d878c33 138%attr(755,root,root) %{_bindir}/*
d87234a1 139%dir %{_libdir}/%{name}
dca7406c 140%attr(755,root,root) %{_libdir}/%{name}/*.so.*.*.*
141%{_iconsdir}/hicolor/48x48/apps/liferea.png
142%{_mandir}/pl/man1/liferea.1*
d8954fa2 143%{_sysconfdir}/gconf/schemas/liferea.schemas
7d878c33 144%{_datadir}/%{name}
8e447246 145%{_desktopdir}/*.desktop
b0c9bbae 146%{_mandir}/man1/liferea.1*
31d6b4ba 147%if %{with lua}
a7307aee 148%attr(755,root,root) %{_libdir}/%{name}/libliscrlua.so
31d6b4ba 149%endif
d87234a1 150
cfb7ca5b 151%if %{with gtkhtml}
f7f46e7a 152%files gtkhtml
153%defattr(644,root,root,755)
154%attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
cfb7ca5b 155%endif
f7f46e7a 156
5d157e09 157%if %{with xulrunner}
d87234a1
JB
158%files mozilla
159%defattr(644,root,root,755)
5d157e09 160%attr(755,root,root) %{_libdir}/%{name}/liblihtmlx.so*
ce065e76 161%endif
This page took 2.245962 seconds and 4 git commands to generate.