File safecat.spec of Package safecat

#
# spec file for safecat
#
Name:           safecat
BuildRequires:  cpp groff
License:        BSD License (BSD)
%define _version 1.13
Version:        1.13.1
Summary: 	Write Data Safely to a Directory
Release: 	1
Source:         %{name}-%{_version}.tar.gz
Group: 		Productivity/File utilities	
URL: 		http://jeenyus.net/linux/software/safecat.html
BuildRoot:      %{_tmppath}/%{name}-%{version}-build  

%description
safecat implements Dan Bernstein's maildir algorithm, copying standard input
safely to a specified directory. With safecat, the user is offered two
assurances. First, if safecat returns successfully, then all data is guaranteed
to be saved in the destination directory. Second, if a file exists in the
destination directory, placed there by safecat, then the file is guaranteed to
be complete.

%prep  
%setup -n %{name}-%{_version}
mv $RPM_BUILD_DIR/%{name}-%{_version}/conf-root $RPM_BUILD_DIR/%{name}-%{_version}/conf-root.old
awk "{ sub(/\/usr\/local/, \"$RPM_BUILD_ROOT\/usr\"); print; }" $RPM_BUILD_DIR/%{name}-%{_version}/conf-root.old > $RPM_BUILD_DIR/%{name}-%{_version}/conf-root 

%build
make

%install
make setup check
rm -rf $RPM_BUILD_ROOT/usr/man/cat1 $RPM_BUILD_ROOT/usr/man/man1 $RPM_BUILD_ROOT/usr/bin/maildir

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGES INSTALL README
%{_bindir}/*
 
%changelog -n safecat
* Wed Dec 05 2012 thb@documentfoundation.org 1.13.2
- added groff dependency
* Mon May 16 2011 thb@documentfoundation.org 1.13.1
- initial packaging
openSUSE Build Service is sponsored by