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