cu/cu.spec

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

mercurial