]> git.pld-linux.org Git - packages/xchm.git/blob - xchm.spec
- rebuild with gtk3 and wxWidgets 3.2, rel 5
[packages/xchm.git] / xchm.spec
1 #
2 # Conditional build:
3 %bcond_with     xmlrpc          # enable XmlRpc functionality
4 #
5 Summary:        CHM viewer for UNIX
6 Summary(pl.UTF-8):      Przeglądarka CHM dla Uniksów
7 Name:           xchm
8 Version:        1.23
9 Release:        5
10 License:        GPL v2+
11 Group:          X11/Applications
12 Source0:        http://downloads.sourceforge.net/xchm/%{name}-%{version}.tar.gz
13 # Source0-md5:  486d029bd81071a2d04e7181909b1602
14 Source1:        %{name}.desktop
15 Patch0:         wxWidgets3.patch
16 Patch1:         %{name}-pl.po-update.patch
17 URL:            http://xchm.sourceforge.net/
18 BuildRequires:  autoconf >= 2.50
19 BuildRequires:  automake
20 BuildRequires:  chmlib-devel
21 BuildRequires:  gettext-tools >= 0.14.3
22 BuildRequires:  wxGTK3-unicode-devel >= 2.8.0
23 %if %{with xmlrpc}
24 # for configure check
25 BuildRequires:  openssl-devel
26 BuildRequires:  xmlrpc++-devel
27 %endif
28 Requires(post,postun):  desktop-file-utils
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 xCHM is a CHM viewer for UNIX, based on Jed Wing's CHMLIB and written
33 with wxWidgets.
34
35 %description -l pl.UTF-8
36 xCHM to przeglądarka plików CHM dla Uniksa, napisana w oparciu o
37 CHMLIB Jeda Winga, z użyciem wxWidgets.
38
39 %prep
40 %setup -q
41 %patch0 -p1
42 %patch1 -p1
43
44 %{__rm} po/stamp-po
45
46 %build
47 %{__gettextize}
48 %{__aclocal}
49 %{__autoconf}
50 %{__autoheader}
51 %{__automake}
52 %configure \
53         %{?with_xmlrpc:--enable-xmlrpc} \
54         WX_CONFIG_NAME=%{_bindir}/wx-gtk3-unicode-config
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 install art/xchm-48.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/xchm.xpm
65 install %{SOURCE1}      $RPM_BUILD_ROOT%{_desktopdir}
66
67 # unify to short code pt=pt_PT
68 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{pt_PT,pt}
69 # fix Greek language code
70 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{gr,el}
71
72 %find_lang %{name}
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post
78 %update_desktop_database
79
80 %postun
81 %update_desktop_database_postun
82
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog README %{?with_xmlrpc:README.xmlrpc}
86 %attr(755,root,root) %{_bindir}/xchm
87 %{_desktopdir}/xchm.desktop
88 %{_pixmapsdir}/xchm*.png
89 %{_pixmapsdir}/xchm*.xpm
This page took 0.088584 seconds and 4 git commands to generate.