]> git.pld-linux.org Git - packages/liferea.git/blob - liferea.spec
- updated to 0.9.7b
[packages/liferea.git] / liferea.spec
1 # Conditional build:
2 %bcond_without  dbus            # without DBUS support
3 %bcond_without  mozilla         # without mozilla
4 %bcond_without  gtkhtml         # without GtkHTML
5 %bcond_with     mozilla_firefox # build with mozilla-firefox-devel
6 #
7 Summary:        A RSS feed reader
8 Summary(pl):    Program do pobierania informacji w formacie RSS
9 Name:           liferea
10 Version:        0.9.7b
11 Release:        1
12 License:        GPL
13 Group:          X11/Applications/Networking
14 Source0:        http://dl.sourceforge.net/liferea/%{name}-%{version}.tar.gz
15 # Source0-md5:  68c75c792c81808160434baca4e9165b
16 Patch0:         %{name}-desktop.patch
17 URL:            http://liferea.sourceforge.net/
18 BuildRequires:  GConf2-devel >= 2.10.0
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 %{?with_dbus:BuildRequires:     dbus-glib-devel >= 0.33}
22 BuildRequires:  gtk+2-devel >= 2:2.6.4
23 BuildRequires:  libxml2-devel >= 1:2.6.19
24 %{?with_gtkhtml:BuildRequires:  libgtkhtml-devel >= 2.6.3}
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  libtool
27 %if %{with mozilla}
28 %if %{with mozilla_firefox}
29 BuildRequires:  mozilla-firefox-devel
30 %else
31 BuildRequires:  mozilla-devel
32 %endif
33 %endif
34 BuildRequires:  pkgconfig
35 BuildRequires:  rpmbuild(macros) >= 1.197
36 Requires(post,preun):   GConf2
37 Requires:       %{name}-backend = %{version}-%{release}
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %define         _noautoreqdep   libgtkembedmoz.so libxpcom.so
41
42 %description
43 Liferea is a GTK+ clone of FeedReader.
44
45 %description -l pl
46 Liferea jest klonem, napisanym za pomoc± biblioteki GTK+, programu
47 FeedReader.
48
49 %package gtkhtml
50 Summary:        GtkHTML module for Liferea
51 Summary(pl):    Modu³ GtkHTML dla Liferea
52 Group:          X11/Applications/Networking
53 Requires:       %{name} = %{version}-%{release}
54 Provides:       %{name}-backend = %{version}-%{release}
55
56 %description gtkhtml
57 GtkHTML module for Liferea.
58
59 %description gtkhtml -l pl
60 Modu³ GtkHTML dla Liferea.
61
62 %package mozilla
63 Summary:        Mozilla HTML browser module for Liferea
64 Summary(pl):    Modu³ przegl±darki HTML dla Liferea oparty na Mozilli
65 Group:          X11/Applications/Networking
66 Requires:       %{name} = %{version}-%{release}
67 %if %{with mozilla_firefox}
68 %requires_eq    mozilla-firefox
69 %else
70 Requires:       mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
71 %endif
72 Provides:       %{name}-backend = %{version}-%{release}
73
74 %description mozilla
75 Mozilla HTML browser module for Liferea.
76
77 %description mozilla -l pl
78 Modu³ przegl±darki HTML dla Liferea oparty na Mozilli.
79
80 %prep
81 %setup -q
82 %patch0 -p1
83
84 %build
85 %{__glib_gettextize}
86 %{__aclocal}
87 %{__libtoolize}
88 %{__autoheader}
89 %{__automake}
90 %{__autoconf}
91 %configure \
92         --disable-schemas-install \
93         %{!?with_dbus: --disable-dbus} \
94         %{!?with_gtkhtml: --disable-gtkhtml2} \
95         %{!?with_mozilla: --disable-gecko}
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT \
103         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
104
105 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
106
107 %find_lang %{name}
108
109 %post
110 %gconf_schema_install liferea.schemas
111
112 %preun
113 %gconf_schema_uninstall liferea.schemas
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %files -f %{name}.lang
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog NEWS README
121 %attr(755,root,root) %{_bindir}/*
122 %dir %{_libdir}/%{name}
123 %{_sysconfdir}/gconf/schemas/*.schemas
124 %{_datadir}/%{name}
125 %{_desktopdir}/*
126 %{_pixmapsdir}/*
127 %{_mandir}/man1/liferea.1*
128
129 %if %{with gtkhtml}
130 %files gtkhtml
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlg.so*
133 %endif
134
135 %if %{with mozilla}
136 %files mozilla
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/%{name}/liblihtmlm.so*
139 %endif
This page took 0.033505 seconds and 4 git commands to generate.