]> git.pld-linux.org Git - packages/yelp.git/blob - yelp.spec
- 2.15.2, GNOME 2.15.x deps, (re)generate icon cache, remove unsupported
[packages/yelp.git] / yelp.spec
1 #
2 # Conditinal build:
3 %bcond_without  mozilla_firefox         # build with mozilla instead of mozilla-firefox
4 #
5 Summary:        A system documentation reader from the GNOME project
6 Summary(pl):    Czytnik dokumentacji z projektu GNOME
7 Name:           yelp
8 Version:        2.15.2
9 Release:        1
10 License:        GPL
11 Group:          X11/Applications
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/yelp/2.15/%{name}-%{version}.tar.bz2
13 # Source0-md5:  0a6928685d289b67773eeff6ae90869b
14 Patch0:         %{name}-desktop.patch
15 Patch2:         %{name}-bs.patch
16 URL:            http://www.gnome.org/
17 BuildRequires:  GConf2-devel >= 2.14.0
18 BuildRequires:  ORBit2-devel >= 1:2.14.0
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  beagle-devel
22 BuildRequires:  bzip2-devel
23 BuildRequires:  gnome-common >= 2.12.0
24 BuildRequires:  gnome-doc-utils >= 0.6.0
25 BuildRequires:  gnome-vfs2-devel >= 2.15.1
26 BuildRequires:  libglade2-devel >= 1:2.5.1
27 BuildRequires:  libgnomeui-devel >= 2.15.1
28 BuildRequires:  libtool
29 BuildRequires:  libxml2-devel >= 2.6.26
30 BuildRequires:  libxslt-devel >= 1.1.17
31 %if %{with mozilla_firefox}
32 BuildRequires:  mozilla-firefox-devel
33 %else
34 BuildRequires:  mozilla-devel >= 5:1.7
35 %endif
36 BuildRequires:  pkgconfig >= 1:0.15.0
37 BuildRequires:  popt-devel
38 BuildRequires:  rpmbuild(macros) >= 1.197
39 BuildRequires:  zlib-devel
40 Requires(post,preun):   GConf2 >= 2.14.0
41 Requires(post,postun):  gtk+2 >= 2:2.9.2
42 Requires:       docbook-style-xsl >= 1.55.0
43 Requires:       gnome-doc-utils >= 0.6.0
44 Requires:       gnome-vfs2 >= 2.15.1
45 Requires:       libgnomeui >= 2.15.1
46 Requires:       scrollkeeper
47 %if %{with mozilla_firefox}
48 %requires_eq    mozilla-firefox
49 %else
50 Requires:       mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
51 %endif
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 # can be provided by mozilla or mozilla-embedded
55 %define         _noautoreqdep   libgtkembedmoz.so libgtksuperwin.so libxpcom.so
56
57 %description
58 Yelp is the GNOME help/documentation browser. It is designed to help
59 you browse all the documentation on your system in one central tool.
60
61 %description -l pl
62 Yelp jest przegl±dark± pomocy i dokumentacji GNOME. Umo¿liwia
63 przegl±danie ca³ej dokumentacji systemu za pomoc± jednego, centralnego
64 narzêdzia.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69 %patch2 -p1
70
71 %build
72 %{__libtoolize}
73 %{__aclocal} -I m4
74 %{__autoconf}
75 %{__automake}
76 %configure
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/ug
86
87 %find_lang %{name} --with-gnome --all-name
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post
93 %gconf_schema_install yelp.schemas
94 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
95
96 %preun
97 %gconf_schema_uninstall yelp.schemas
98
99 %postun
100 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
101
102 %files -f %{name}.lang
103 %defattr(644,root,root,755)
104 %doc README ChangeLog NEWS TODO AUTHORS
105 %attr(755,root,root) %{_bindir}/*
106 %{_libdir}/bonobo/servers/*
107 %{_datadir}/%{name}
108 %{_desktopdir}/*
109 %{_iconsdir}/hicolor/*/*/yelp-icon-big.png
110 %{_sysconfdir}/gconf/schemas/yelp.schemas
This page took 0.08142 seconds and 4 git commands to generate.