67 lines
1.8 KiB
RPMSpec
67 lines
1.8 KiB
RPMSpec
|
#
|
||
|
# spec file for package rsnapshot (Version 1.3.0)
|
||
|
#
|
||
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
%define mainversion 1.4
|
||
|
%define subversion 4
|
||
|
Name: freedup
|
||
|
URL: http://freedup.org/
|
||
|
License: GNU General Public License (GPL)
|
||
|
Group: Productivity/Archiving/Backup
|
||
|
Version: %{mainversion}.%{subversion}
|
||
|
Release: 0
|
||
|
Summary: Links substantially identical, duplicate files to save file system space.
|
||
|
Source: %{name}-%{mainversion}-%{subversion}-src.tar.bz2
|
||
|
Patch1: %{name}-%{mainversion}-%{subversion}.patch
|
||
|
#BuildRequires:
|
||
|
#Requires:
|
||
|
Autoreqprov: on
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
|
||
|
%description
|
||
|
Freedup eliminates duplicate files by linking them, and thus reduces the amount
|
||
|
of used disk space within one or more file systems. By default, hardlinks are
|
||
|
used on a single device, symbolic links when the devices differ. A set of
|
||
|
options allows you to modify the methods of file comparison, the hash functions,
|
||
|
the linking behavior, and the reporting style. You may use batch or interactive
|
||
|
mode. Freedup usually only considers identical files, but when comparing audio
|
||
|
or graphics files, you may elect to ignore the tags. Multimedia files often are
|
||
|
a good target for deduplication.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -n %{name}-%{mainversion}
|
||
|
%patch1
|
||
|
|
||
|
rm %{name}
|
||
|
|
||
|
%build
|
||
|
make
|
||
|
|
||
|
%install
|
||
|
%makeinstall \
|
||
|
PRE=%{buildroot}
|
||
|
|
||
|
chmod -x %{buildroot}/%{_mandir}/man1/freedup.1.gz
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && %__rm -rf "%{buildroot}";
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/freedup
|
||
|
%{_mandir}/man1/freedup.1.gz
|
||
|
|
||
|
|
||
|
%changelog
|