File rman.spec of Package rman

#
# spec file for package rman (Version 3.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           rman
License:        Artistic-1.0
Group:          Documentation/Man
AutoReqProv:    on
Version:        3.2
Release:        138
Summary:        RosettaMan - Filter for Manpages
Url:            http://polyglotman.sourceforge.net
Source:         ftp://polyglot.sourceforge.net/pub/polyglotman/rman-%{version}.tar.gz
Source1:        artistic-license.txt
Source2:        rman.xinetd
Patch:          rman.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       xinetd

%description
RosettaMan is a filter for UNIX manual pages needed by TkMan. It takes,
as input, man pages formatted for a variety of UNIX flavors (not
[tn]roff source) and produces, as output, a variety of file formats.
Http-rman is also included. It provides access to the man pages via a
normal web browser.



Authors:
--------
    T.A. Phelps <phelps@cs.Berkeley.EDU>

%prep
%setup -q
%patch
cp %{SOURCE1} .

%build
make CFLAGS="$RPM_OPT_FLAGS"
cd contrib
cc -o http-rman -D_GNU_SOURCE $RPM_OPT_FLAGS http-rman.c	

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT/etc/xinetd.d
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc/xinetd.d/rman
make install \
	BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
cd contrib
install -D http-rman $RPM_BUILD_ROOT%{_sbindir}/http-rman

%files
%defattr(-,root,root)
%config(noreplace) /etc/xinetd.d/rman
%{_bindir}/rman
%doc CHANGES artistic-license.txt README-rman.txt rman.html contrib
%doc %{_mandir}/man1/rman.1.gz
%{_sbindir}/http-rman

%changelog
openSUSE Build Service is sponsored by