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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 37322 - (show annotations) (download)
Mon Jan 24 14:30:07 2011 UTC (10 years, 8 months ago) by pterjan
File size: 1847 byte(s)
SILENT get rid of useless files when not building plugin
1 %define build_plugin 0
2
3 Name: xrx
4 Version: 1.0.4
5 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 %if %build_plugin
19 # for npapi.h
20 BuildRequires: xulrunner-devel
21 %endif
22
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 %if %build_plugin
28 %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 %endif
40
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 %if %build_plugin
55 mkdir -p %{buildroot}%{_libdir}/mozilla/plugins
56 mv %{buildroot}%{_libdir}/*.so %{buildroot}%{_libdir}/mozilla/plugins
57 %else
58 rm -f %{buildroot}%{_libdir}/*.so
59 rm -f %{_mandir}/man1/libxrx.*
60 %endif
61
62 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 %if %build_plugin
73 %files plugin
74 %defattr(-,root,root,-)
75 %{_libdir}/mozilla/plugins/*.so
76 %{_mandir}/man1/libxrx.1*
77 %endif

  ViewVC Help
Powered by ViewVC 1.1.28