]>
Commit | Line | Data |
---|---|---|
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 | 15 | Summary: A RSS feed reader |
94e05515 | 16 | Summary(pl.UTF-8): Program do pobierania informacji w formacie RSS |
7d878c33 | 17 | Name: liferea |
fcc871f4 MB |
18 | Version: 1.4.18 |
19 | Release: 1 | |
d61c977e | 20 | License: GPL v2 |
057d358d | 21 | Group: X11/Applications/Networking |
becf6e61 | 22 | Source0: http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz |
fcc871f4 | 23 | # Source0-md5: e9888a3f871dc0eee3599d061b20a457 |
923f28f9 | 24 | Patch0: %{name}-desktop.patch |
5d157e09 | 25 | Patch1: %{name}-xulrunner.patch |
beed1c1e | 26 | Patch2: %{name}-lua51.patch |
7d878c33 | 27 | URL: http://liferea.sourceforge.net/ |
f6d80c17 | 28 | BuildRequires: GConf2-devel >= 2.10.0 |
b0ffa6a4 | 29 | %{?with_nm:BuildRequires: NetworkManager-devel} |
c53f3073 | 30 | BuildRequires: autoconf >= 2.59 |
c678d658 | 31 | BuildRequires: automake |
7500482a | 32 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.33} |
199241d0 | 33 | BuildRequires: gettext-devel |
b0ffa6a4 | 34 | BuildRequires: gnutls-devel |
8c6ef9d1 | 35 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
a7180108 | 36 | %{?with_webkit:BuildRequires: gtk-webkit-devel} |
97d7d603 | 37 | BuildRequires: intltool >= 0.35.5 |
b0ffa6a4 | 38 | BuildRequires: libglade2-devel >= 2.0.0 |
cfb7ca5b | 39 | %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.6.3} |
8c6ef9d1 | 40 | BuildRequires: libnotify-devel >= 0.3.2 |
d87234a1 | 41 | BuildRequires: libstdc++-devel |
c678d658 | 42 | BuildRequires: libtool |
b0ffa6a4 | 43 | BuildRequires: libxml2-devel >= 1:2.6.27 |
33391785 | 44 | BuildRequires: libxslt-devel >= 1.1.19 |
beed1c1e | 45 | %{?with_lua:BuildRequires: lua51-devel} |
21efbadf | 46 | BuildRequires: pkgconfig |
a7124b62 | 47 | BuildRequires: rpmbuild(macros) >= 1.311 |
83781727 | 48 | BuildRequires: sed >= 4.0 |
6cb7f467 | 49 | BuildRequires: sqlite3-devel |
c04695d3 | 50 | %{?with_xulrunner:BuildRequires: xulrunner-devel >= 1.9-5} |
8c6ef9d1 MB |
51 | Requires(post,postun): gtk+2 |
52 | Requires(post,postun): hicolor-icon-theme | |
a7124b62 | 53 | Requires(post,preun): GConf2 |
f7f46e7a | 54 | Requires: %{name}-backend = %{version}-%{release} |
5d157e09 MB |
55 | %ifarch %{x8664} |
56 | Obsoletes: liferea-gtkhtml | |
57 | %endif | |
7d878c33 | 58 | BuildRoot: %{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 | 65 | Liferea is a GTK+ clone of FeedReader. |
e3a76882 | 66 | |
abc7ef2a JR |
67 | %description -l pl.UTF-8 |
68 | Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu | |
c3a7ac07 | 69 | FeedReader. |
7d878c33 | 70 | |
f7f46e7a | 71 | %package gtkhtml |
72 | Summary: GtkHTML module for Liferea | |
94e05515 | 73 | Summary(pl.UTF-8): Moduł GtkHTML dla Liferea |
f7f46e7a | 74 | Group: X11/Applications/Networking |
75 | Requires: %{name} = %{version}-%{release} | |
76 | Provides: %{name}-backend = %{version}-%{release} | |
77 | ||
78 | %description gtkhtml | |
79 | GtkHTML module for Liferea. | |
80 | ||
abc7ef2a JR |
81 | %description gtkhtml -l pl.UTF-8 |
82 | Moduł GtkHTML dla Liferea. | |
f7f46e7a | 83 | |
d87234a1 JB |
84 | %package mozilla |
85 | Summary: Mozilla HTML browser module for Liferea | |
94e05515 | 86 | Summary(pl.UTF-8): Moduł przeglądarki HTML dla Liferea oparty na Mozilli |
d87234a1 JB |
87 | Group: X11/Applications/Networking |
88 | Requires: %{name} = %{version}-%{release} | |
5d157e09 | 89 | %requires_eq_to xulrunner xulrunner-devel |
f7f46e7a | 90 | Provides: %{name}-backend = %{version}-%{release} |
d87234a1 JB |
91 | |
92 | %description mozilla | |
93 | Mozilla HTML browser module for Liferea. | |
94 | ||
abc7ef2a JR |
95 | %description mozilla -l pl.UTF-8 |
96 | Moduł przeglądarki HTML dla Liferea oparty na Mozilli. | |
d87234a1 | 97 | |
a7180108 MB |
98 | %package webkit |
99 | Summary: WebKit module for Liferea | |
100 | Summary(pl.UTF-8): Moduł WebKit dla Liferea | |
101 | Group: X11/Applications/Networking | |
102 | Requires: %{name} = %{version}-%{release} | |
103 | Provides: %{name}-backend = %{version}-%{release} | |
104 | ||
105 | %description webkit | |
106 | WebKit module for Liferea. | |
107 | ||
108 | %description webkit -l pl.UTF-8 | |
109 | Moduł 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 \ |
c04695d3 | 127 | --disable-gecko \ |
cfb7ca5b | 128 | %{!?with_dbus: --disable-dbus} \ |
129 | %{!?with_gtkhtml: --disable-gtkhtml2} \ | |
beed1c1e | 130 | %{!?with_lua: --disable-lua} \ |
a0630dd8 | 131 | %{!?with_nm: --disable-nm} \ |
a7180108 MB |
132 | %{!?with_xulrunner: --disable-xulrunner} \ |
133 | %{!?with_webkit: --disable-webkit} | |
7d878c33 | 134 | %{__make} |
135 | ||
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %{__make} install \ | |
140 | DESTDIR=$RPM_BUILD_ROOT \ | |
87a534e2 | 141 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
7d878c33 | 142 | |
d87234a1 JB |
143 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la |
144 | ||
deb1b71a | 145 | %find_lang %{name} |
146 | ||
4575ec8b | 147 | %post |
e9666971 | 148 | %gconf_schema_install liferea.schemas |
dca7406c | 149 | %update_icon_cache hicolor |
f6d80c17 | 150 | |
151 | %preun | |
e9666971 | 152 | %gconf_schema_uninstall liferea.schemas |
4575ec8b | 153 | |
dca7406c | 154 | %postun |
155 | %update_icon_cache hicolor | |
156 | ||
7d878c33 | 157 | %clean |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
deb1b71a | 160 | %files -f %{name}.lang |
7d878c33 | 161 | %defattr(644,root,root,755) |
14552208 | 162 | %doc AUTHORS ChangeLog NEWS README |
69d12f62 MB |
163 | %attr(755,root,root) %{_bindir}/liferea |
164 | %attr(755,root,root) %{_bindir}/liferea-add-feed | |
165 | %attr(755,root,root) %{_bindir}/liferea-bin | |
d87234a1 | 166 | %dir %{_libdir}/%{name} |
69d12f62 | 167 | %attr(755,root,root) %{_libdir}/%{name}/liblinotiflibnotify.so |
dca7406c | 168 | %{_iconsdir}/hicolor/48x48/apps/liferea.png |
d8954fa2 | 169 | %{_sysconfdir}/gconf/schemas/liferea.schemas |
7d878c33 | 170 | %{_datadir}/%{name} |
8e447246 | 171 | %{_desktopdir}/*.desktop |
b0c9bbae | 172 | %{_mandir}/man1/liferea.1* |
69d12f62 | 173 | %{_mandir}/pl/man1/liferea.1* |
31d6b4ba | 174 | %if %{with lua} |
a7307aee | 175 | %attr(755,root,root) %{_libdir}/%{name}/libliscrlua.so |
31d6b4ba | 176 | %endif |
d87234a1 | 177 | |
cfb7ca5b | 178 | %if %{with gtkhtml} |
f7f46e7a | 179 | %files gtkhtml |
180 | %defattr(644,root,root,755) | |
69d12f62 | 181 | %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so |
cfb7ca5b | 182 | %endif |
f7f46e7a | 183 | |
5d157e09 | 184 | %if %{with xulrunner} |
d87234a1 JB |
185 | %files mozilla |
186 | %defattr(644,root,root,755) | |
69d12f62 | 187 | %attr(755,root,root) %{_libdir}/%{name}/liblihtmlx.so |
ce065e76 | 188 | %endif |
a7180108 MB |
189 | |
190 | %if %{with webkit} | |
191 | %files webkit | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/%{name}/liblihtmlw.so | |
194 | %endif |