generated from smedev/Template-for-SMEServer-Core-upstream
60 lines
1.3 KiB
RPMSpec
60 lines
1.3 KiB
RPMSpec
%define name tnef
|
|
%define version 1.0
|
|
%define release 1
|
|
Summary: This is what tnef does.
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: %{release}%{?dist}
|
|
Source: %{name}-%{version}.tar.gz
|
|
License: GNU GPL version 2
|
|
Group: SMEserver/addon
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
Prefix: %{_prefix}
|
|
BuildArchitectures: noarch
|
|
BuildRequires: smeserver-devtools
|
|
Requires: smeserver-release >= 11.0
|
|
AutoReqProv: no
|
|
|
|
%description
|
|
This application provides a way to unpack Microsoft MS-TNEF MIME attachments.
|
|
It operates like tar in order to unpack files of type "application/ms-tnef",
|
|
which may have been placed into the MS-TNEF attachment instead of being
|
|
attached separately.
|
|
|
|
Such files may have attachment names similar to WINMAIL.DAT
|
|
|
|
%changelog
|
|
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
|
- Initial code - create RPM [SME:99999]
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
|
rm -f %{name}-%{version}-filelist
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
> %{name}-%{version}-filelist
|
|
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
|
#--dir <dir> 'attr(755,user,grp)' \
|
|
#--file <file> 'attr(755,root,root)' \
|
|
|
|
%clean
|
|
cd ..
|
|
rm -rf %{name}-%{version}
|
|
|
|
%pre
|
|
|
|
%preun
|
|
|
|
%post
|
|
|
|
%postun
|
|
#uninstall
|
|
%files -f %{name}-%{version}-filelist
|
|
%defattr(-,root,root)
|