]> git.pld-linux.org Git - packages/liferea.git/blob - liferea.spec
c0e343df1e6fd71b801cf7b904cb44010d4ac9ec
[packages/liferea.git] / liferea.spec
1 # TODO:
2 # - create subpackage -lua (?)
3 #
4 # Conditional build:
5 %bcond_without  dbus            # without D-Bus support
6 %bcond_without  lua             # without LUA scripting support
7 %bcond_without  nm              # with NetworkManager support
8 #
9 Summary:        A RSS feed reader
10 Summary(pl.UTF-8):      Program do pobierania informacji w formacie RSS
11 Name:           liferea
12 Version:        1.6.4
13 Release:        1
14 License:        GPL v2
15 Group:          X11/Applications/Networking
16 Source0:        http://downloads.sourceforge.net/liferea/%{name}-%{version}.tar.gz
17 # Source0-md5:  921b5778f5cc67a60eec4669b6048844
18 Patch0:         %{name}-desktop.patch
19 Patch1:         %{name}-lua51.patch
20 URL:            http://liferea.sourceforge.net/
21 BuildRequires:  GConf2-devel >= 2.10.0
22 %{?with_nm:BuildRequires:       NetworkManager-devel}
23 BuildRequires:  autoconf >= 2.59
24 BuildRequires:  automake >= 1:1.6
25 BuildRequires:  avahi-glib-devel >= 0.6.0
26 %{?with_dbus:BuildRequires:     dbus-glib-devel >= 0.33}
27 BuildRequires:  gettext-devel
28 BuildRequires:  gstreamer-devel >= 0.10
29 BuildRequires:  gtk+2-devel >= 2:2.16.0
30 BuildRequires:  gtk-webkit-devel >= 1.1.7
31 BuildRequires:  intltool >= 0.35.5
32 BuildRequires:  libglade2-devel >= 1:2.0.0
33 BuildRequires:  libnotify-devel >= 0.3.2
34 BuildRequires:  libsoup-devel >= 2.26.1
35 BuildRequires:  libtool
36 BuildRequires:  libxml2-devel >= 1:2.6.27
37 BuildRequires:  libxslt-devel >= 1.1.19
38 %{?with_lua:BuildRequires:      lua51-devel}
39 BuildRequires:  pkgconfig
40 BuildRequires:  rpmbuild(macros) >= 1.311
41 BuildRequires:  sqlite3-devel >= 3.6.10
42 BuildRequires:  xorg-lib-libSM-devel
43 Requires(post,postun):  gtk+2
44 Requires(post,postun):  hicolor-icon-theme
45 Requires(post,preun):   GConf2
46 Obsoletes:      liferea-gtkhtml
47 Obsoletes:      liferea-mozilla
48 Obsoletes:      liferea-webkit
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 Liferea is a GTK+ clone of FeedReader.
53
54 %description -l pl.UTF-8
55 Liferea jest klonem, napisanym za pomocą biblioteki GTK+, programu
56 FeedReader.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61 %patch1 -p1
62
63 %build
64 %{__glib_gettextize}
65 %{__intltoolize}
66 %{__aclocal}
67 %{__libtoolize}
68 %{__automake}
69 %{__autoheader}
70 %{__autoconf}
71 %configure \
72         --disable-schemas-install \
73         %{!?with_dbus: --disable-dbus} \
74         %{!?with_lua: --disable-lua} \
75         %{!?with_nm: --disable-nm}
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
86
87 %find_lang %{name}
88
89 %post
90 %gconf_schema_install liferea.schemas
91 %update_icon_cache hicolor
92
93 %preun
94 %gconf_schema_uninstall liferea.schemas
95
96 %postun
97 %update_icon_cache hicolor
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %files -f %{name}.lang
103 %defattr(644,root,root,755)
104 %doc AUTHORS ChangeLog NEWS README
105 %attr(755,root,root) %{_bindir}/liferea
106 %attr(755,root,root) %{_bindir}/liferea-add-feed
107 %dir %{_libdir}/%{name}
108 %attr(755,root,root) %{_libdir}/%{name}/liblinotiflibnotify.so
109 %if %{with lua}
110 %attr(755,root,root) %{_libdir}/%{name}/libliscrlua.so
111 %endif
112 %{_iconsdir}/hicolor/*/*/*.png
113 %{_iconsdir}/hicolor/*/*/*.svg
114 %{_sysconfdir}/gconf/schemas/liferea.schemas
115 %{_datadir}/%{name}
116 %{_desktopdir}/liferea.desktop
117 %{_mandir}/man1/liferea.1*
118 %lang(pl) %{_mandir}/pl/man1/liferea.1*
This page took 0.0392 seconds and 3 git commands to generate.