File gup.spec of Package gup

# spec file for package gup
# Copyright (c) 2014 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

Name:           gup
Version:        0.3
Release:        0
Summary:        Group Update Program for INN and C-News
License:        SUSE-Public-Domain
Group:          Productivity/Networking/News/Utilities
Source:         gup.tar.gz
Patch0:         gup.dif
Patch1:         gup-fdleak.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       inn

A Group Update Program that accepts commands by mail to edit a
newsgroup subscription file.  It can be used by news systems such as
INN and C-News.

    Andrew  Herbert <>
    Mark Delany <>

%setup -n gup

make all %{?_smp_mflags}

mkdir -p $RPM_BUILD_ROOT/usr/lib/news/bin
install gup sample/{gupdate,gupadd,gupverify} $RPM_BUILD_ROOT/usr/lib/news/bin/
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 gup.1 $RPM_BUILD_ROOT%{_mandir}/man1/
mkdir -p $RPM_BUILD_ROOT$var/sites $RPM_BUILD_ROOT$var/default
install -m 600 sample/config $RPM_BUILD_ROOT$var
install -m 644 sample/{gup_headers,gupconfig,newsfeeds.{start,end}} $RPM_BUILD_ROOT$var
install -m 644 sample/default/{exclude,groups,header,trailer} $RPM_BUILD_ROOT$var/default/
touch $RPM_BUILD_ROOT$var/log
chmod 600 $RPM_BUILD_ROOT$var/log

%dir /usr/lib/news/bin
%dir /var/lib/news/gup
%dir /var/lib/news/gup/default
%dir /var/lib/news/gup/sites
%config(noreplace) /var/lib/news/gup/config
%config(noreplace) /var/lib/news/gup/gupconfig

openSUSE Build Service is sponsored by