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