summaryrefslogtreecommitdiff
path: root/packaging/sharutils.spec
blob: b391efd9819d0895bec7e527def980b03898d02e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
# Do not Edit! Generated by:
# spectacle version 0.13~pre
#
# >> macros
# << macros

Name:       sharutils
Summary:    The GNU shar utilities for packaging and unpackaging shell archives
Version:    4.7
Release:    3
Group:      Applications/Archiving
License:    GPL
URL:        http://www.gnu.org/software/sharutils/
Source0:    ftp://ftp.gnu.org/gnu/sharutils/REL-%{version}/sharutils-%{version}.tar.bz2
Source1001: packaging/sharutils.manifest 
BuildRequires:  gettext

BuildRoot:  %{_tmppath}/%{name}-%{version}-build

%description
The sharutils package contains the GNU shar utilities, a set of tools
for encoding and decoding packages of files (in binary or text format)
in a special plain text format called shell archives (shar).  This
format can be sent through e-mail (which can be problematic for regular
binary files).  The shar utility supports a wide range of capabilities
(compressing, uuencoding, splitting long files for multi-part
mailings, providing checksums), which make it very flexible at
creating shar files.  After the files have been sent, the unshar tool
scans mail messages looking for shar files.  Unshar automatically
strips off mail headers and introductory text and then unpacks the
shar files.

Install sharutils if you send binary files through e-mail.


%prep
%setup -q -n %{name}-%{version}
# >> setup
# << setup

%build
cp %{SOURCE1001} .
# >> build pre
# << build pre

%configure --disable-static
# Call make instruction with smp support
make %{?jobs:-j%jobs}

# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install

# >> install post
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
chmod 644 AUTHORS ChangeLog COPYING NEWS README THANKS TODO
# << install post
%find_lang %{name}

mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
for keyword in LICENSE COPYING COPYRIGHT;
do
	for file in `find %{_builddir} -name $keyword`;
	do
		cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
		echo "";
	done;
done

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%manifest sharutils.manifest
%defattr(-,root,root,-)
# >> files
%doc AUTHORS COPYING NEWS README THANKS TODO
%{_datadir}/license/%{name}
%{_bindir}/*
%doc %{_infodir}/*info*
%doc %{_mandir}/*/*
# << files