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