1 |
|
%define build_plugin 0 |
2 |
|
|
3 |
Name: xrx |
Name: xrx |
4 |
Version: 1.0.4 |
Version: 1.0.4 |
5 |
Release: %{mkrel 1} |
Release: %{mkrel 1} |
15 |
BuildRequires: libxaw-devel >= 1.0.1 |
BuildRequires: libxaw-devel >= 1.0.1 |
16 |
BuildRequires: x11-util-macros >= 1.0.1 |
BuildRequires: x11-util-macros >= 1.0.1 |
17 |
BuildRequires: x11-xtrans-devel >= 1.0.0 |
BuildRequires: x11-xtrans-devel >= 1.0.0 |
18 |
|
%if %build_plugin |
19 |
# for npapi.h |
# for npapi.h |
20 |
BuildRequires: xulrunner-devel |
BuildRequires: xulrunner-devel |
21 |
|
%endif |
22 |
|
|
23 |
%description |
%description |
24 |
The xrx helper program may be used with any Web browser to interpret documents |
The xrx helper program may be used with any Web browser to interpret documents |
25 |
in the RX MIME type format and start remote applications. |
in the RX MIME type format and start remote applications. |
26 |
|
|
27 |
|
%if %build_plugin |
28 |
%package plugin |
%package plugin |
29 |
Group: Development/X11 |
Group: Development/X11 |
30 |
Summary: RX browser plugins |
Summary: RX browser plugins |
36 |
%description plugin |
%description plugin |
37 |
Mozilla-type browser plugins to allow the handling of documents in the |
Mozilla-type browser plugins to allow the handling of documents in the |
38 |
RX MIME type format to start remote applications. |
RX MIME type format to start remote applications. |
39 |
|
%endif |
40 |
|
|
41 |
%prep |
%prep |
42 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
51 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
52 |
%makeinstall_std |
%makeinstall_std |
53 |
|
|
54 |
|
%if %build_plugin |
55 |
mkdir -p %{buildroot}%{_libdir}/mozilla/plugins |
mkdir -p %{buildroot}%{_libdir}/mozilla/plugins |
56 |
mv %{buildroot}%{_libdir}/*.so %{buildroot}%{_libdir}/mozilla/plugins |
mv %{buildroot}%{_libdir}/*.so %{buildroot}%{_libdir}/mozilla/plugins |
57 |
|
%endif |
58 |
|
|
59 |
rm -f %{buildroot}%{_libdir}/*.*a |
rm -f %{buildroot}%{_libdir}/*.*a |
60 |
|
|
61 |
%clean |
%clean |
66 |
%{_bindir}/xrx |
%{_bindir}/xrx |
67 |
%{_mandir}/man1/xrx.1* |
%{_mandir}/man1/xrx.1* |
68 |
|
|
69 |
|
%if %build_plugin |
70 |
%files plugin |
%files plugin |
71 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
72 |
%{_libdir}/mozilla/plugins/*.so |
%{_libdir}/mozilla/plugins/*.so |
73 |
%{_mandir}/man1/libxrx.1* |
%{_mandir}/man1/libxrx.1* |
74 |
|
%endif |
75 |
|
|
76 |
|
|