]> git.pld-linux.org Git - packages/liferea.git/blobdiff - liferea.spec
- do not require xulrunner when building without it
[packages/liferea.git] / liferea.spec
index 2052a4830f2fbfa952777944ebd11757cd58d0f2..141feb33362051ddd4b97c20690c93d98194a3fe 100644 (file)
@@ -1,23 +1,26 @@
 #
 # Conditional build:
 %bcond_without dbus            # without DBUS support
-%bcond_without mozilla         # without mozilla
 %bcond_without gtkhtml         # without GtkHTML
-%bcond_without mozilla_firefox # build with mozilla-firefox-devel
+%bcond_without xulrunner       # without XULRunner backend
 #
+%ifarch %{x8664}
+%undefine      with_gtkhtml    # GtkHTML backend disabled on x86_64
+%endif
 Summary:       A RSS feed reader
-Summary(pl.UTF-8):   Program do pobierania informacji w formacie RSS
+Summary(pl.UTF-8):     Program do pobierania informacji w formacie RSS
 Name:          liferea
-Version:       1.2.4
-Release:       1
+Version:       1.2.7
+Release:       2
 License:       GPL v2
 Group:         X11/Applications/Networking
 Source0:       http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
-# Source0-md5: 2bed06c06e7b90281cf51fa3e83ee023
+# Source0-md5: e15b37b9f96606581c941431a38fd933
 Patch0:                %{name}-desktop.patch
+Patch1:                %{name}-xulrunner.patch
 URL:           http://liferea.sourceforge.net/
 BuildRequires: GConf2-devel >= 2.10.0
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.59
 BuildRequires: automake
 %{?with_dbus:BuildRequires:    dbus-glib-devel >= 0.33}
 BuildRequires: gtk+2-devel >= 2:2.8.0
@@ -26,20 +29,17 @@ BuildRequires:      libnotify-devel >= 0.3.2
 BuildRequires: libstdc++-devel
 BuildRequires: libtool
 BuildRequires: libxml2-devel >= 1:2.6.19
-BuildRequires: libxslt-devel
-%if %{with mozilla}
-%if %{with mozilla_firefox}
-BuildRequires: mozilla-firefox-devel
-%else
-BuildRequires: mozilla-devel
-%endif
-%endif
+BuildRequires: libxslt-devel >= 1.1.19
 BuildRequires: pkgconfig
 BuildRequires: rpmbuild(macros) >= 1.311
+%{?with_xulrunner:BuildRequires:       xulrunner-devel}
 Requires(post,postun): gtk+2
 Requires(post,postun): hicolor-icon-theme
 Requires(post,preun):  GConf2
 Requires:      %{name}-backend = %{version}-%{release}
+%ifarch %{x8664}
+Obsoletes:     liferea-gtkhtml
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreqdep   libgtkembedmoz.so libxpcom.so
@@ -53,7 +53,7 @@ FeedReader.
 
 %package gtkhtml
 Summary:       GtkHTML module for Liferea
-Summary(pl.UTF-8):   Moduł GtkHTML dla Liferea
+Summary(pl.UTF-8):     Moduł GtkHTML dla Liferea
 Group:         X11/Applications/Networking
 Requires:      %{name} = %{version}-%{release}
 Provides:      %{name}-backend = %{version}-%{release}
@@ -66,14 +66,10 @@ Moduł GtkHTML dla Liferea.
 
 %package mozilla
 Summary:       Mozilla HTML browser module for Liferea
-Summary(pl.UTF-8):   Moduł przeglądarki HTML dla Liferea oparty na Mozilli
+Summary(pl.UTF-8):     Moduł przeglądarki HTML dla Liferea oparty na Mozilli
 Group:         X11/Applications/Networking
 Requires:      %{name} = %{version}-%{release}
-%if %{with mozilla_firefox}
-%requires_eq   mozilla-firefox-libs
-%else
-Requires:      mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
-%endif
+%requires_eq_to        xulrunner xulrunner-devel
 Provides:      %{name}-backend = %{version}-%{release}
 
 %description mozilla
@@ -85,6 +81,7 @@ Moduł przeglądarki HTML dla Liferea oparty na Mozilli.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 #%{__glib_gettextize}
@@ -97,7 +94,7 @@ Moduł przeglądarki HTML dla Liferea oparty na Mozilli.
        --disable-schemas-install \
        %{!?with_dbus: --disable-dbus} \
        %{!?with_gtkhtml: --disable-gtkhtml2} \
-       %{!?with_mozilla: --disable-gecko}
+       %{!?with_xulrunner: --disable-xulrunner}
 %{__make}
 
 %install
@@ -143,8 +140,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
 %endif
 
-%if %{with mozilla}
+%if %{with xulrunner}
 %files mozilla
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*
+%attr(755,root,root) %{_libdir}/%{name}/liblihtmlx.so*
 %endif
This page took 0.180173 seconds and 4 git commands to generate.