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