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