/[packages]/cauldron/chmsee/current/SPECS/chmsee.spec
ViewVC logotype

Contents of /cauldron/chmsee/current/SPECS/chmsee.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 343944 - (show annotations) (download)
Wed Jan 9 18:02:45 2013 UTC (11 years, 3 months ago) by boklm
File size: 1977 byte(s)
clean spec
1 %define _requires_exceptions libnspr4\\|libplc4\\|libplds4\\|libnss\\|libsmime3\\|libsoftokn\\|libssl3\\|libgtkembedmoz\\|libxpcom
2
3 Name: chmsee
4 Version: 1.1.0
5 Release: %mkrel 3
6 Summary: A Gtk+2 based CHM viewer
7 License: GPLv2+
8 URL: http://code.google.com/p/chmsee/
9 Group: Graphical desktop/GNOME
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
11 Source: http://chmsee.googlecode.com/files/%{name}-%{version}.tar.gz
12 BuildRequires: libglade2.0-devel
13 %if %mdvver >= 201000
14 BuildRequires: xulrunner-devel
15 %else
16 BuildRequires: xulrunner-devel-unstable
17 %endif
18 BuildRequires: openssl-devel
19 BuildRequires: libgcrypt-devel
20 BuildRequires: chmlib-devel
21 BuildRequires: intltool
22 BuildRequires: imagemagick
23 BuildRequires: cmake
24 BuildRequires: libxml2-devel
25 %if %mdvver >= 201000
26 Requires: libxulrunner = %{xulrunner_version}
27 %else
28 #gw as Fedora does:
29 %define xulrunner 1.9
30 %define libname %mklibname xulrunner %xulrunner
31 %define xulver %(rpm -q --queryformat %%{VERSION} %libname)
32 Requires: %libname = %xulver
33 %endif
34
35
36 %description
37 ChmSee is an HTML Help viewer for Unix/Linux. It is based on CHMLIB
38 and use Gtk2+ as frontend toolkit. Because of using gecko as HTML
39 rendering engine, ChmSee can support rich features of modern HTML
40 page, such as CSS and JavaScript.
41
42 %prep
43 %setup -q
44
45 %build
46 %cmake
47 %make
48
49 %install
50 %__rm -rf %buildroot
51 pushd build
52 %makeinstall_std
53 popd
54
55 mkdir -p %buildroot%_iconsdir/hicolor/{16x16,32x32,48x48}/apps
56 install -p -m 644 -D data/chmsee-icon.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/chmsee.png
57 convert data/chmsee-icon.png -resize 16x16 $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/chmsee.png
58 convert data/chmsee-icon.png -resize 32x32 $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/chmsee.png
59
60 %find_lang %name
61
62 %clean
63 %__rm -rf %buildroot
64
65 %files -f %{name}.lang
66 %defattr(-,root,root)
67 %{_bindir}/*
68 %{_datadir}/applications/*.desktop
69 %{_datadir}/chmsee
70 %{_datadir}/mime-info/*
71 %{_datadir}/pixmaps/*
72 %{_iconsdir}/hicolor/*/apps/*.png
73

  ViewVC Help
Powered by ViewVC 1.1.30