]>
Commit | Line | Data |
---|---|---|
b0ffa6a4 MB |
1 | # TODO: |
2 | # - create subpackage -lua (?) | |
93a9f7c2 | 3 | # |
ce065e76 | 4 | # Conditional build: |
711a6809 | 5 | %bcond_without dbus # without D-Bus support |
beed1c1e | 6 | %bcond_without lua # without LUA scripting support |
711a6809 | 7 | %bcond_without nm # with NetworkManager support |
f6d80c17 | 8 | # |
c3a7ac07 | 9 | Summary: A RSS feed reader |
94e05515 | 10 | Summary(pl.UTF-8): Program do pobierania informacji w formacie RSS |
7d878c33 | 11 | Name: liferea |
cc6a3f40 | 12 | Version: 1.6.4 |
95af9119 | 13 | Release: 1 |
d61c977e | 14 | License: GPL v2 |
057d358d | 15 | Group: X11/Applications/Networking |
95af9119 | 16 | Source0: http://downloads.sourceforge.net/liferea/%{name}-%{version}.tar.gz |
cc6a3f40 | 17 | # Source0-md5: 921b5778f5cc67a60eec4669b6048844 |
923f28f9 | 18 | Patch0: %{name}-desktop.patch |
711a6809 | 19 | Patch1: %{name}-lua51.patch |
7d878c33 | 20 | URL: http://liferea.sourceforge.net/ |
f6d80c17 | 21 | BuildRequires: GConf2-devel >= 2.10.0 |
b0ffa6a4 | 22 | %{?with_nm:BuildRequires: NetworkManager-devel} |
c53f3073 | 23 | BuildRequires: autoconf >= 2.59 |
711a6809 | 24 | BuildRequires: automake >= 1:1.6 |
25 | BuildRequires: avahi-glib-devel >= 0.6.0 | |
7500482a | 26 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33} |
199241d0 | 27 | BuildRequires: gettext-devel |
711a6809 | 28 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
29 | BuildRequires: gtk-webkit-devel >= 1.1.7 | |
97d7d603 | 30 | BuildRequires: intltool >= 0.35.5 |
711a6809 | 31 | BuildRequires: libglade2-devel >= 1:2.0.0 |
8c6ef9d1 | 32 | BuildRequires: libnotify-devel >= 0.3.2 |
711a6809 | 33 | BuildRequires: libsoup-devel >= 2.26.1 |
c678d658 | 34 | BuildRequires: libtool |
b0ffa6a4 | 35 | BuildRequires: libxml2-devel >= 1:2.6.27 |
33391785 | 36 | BuildRequires: libxslt-devel >= 1.1.19 |
beed1c1e | 37 | %{?with_lua:BuildRequires: lua51-devel} |
21efbadf | 38 | BuildRequires: pkgconfig |
a7124b62 | 39 | BuildRequires: rpmbuild(macros) >= 1.311 |
711a6809 | 40 | BuildRequires: sqlite3-devel >= 3.6.10 |
41 | BuildRequires: xorg-lib-libSM-devel | |
8c6ef9d1 MB |
42 | Requires(post,postun): gtk+2 |
43 | Requires(post,postun): hicolor-icon-theme | |
a7124b62 | 44 | Requires(post,preun): GConf2 |
5d157e09 | 45 | Obsoletes: liferea-gtkhtml |
711a6809 | 46 | Obsoletes: liferea-mozilla |
47 | Obsoletes: liferea-webkit | |
7d878c33 | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
c3a7ac07 | 51 | Liferea is a GTK+ clone of FeedReader. |
e3a76882 | 52 | |
abc7ef2a JR |
53 | %description -l pl.UTF-8 |
54 | Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu | |
c3a7ac07 | 55 | FeedReader. |
7d878c33 | 56 | |
57 | %prep | |
84e0b8d3 | 58 | %setup -q |
923f28f9 | 59 | %patch0 -p1 |
5d157e09 | 60 | %patch1 -p1 |
4998f7bb | 61 | |
7d878c33 | 62 | %build |
97d7d603 MB |
63 | %{__glib_gettextize} |
64 | %{__intltoolize} | |
5d7b95f7 | 65 | %{__aclocal} |
07652b7c | 66 | %{__libtoolize} |
07652b7c | 67 | %{__automake} |
711a6809 | 68 | %{__autoheader} |
07652b7c | 69 | %{__autoconf} |
4575ec8b | 70 | %configure \ |
ce065e76 | 71 | --disable-schemas-install \ |
cfb7ca5b | 72 | %{!?with_dbus: --disable-dbus} \ |
beed1c1e | 73 | %{!?with_lua: --disable-lua} \ |
711a6809 | 74 | %{!?with_nm: --disable-nm} |
75 | ||
7d878c33 | 76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} install \ | |
711a6809 | 82 | DESTDIR=$RPM_BUILD_ROOT |
7d878c33 | 83 | |
d87234a1 JB |
84 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la |
85 | ||
deb1b71a | 86 | %find_lang %{name} |
87 | ||
4575ec8b | 88 | %post |
e9666971 | 89 | %gconf_schema_install liferea.schemas |
dca7406c | 90 | %update_icon_cache hicolor |
f6d80c17 | 91 | |
92 | %preun | |
e9666971 | 93 | %gconf_schema_uninstall liferea.schemas |
4575ec8b | 94 | |
dca7406c | 95 | %postun |
96 | %update_icon_cache hicolor | |
97 | ||
7d878c33 | 98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
deb1b71a | 101 | %files -f %{name}.lang |
7d878c33 | 102 | %defattr(644,root,root,755) |
14552208 | 103 | %doc AUTHORS ChangeLog NEWS README |
69d12f62 MB |
104 | %attr(755,root,root) %{_bindir}/liferea |
105 | %attr(755,root,root) %{_bindir}/liferea-add-feed | |
d87234a1 | 106 | %dir %{_libdir}/%{name} |
69d12f62 | 107 | %attr(755,root,root) %{_libdir}/%{name}/liblinotiflibnotify.so |
711a6809 | 108 | %if %{with lua} |
109 | %attr(755,root,root) %{_libdir}/%{name}/libliscrlua.so | |
110 | %endif | |
111 | %{_iconsdir}/hicolor/*/*/*.png | |
112 | %{_iconsdir}/hicolor/*/*/*.svg | |
d8954fa2 | 113 | %{_sysconfdir}/gconf/schemas/liferea.schemas |
7d878c33 | 114 | %{_datadir}/%{name} |
711a6809 | 115 | %{_desktopdir}/liferea.desktop |
b0c9bbae | 116 | %{_mandir}/man1/liferea.1* |
95af9119 | 117 | %lang(pl) %{_mandir}/pl/man1/liferea.1* |