1 |
pterjan |
37315 |
%define build_plugin 0 |
2 |
|
|
|
3 |
ennael |
30430 |
Name: xrx |
4 |
pterjan |
35036 |
Version: 1.0.4 |
5 |
ennael |
30430 |
Release: %{mkrel 1} |
6 |
|
|
Summary: RX helper program |
7 |
|
|
Group: Development/X11 |
8 |
|
|
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 |
9 |
|
|
License: MIT |
10 |
|
|
BuildRoot: %{_tmppath}/%{name}-root |
11 |
|
|
BuildRequires: libx11-devel >= 1.0.0 |
12 |
|
|
BuildRequires: libxau-devel >= 1.0.0 |
13 |
|
|
BuildRequires: libxext-devel >= 1.0.0 |
14 |
|
|
BuildRequires: libxt-devel >= 1.0.0 |
15 |
|
|
BuildRequires: libxaw-devel >= 1.0.1 |
16 |
|
|
BuildRequires: x11-util-macros >= 1.0.1 |
17 |
|
|
BuildRequires: x11-xtrans-devel >= 1.0.0 |
18 |
pterjan |
37315 |
%if %build_plugin |
19 |
ennael |
30430 |
# for npapi.h |
20 |
|
|
BuildRequires: xulrunner-devel |
21 |
pterjan |
37315 |
%endif |
22 |
ennael |
30430 |
|
23 |
|
|
%description |
24 |
|
|
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. |
26 |
|
|
|
27 |
pterjan |
37315 |
%if %build_plugin |
28 |
ennael |
30430 |
%package plugin |
29 |
|
|
Group: Development/X11 |
30 |
|
|
Summary: RX browser plugins |
31 |
|
|
Obsoletes: %{mklibname xrx 0} < %{version}-%{release} |
32 |
|
|
Obsoletes: %{mklibname xrxnest 0} < %{version}-%{release} |
33 |
|
|
Obsoletes: %{mklibname xrx -d} < %{version}-%{release} |
34 |
|
|
Obsoletes: %{mklibname xrx -d -s} < %{version}-%{release} |
35 |
|
|
|
36 |
|
|
%description plugin |
37 |
|
|
Mozilla-type browser plugins to allow the handling of documents in the |
38 |
|
|
RX MIME type format to start remote applications. |
39 |
pterjan |
37315 |
%endif |
40 |
ennael |
30430 |
|
41 |
|
|
%prep |
42 |
|
|
%setup -q -n %{name}-%{version} |
43 |
|
|
|
44 |
|
|
%build |
45 |
|
|
%configure2_5x --x-includes=%{_includedir}\ |
46 |
|
|
--x-libraries=%{_libdir} |
47 |
|
|
|
48 |
|
|
%make |
49 |
|
|
|
50 |
|
|
%install |
51 |
|
|
rm -rf %{buildroot} |
52 |
|
|
%makeinstall_std |
53 |
|
|
|
54 |
pterjan |
37315 |
%if %build_plugin |
55 |
ennael |
30430 |
mkdir -p %{buildroot}%{_libdir}/mozilla/plugins |
56 |
|
|
mv %{buildroot}%{_libdir}/*.so %{buildroot}%{_libdir}/mozilla/plugins |
57 |
pterjan |
37322 |
%else |
58 |
|
|
rm -f %{buildroot}%{_libdir}/*.so |
59 |
pterjan |
37323 |
rm -f %{buildroot}%{_mandir}/man1/libxrx.* |
60 |
pterjan |
37315 |
%endif |
61 |
|
|
|
62 |
ennael |
30430 |
rm -f %{buildroot}%{_libdir}/*.*a |
63 |
|
|
|
64 |
|
|
%clean |
65 |
|
|
rm -rf %{buildroot} |
66 |
|
|
|
67 |
|
|
%files |
68 |
|
|
%defattr(-,root,root) |
69 |
|
|
%{_bindir}/xrx |
70 |
|
|
%{_mandir}/man1/xrx.1* |
71 |
|
|
|
72 |
pterjan |
37315 |
%if %build_plugin |
73 |
ennael |
30430 |
%files plugin |
74 |
|
|
%defattr(-,root,root,-) |
75 |
|
|
%{_libdir}/mozilla/plugins/*.so |
76 |
|
|
%{_mandir}/man1/libxrx.1* |
77 |
pterjan |
37315 |
%endif |