cu/cu.spec

Fri, 11 Mar 2011 21:41:16 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:41:16 +0100
changeset 3
d4b4127cd2bb
permissions
-rw-r--r--

Import unmodified vendor specs for introduction into repository.

michael@2 1 Summary: The UUCP cu command calls up another system
michael@2 2 Vendor: Europalab Software
michael@2 3 Name: cu
michael@2 4 Version: 1.07
michael@2 5 Release: 20101201
michael@2 6 License: GPLv2+
michael@2 7 Group: Applications/Communications
michael@2 8 URL: http://www.gnu.org/software/uucp/
michael@2 9 Source0: ftp://ftp.gnu.org/pub/gnu/uucp/uucp-%{version}.tar.gz
michael@2 10 Patch0: http://archive.ubuntu.com/ubuntu/pool/main/u/uucp/uucp_1.07-20build1.diff.gz
michael@2 11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
michael@2 12
michael@2 13 %description
michael@2 14 The uucp command copies files between systems. Uucp is primarily used
michael@2 15 by remote machines downloading and uploading email and news files to
michael@2 16 local machines.
michael@2 17
michael@2 18 %prep
michael@2 19 %setup -q -n uucp-%{version}
michael@2 20 %patch0 -p1
michael@2 21
michael@2 22 %build
michael@2 23 %configure \
michael@2 24 --with-newconfigdir=%{_sysconfdir}/uucp \
michael@2 25 --with-oldconfigdir=%{_oldconfigdir}/uucp
michael@2 26 make %{?_smp_mflags} -C unix libunix.a
michael@2 27 make %{?_smp_mflags} -C uuconf libuuconf.a
michael@2 28 make %{?_smp_mflags} -C lib libuucp.a
michael@2 29 make %{?_smp_mflags} cu
michael@2 30
michael@2 31 %install
michael@2 32 rm -rf ${RPM_BUILD_ROOT}
michael@2 33 mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
michael@2 34 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
michael@2 35 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/uucp
michael@2 36 install -m 755 cu ${RPM_BUILD_ROOT}%{_bindir}
michael@2 37 install -m 644 cu.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
michael@2 38 install -m 644 sample/config ${RPM_BUILD_ROOT}%{_sysconfdir}/uucp/
michael@2 39 install -m 644 sample/sys1 ${RPM_BUILD_ROOT}%{_sysconfdir}/uucp/sys
michael@2 40 strip $RPM_BUILD_ROOT%{_bindir}/* 2>/dev/null || true
michael@2 41
michael@2 42 %clean
michael@2 43 rm -rf ${RPM_BUILD_ROOT}
michael@2 44
michael@2 45 %files
michael@2 46 %defattr(-,root,root,-)
michael@2 47 %config(noreplace) %{_sysconfdir}/uucp/*
michael@2 48 %{_bindir}/*
michael@2 49 %{_mandir}/man1/*
michael@2 50 %{_sysconfdir}/uucp/*
michael@2 51
michael@2 52 %changelog
michael@2 53 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.07-20101201
michael@2 54 - Port the UUCP command to MeeGo 1.1

mercurial