]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: A RSS feed reader |
abc7ef2a | 9 | Summary(pl.UTF-8): Program do pobierania informacji w formacie RSS |
7d878c33 | 10 | Name: liferea |
a7124b62 | 11 | Version: 1.2.4 |
41512f88 | 12 | Release: 1 |
d61c977e | 13 | License: GPL v2 |
057d358d | 14 | Group: X11/Applications/Networking |
41512f88 | 15 | Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz |
a7124b62 | 16 | # Source0-md5: 2bed06c06e7b90281cf51fa3e83ee023 |
923f28f9 | 17 | Patch0: %{name}-desktop.patch |
7d878c33 | 18 | URL: http://liferea.sourceforge.net/ |
f6d80c17 | 19 | BuildRequires: GConf2-devel >= 2.10.0 |
c678d658 | 20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
7500482a | 22 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33} |
8c6ef9d1 | 23 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
cfb7ca5b | 24 | %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3} |
8c6ef9d1 | 25 | BuildRequires: libnotify-devel >= 0.3.2 |
d87234a1 | 26 | BuildRequires: libstdc++-devel |
c678d658 | 27 | BuildRequires: libtool |
50453512 | 28 | BuildRequires: libxml2-devel >= 1:2.6.19 |
9e6b3c85 | 29 | BuildRequires: libxslt-devel |
ed3f6a4d | 30 | %if %{with mozilla} |
31 | %if %{with mozilla_firefox} | |
32 | BuildRequires: mozilla-firefox-devel | |
33 | %else | |
34 | BuildRequires: mozilla-devel | |
35 | %endif | |
36 | %endif | |
21efbadf | 37 | BuildRequires: pkgconfig |
a7124b62 | 38 | BuildRequires: rpmbuild(macros) >= 1.311 |
8c6ef9d1 MB |
39 | Requires(post,postun): gtk+2 |
40 | Requires(post,postun): hicolor-icon-theme | |
a7124b62 | 41 | Requires(post,preun): GConf2 |
f7f46e7a | 42 | Requires: %{name}-backend = %{version}-%{release} |
7d878c33 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
d87234a1 JB |
45 | %define _noautoreqdep libgtkembedmoz.so libxpcom.so |
46 | ||
7d878c33 | 47 | %description |
c3a7ac07 | 48 | Liferea is a GTK+ clone of FeedReader. |
e3a76882 | 49 | |
abc7ef2a JR |
50 | %description -l pl.UTF-8 |
51 | Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu | |
c3a7ac07 | 52 | FeedReader. |
7d878c33 | 53 | |
f7f46e7a | 54 | %package gtkhtml |
55 | Summary: GtkHTML module for Liferea | |
abc7ef2a | 56 | Summary(pl.UTF-8): Moduł GtkHTML dla Liferea |
f7f46e7a | 57 | Group: X11/Applications/Networking |
58 | Requires: %{name} = %{version}-%{release} | |
59 | Provides: %{name}-backend = %{version}-%{release} | |
60 | ||
61 | %description gtkhtml | |
62 | GtkHTML module for Liferea. | |
63 | ||
abc7ef2a JR |
64 | %description gtkhtml -l pl.UTF-8 |
65 | Moduł GtkHTML dla Liferea. | |
f7f46e7a | 66 | |
d87234a1 JB |
67 | %package mozilla |
68 | Summary: Mozilla HTML browser module for Liferea | |
abc7ef2a | 69 | Summary(pl.UTF-8): Moduł przeglądarki HTML dla Liferea oparty na Mozilli |
d87234a1 JB |
70 | Group: X11/Applications/Networking |
71 | Requires: %{name} = %{version}-%{release} | |
a6c45687 | 72 | %if %{with mozilla_firefox} |
8cffa41a | 73 | %requires_eq mozilla-firefox-libs |
a6c45687 | 74 | %else |
75 | Requires: mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded) | |
76 | %endif | |
f7f46e7a | 77 | Provides: %{name}-backend = %{version}-%{release} |
d87234a1 JB |
78 | |
79 | %description mozilla | |
80 | Mozilla HTML browser module for Liferea. | |
81 | ||
abc7ef2a JR |
82 | %description mozilla -l pl.UTF-8 |
83 | Moduł 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 | |
104 | rm -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 |
110 | rm -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 |
125 | rm -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 |