]> git.pld-linux.org Git - packages/yelp.git/blob - yelp.spec
201175ea1eaa943fba8ed8dcacaf714bc289e550
[packages/yelp.git] / yelp.spec
1 #
2 # Conditinal build:
3 %bcond_with     mozilla_firefox         # build with 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.14.1
9 Release:        2
10 License:        GPL
11 Group:          X11/Applications
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/yelp/2.14/%{name}-%{version}.tar.bz2
13 # Source0-md5:  3d569f8e9372bc88c7f9fca6a94388a9
14 Patch0:         %{name}-desktop.patch
15 Patch1:         %{name}-m4.patch
16 Patch2:         %{name}-bs.patch
17 URL:            http://www.gnome.org/
18 BuildRequires:  GConf2-devel >= 2.12.0
19 BuildRequires:  ORBit2-devel >= 1:2.12.4
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  beagle-devel
23 BuildRequires:  bzip2-devel
24 BuildRequires:  glib2-devel >= 1:2.8.1
25 BuildRequires:  gnome-common >= 2.8.0
26 BuildRequires:  gnome-doc-utils >= 0.4.0
27 BuildRequires:  gnome-vfs2-devel >= 2.12.0
28 BuildRequires:  libglade2-devel >= 1:2.5.1
29 BuildRequires:  libgnomeui-devel >= 2.12.0
30 BuildRequires:  libtool
31 BuildRequires:  libxml2-devel >= 2.6.21
32 BuildRequires:  libxslt-devel >= 1.1.5
33 %if %{with mozilla_firefox}
34 BuildRequires:  mozilla-firefox-devel
35 %else
36 BuildRequires:  mozilla-devel >= 5:1.7
37 %endif
38 BuildRequires:  pkgconfig >= 1:0.15.0
39 BuildRequires:  popt-devel
40 BuildRequires:  rpmbuild(macros) >= 1.197
41 BuildRequires:  zlib-devel
42 Requires(post,preun):   GConf2
43 Requires:       docbook-style-xsl >= 1.55.0
44 Requires:       gnome-doc-utils >= 0.4.0
45 Requires:       gnome-vfs2 >= 2.12.0
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 %patch1 -p1
70 %patch2 -p1
71
72 %build
73 %{__libtoolize}
74 %{__aclocal} -I m4
75 %{__autoconf}
76 %{__automake}
77 %configure
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
87
88 %find_lang %{name} --with-gnome --all-name
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post
94 %gconf_schema_install yelp.schemas
95
96 %preun
97 %gconf_schema_uninstall yelp.schemas
98
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc README ChangeLog NEWS TODO AUTHORS
102 %attr(755,root,root) %{_bindir}/*
103 %{_libdir}/bonobo/servers/*
104 %{_datadir}/%{name}
105 %{_desktopdir}/*
106 %{_iconsdir}/hicolor/192x192/apps/yelp-icon-big.png
107 %{_sysconfdir}/gconf/schemas/yelp.schemas
This page took 0.117765 seconds and 3 git commands to generate.