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