File dar.spec of Package dar
#
# spec file for package dar
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dar
BuildRequires: e2fsprogs-devel gcc-c++ gettext-tools libattr-devel libbz2-devel libtool openssl-devel pkg-config zlib-devel
Url: http://dar.linux.free.fr/
License: GPLv2+
Group: System/Filesystems
Summary: Backup and Restore Application
Version: 2.3.10
Release: 6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %name-%version.tar.bz2
Patch: %name.diff
Recommends: par
%description
Dar (Disk Archive) is a hardware-independent backup solution. Dar uses
catalogs (unlike tar),which it makes it possible to extract a single
file without having to read the entire archive. It is also possible to
create incremental backups. Dar archives can also be created or used
with the libdar library (for example, with KDar, a KDE application).
This package contains the command line tools and documentation.
%package -n libdar-4
License: GPLv2+
Summary: Backup and Restore Application
Group: System/Filesystems
Provides: libdar = 2.3.10
Obsoletes: libdar < 2.3.10
%description -n libdar-4
Dar stands for Disk ARchive and is a hardware independent backup
solution. Dar uses catalogs (unlike tar), so it is possible to extract
a single file without having to read the whole archive, and it is also
possible to create incremental backups.
Dar archives can also be created, or used, via the libdar library (for
example with KDar, a KDE application).
This package contains the library used by Dar and KDar.
%package -n libdar-devel
License: GPLv2+
Summary: Backup and Restore Application
Group: Development/Languages/C and C++
Requires: libdar-4 = %{version} libdar = %{version}
Requires: glibc-devel openssl-devel libbz2-devel libattr-devel zlib-devel
%description -n libdar-devel
Dar stands for Disk ARchive and is a hardware independent backup
solution. Dar uses catalogs (unlike tar), so it is possible to extract
a single file without having to read the whole archive, and it is also
possible to create incremental backups.
Dar archives can also be created, or used, via the libdar library (with
KDar, a KDE application, for example).
This package contains the library used by Dar and KDar.
%prep
%setup -q
%patch
%build
autoreconf -f -i -v
%configure --with-pic --datadir=%_defaultdocdir \
--enable-largefile \
--disable-dar-static
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
install -m 0644 AUTHORS COPYING NEWS TODO ChangeLog \
$RPM_BUILD_ROOT/%_defaultdocdir/%name/
# Remove duplicate files
rm $RPM_BUILD_ROOT/%_defaultdocdir/%name/dar-differential-backup-mini-howto.*.html
# Remove la files
rm $RPM_BUILD_ROOT/%_libdir/libdar*.la
# Remove .a files
rm $RPM_BUILD_ROOT/%_libdir/libdar*.a
# Move the sample scripts to the correct location (otherwise rpmlint will error due to these scripts having execute perms)
mkdir $RPM_BUILD_ROOT/%_defaultdocdir/%name/examples/
mv $RPM_BUILD_ROOT/%_defaultdocdir/%name/samples/* $RPM_BUILD_ROOT/%_defaultdocdir/%name/examples
%find_lang %name
%post -n libdar-4 -p /sbin/ldconfig
%postun -n libdar-4 -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/bin/*
%_mandir/man1/*
%doc %_defaultdocdir/%name
%files -n libdar-4 -f %name.lang
%defattr(-,root,root)
/usr/share/locale/*/LC_MESSAGES/*dar*
%_libdir/libdar*.so.*
%files -n libdar-devel
%defattr(-,root,root)
/usr/include/dar
%_libdir/libdar*.so
%_libdir/pkgconfig/libdar*.pc
%changelog