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