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