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