]> git.pld-linux.org Git - packages/liferea.git/blame - liferea.spec
- converted to UTF-8
[packages/liferea.git] / liferea.spec
CommitLineData
93a9f7c2 1#
ce065e76 2# Conditional build:
c6d083e2 3%bcond_without dbus # without DBUS support
4%bcond_without mozilla # without mozilla
cfb7ca5b 5%bcond_without gtkhtml # without GtkHTML
daf50ea3 6%bcond_without mozilla_firefox # build with mozilla-firefox-devel
f6d80c17 7#
c3a7ac07 8Summary: A RSS feed reader
abc7ef2a 9Summary(pl.UTF-8): Program do pobierania informacji w formacie RSS
7d878c33 10Name: liferea
a7124b62 11Version: 1.2.4
41512f88 12Release: 1
d61c977e 13License: GPL v2
057d358d 14Group: X11/Applications/Networking
41512f88 15Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
a7124b62 16# Source0-md5: 2bed06c06e7b90281cf51fa3e83ee023
923f28f9 17Patch0: %{name}-desktop.patch
7d878c33 18URL: http://liferea.sourceforge.net/
f6d80c17 19BuildRequires: GConf2-devel >= 2.10.0
c678d658 20BuildRequires: autoconf
21BuildRequires: automake
7500482a 22%{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33}
8c6ef9d1 23BuildRequires: gtk+2-devel >= 2:2.8.0
cfb7ca5b 24%{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3}
8c6ef9d1 25BuildRequires: libnotify-devel >= 0.3.2
d87234a1 26BuildRequires: libstdc++-devel
c678d658 27BuildRequires: libtool
50453512 28BuildRequires: libxml2-devel >= 1:2.6.19
9e6b3c85 29BuildRequires: libxslt-devel
ed3f6a4d 30%if %{with mozilla}
31%if %{with mozilla_firefox}
32BuildRequires: mozilla-firefox-devel
33%else
34BuildRequires: mozilla-devel
35%endif
36%endif
21efbadf 37BuildRequires: pkgconfig
a7124b62 38BuildRequires: rpmbuild(macros) >= 1.311
8c6ef9d1
MB
39Requires(post,postun): gtk+2
40Requires(post,postun): hicolor-icon-theme
a7124b62 41Requires(post,preun): GConf2
f7f46e7a 42Requires: %{name}-backend = %{version}-%{release}
7d878c33 43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
d87234a1
JB
45%define _noautoreqdep libgtkembedmoz.so libxpcom.so
46
7d878c33 47%description
c3a7ac07 48Liferea is a GTK+ clone of FeedReader.
e3a76882 49
abc7ef2a
JR
50%description -l pl.UTF-8
51Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu
c3a7ac07 52FeedReader.
7d878c33 53
f7f46e7a 54%package gtkhtml
55Summary: GtkHTML module for Liferea
abc7ef2a 56Summary(pl.UTF-8): Moduł GtkHTML dla Liferea
f7f46e7a 57Group: X11/Applications/Networking
58Requires: %{name} = %{version}-%{release}
59Provides: %{name}-backend = %{version}-%{release}
60
61%description gtkhtml
62GtkHTML module for Liferea.
63
abc7ef2a
JR
64%description gtkhtml -l pl.UTF-8
65Moduł GtkHTML dla Liferea.
f7f46e7a 66
d87234a1
JB
67%package mozilla
68Summary: Mozilla HTML browser module for Liferea
abc7ef2a 69Summary(pl.UTF-8): Moduł przeglądarki HTML dla Liferea oparty na Mozilli
d87234a1
JB
70Group: X11/Applications/Networking
71Requires: %{name} = %{version}-%{release}
a6c45687 72%if %{with mozilla_firefox}
8cffa41a 73%requires_eq mozilla-firefox-libs
a6c45687 74%else
75Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
76%endif
f7f46e7a 77Provides: %{name}-backend = %{version}-%{release}
d87234a1
JB
78
79%description mozilla
80Mozilla HTML browser module for Liferea.
81
abc7ef2a
JR
82%description mozilla -l pl.UTF-8
83Moduł przeglądarki HTML dla Liferea oparty na Mozilli.
d87234a1 84
7d878c33 85%prep
5721b80b 86%setup -q
923f28f9 87%patch0 -p1
7d878c33 88
89%build
dca7406c 90#%{__glib_gettextize}
07652b7c 91%{__aclocal}
92%{__libtoolize}
93%{__autoheader}
94%{__automake}
95%{__autoconf}
4575ec8b 96%configure \
ce065e76 97 --disable-schemas-install \
cfb7ca5b 98 %{!?with_dbus: --disable-dbus} \
99 %{!?with_gtkhtml: --disable-gtkhtml2} \
100 %{!?with_mozilla: --disable-gecko}
7d878c33 101%{__make}
102
103%install
104rm -rf $RPM_BUILD_ROOT
105
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT \
87a534e2 108 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
7d878c33 109
d87234a1
JB
110rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
111
deb1b71a 112%find_lang %{name}
113
4575ec8b 114%post
e9666971 115%gconf_schema_install liferea.schemas
dca7406c 116%update_icon_cache hicolor
f6d80c17 117
118%preun
e9666971 119%gconf_schema_uninstall liferea.schemas
4575ec8b 120
dca7406c 121%postun
122%update_icon_cache hicolor
123
7d878c33 124%clean
125rm -rf $RPM_BUILD_ROOT
126
deb1b71a 127%files -f %{name}.lang
7d878c33 128%defattr(644,root,root,755)
14552208 129%doc AUTHORS ChangeLog NEWS README
7d878c33 130%attr(755,root,root) %{_bindir}/*
d87234a1 131%dir %{_libdir}/%{name}
dca7406c 132%attr(755,root,root) %{_libdir}/%{name}/*.so.*.*.*
133%{_iconsdir}/hicolor/48x48/apps/liferea.png
134%{_mandir}/pl/man1/liferea.1*
c5da666b 135%{_sysconfdir}/gconf/schemas/*.schemas
7d878c33 136%{_datadir}/%{name}
8e447246 137%{_desktopdir}/*.desktop
b0c9bbae 138%{_mandir}/man1/liferea.1*
d87234a1 139
cfb7ca5b 140%if %{with gtkhtml}
f7f46e7a 141%files gtkhtml
142%defattr(644,root,root,755)
143%attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
cfb7ca5b 144%endif
f7f46e7a 145
ce065e76 146%if %{with mozilla}
d87234a1
JB
147%files mozilla
148%defattr(644,root,root,755)
149%attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*
ce065e76 150%endif
This page took 0.103056 seconds and 4 git commands to generate.