cu/cu.spec

changeset 2
e3665a058d13
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cu/cu.spec	Fri Mar 11 21:39:41 2011 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +Summary:   The UUCP cu command calls up another system
     1.5 +Vendor:    Europalab Software
     1.6 +Name:      cu
     1.7 +Version:   1.07
     1.8 +Release:   20101201
     1.9 +License:   GPLv2+
    1.10 +Group:     Applications/Communications
    1.11 +URL:       http://www.gnu.org/software/uucp/
    1.12 +Source0:   ftp://ftp.gnu.org/pub/gnu/uucp/uucp-%{version}.tar.gz
    1.13 +Patch0:    http://archive.ubuntu.com/ubuntu/pool/main/u/uucp/uucp_1.07-20build1.diff.gz
    1.14 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    1.15 +
    1.16 +%description
    1.17 +The uucp command copies files between systems. Uucp is primarily used
    1.18 +by remote machines downloading and uploading email and news files to
    1.19 +local machines.
    1.20 +
    1.21 +%prep
    1.22 +%setup -q -n uucp-%{version}
    1.23 +%patch0 -p1
    1.24 +
    1.25 +%build
    1.26 +    %configure \
    1.27 +        --with-newconfigdir=%{_sysconfdir}/uucp \
    1.28 +        --with-oldconfigdir=%{_oldconfigdir}/uucp
    1.29 +    make %{?_smp_mflags} -C unix libunix.a
    1.30 +    make %{?_smp_mflags} -C uuconf libuuconf.a
    1.31 +    make %{?_smp_mflags} -C lib libuucp.a
    1.32 +    make %{?_smp_mflags} cu
    1.33 +
    1.34 +%install
    1.35 +    rm -rf ${RPM_BUILD_ROOT}
    1.36 +    mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
    1.37 +    mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
    1.38 +    mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/uucp
    1.39 +    install -m 755 cu ${RPM_BUILD_ROOT}%{_bindir}
    1.40 +    install -m 644 cu.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
    1.41 +    install -m 644 sample/config ${RPM_BUILD_ROOT}%{_sysconfdir}/uucp/
    1.42 +    install -m 644 sample/sys1 ${RPM_BUILD_ROOT}%{_sysconfdir}/uucp/sys
    1.43 +    strip $RPM_BUILD_ROOT%{_bindir}/* 2>/dev/null || true
    1.44 +
    1.45 +%clean
    1.46 +    rm -rf ${RPM_BUILD_ROOT}
    1.47 +
    1.48 +%files
    1.49 +    %defattr(-,root,root,-)
    1.50 +    %config(noreplace) %{_sysconfdir}/uucp/*
    1.51 +    %{_bindir}/*
    1.52 +    %{_mandir}/man1/*
    1.53 +    %{_sysconfdir}/uucp/*
    1.54 +
    1.55 +%changelog
    1.56 +* Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.07-20101201
    1.57 +- Port the UUCP command to MeeGo 1.1

mercurial