]> git.pld-linux.org Git - packages/yelp.git/blob - yelp.spec
- merged from DEVEL
[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.0
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:  eef25315bfe8162dd7bcc2aabf31bcf8
14 Patch0:         %{name}-desktop.patch
15 Patch1:         %{name}-m4.patch
16 URL:            http://www.gnome.org/
17 BuildRequires:  GConf2-devel >= 2.12.0
18 BuildRequires:  ORBit2-devel >= 1:2.12.4
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  beagle-devel
22 BuildRequires:  bzip2-devel
23 BuildRequires:  glib2-devel >= 1:2.8.1
24 BuildRequires:  gnome-common >= 2.8.0
25 BuildRequires:  gnome-doc-utils >= 0.4.0
26 BuildRequires:  gnome-vfs2-devel >= 2.12.0
27 BuildRequires:  libglade2-devel >= 1:2.5.1
28 BuildRequires:  libgnomeui-devel >= 2.12.0
29 BuildRequires:  libtool
30 BuildRequires:  libxml2-devel >= 2.6.21
31 BuildRequires:  libxslt-devel >= 1.1.5
32 %if %{with mozilla_firefox}
33 BuildRequires:  mozilla-firefox-devel
34 %else
35 BuildRequires:  mozilla-devel >= 5:1.7
36 %endif
37 BuildRequires:  pkgconfig >= 1:0.15.0
38 BuildRequires:  popt-devel
39 BuildRequires:  rpmbuild(macros) >= 1.197
40 BuildRequires:  zlib-devel
41 Requires(post,preun):   GConf2
42 Requires:       docbook-style-xsl >= 1.55.0
43 Requires:       gnome-doc-utils >= 0.4.0
44 Requires:       gnome-vfs2 >= 2.12.0
45 Requires:       scrollkeeper
46 %if %{with mozilla_firefox}
47 %requires_eq    mozilla-firefox
48 %else
49 Requires:       mozilla-embedded = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla-embedded)
50 %endif
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 # can be provided by mozilla or mozilla-embedded
54 %define         _noautoreqdep   libgtkembedmoz.so libgtksuperwin.so libxpcom.so
55
56 %description
57 Yelp is the GNOME help/documentation browser. It is designed to help
58 you browse all the documentation on your system in one central tool.
59
60 %description -l pl
61 Yelp jest przegl±dark± pomocy i dokumentacji GNOME. Umo¿liwia
62 przegl±danie ca³ej dokumentacji systemu za pomoc± jednego, centralnego
63 narzêdzia.
64
65 %prep
66 %setup -q
67 %patch0 -p1
68 %patch1 -p1
69
70 %build
71 %{__libtoolize}
72 %{__aclocal} -I m4
73 %{__autoconf}
74 %{__automake}
75 %configure
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
85
86 %find_lang %{name} --with-gnome --all-name
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 %gconf_schema_install yelp.schemas
93
94 %preun
95 %gconf_schema_uninstall yelp.schemas
96
97 %files -f %{name}.lang
98 %defattr(644,root,root,755)
99 %doc README ChangeLog NEWS TODO AUTHORS
100 %attr(755,root,root) %{_bindir}/*
101 %{_libdir}/bonobo/servers/*
102 %{_datadir}/%{name}
103 %{_desktopdir}/*
104 %{_iconsdir}/hicolor/192x192/apps/yelp-icon-big.png
105 %{_sysconfdir}/gconf/schemas/yelp.schemas
This page took 0.059028 seconds and 4 git commands to generate.