File dar.spec of Package dar

#
# spec file for package dar (Version 2.3.6)
#
# Copyright (c) 2009 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++ libattr-devel libbz2-devel openssl-devel zlib-devel
Url:            http://dar.linux.free.fr/
License:        GPL v2 or later
Group:          System/Filesystems
Summary:        Backup and Restore Application
Version:        2.3.6
Release:        76
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.



Authors:
--------
    Denis Corbin <dar.linux@free.fr>

%package -n libdar-4
License:        GPL v2 or later
Summary:        Backup and Restore Application
Group:          System/Filesystems
Provides:       libdar = 2.3.3
Obsoletes:      libdar <= 2.3.3

%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.



Authors:
--------
    Denis Corbin <dar.linux@free.fr>

%package -n libdar-devel
License:        GPL v2 or later
Summary:        Backup and Restore Application
Group:          System/Filesystems
Requires:       libdar-4 = %{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.



Authors:
--------
    Denis Corbin <dar.linux@free.fr>

%prep
%setup -q
%patch

%build
autoreconf -f -i -v
%configure --disable-static --with-pic --datadir=%_defaultdocdir \
    --enable-examples \
    --enable-largefile \
    --disable-dar-static
%{__make} %{?jobs:-j%jobs}

%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
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%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)
%dir /usr/share/doc/packages/locale
%_libdir/libdar*.so.*

%files -n libdar-devel
%defattr(-,root,root)
/usr/include/dar
%_libdir/libdar*.so
%_libdir/pkgconfig/libdar*.pc

%changelog
* Wed Jan 14 2009 crrodriguez@suse.de
- remove static libraries and "la" files
* Sat Feb 02 2008 aj@suse.de
- Do not build test programs statically.
* Thu Jan 31 2008 aj@suse.de
- Remove check for old distribution.
- Remove duplicate files.
- Do not package .la files.
- Do not build dar-static to workaround glibc pthread linkage
  problem.
* Fri Jan 25 2008 adrian@suse.de
- fix open call with O_CREAT and without mode
* Fri Nov 09 2007 adrian@suse.de
- add missing #include
* Tue Nov 06 2007 adrian@suse.de
- fix building
- fix rpmlint errors
* Thu Nov 01 2007 coolo@suse.de
- compile with gcc 4.3
* Thu Nov 01 2007 coolo@suse.de
- update to 2.3.6
- changed displayed message when adding a hard link to an archive while
  performing a differential backup
- added back the possibility to use old blowfish implementation (bfw cipher)
- integrated optimization patch from Sonni Norlov
- updated Swedish translation by Peter Landgren
- updated French translation
- fixed broken Native Language Support in 2.3.x (where x<5)
  from 2.3.5 to 2.3.6
- fixed Makefile.am in src/dar_suite (removed "/" after $(DESTDIR))
- fixed bug in regex mask building when not using ordered masks
- fixing bug that led dar_manager to report no error while some files failed
  to be restored due to command-line for dar being too large.
- fixed bug met when user aborts operation while dar is finalizing archive creation [SF #1800507]
- fixed problem with execvp when dar_manager launches dar
* Fri Jul 06 2007 adrian@suse.de
- update to version 2.3.4
  * fixes a weakness in blowfish encryption (#289994)
  * hard link handling bugfix (2.3.3)
- rename libdar package to libdar-4
* Sun Jun 17 2007 ro@suse.de
- avoid string compare with char literal
* Mon Apr 02 2007 adrian@suse.de
- add libzz2-devel to BuildRequires
- fix dependencies of -devel package
* Sat Mar 31 2007 rguenther@suse.de
- add zlib-devel BuildRequires
* Tue Jan 16 2007 adrian@suse.de
- adding strong encryption support
- build with extended attributes support again (broken configure check)
* Tue Jan 09 2007 adrian@suse.de
- update to version 2.3.2 again (kdar seems to be dead and is dropped)
* Tue Nov 14 2006 adrian@suse.de
- initialize variable (#188286)
* Tue Oct 17 2006 dmueller@suse.de
- remove upx require
* Sun Sep 10 2006 dmueller@suse.de
- use RPM_OPT_FLAGS
* Mon Jul 10 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jul 10 2006 aj@suse.de
- Go back to version 2.2.6 since the only user of dar does not build
  with the new dar package.
* Thu May 18 2006 adrian@suse.de
- update to version 2.3.0 with lots of new features.
- added user_interaction::pause2() method
- added the snapshot feature
- added the Cache Directory Tagging detection feature
- adapted Wesley's patch for a pkgconfig for libdar
- added -[ and -] options (file selection from file listing)
  Important consequence for libdar user programs:
  the fs_root argument is now expanded to full absolute path inside libdar,
  thus the mask you will give for path inclusion/exclusion (the "subtree" argument)
  will be used against full absolute path of files under consideration
  for the operation. Assuming you have fs_root=tmp/A and the current
  directory is /tmp, your mask will be used against strings like
  /var/tmp/A/some/file. (instead of tmp/A/some/file as in the previous API
  version). Things are equal if the fs_root is given an absolute path.
- changed archive format to "05". Due to complete review of EA management.
- upon some signal reception, dar aborts the backup nicely, producing a
  completely formatted archive will all the file saved so far. This archive can
  be take as reference for a further backup to continue the operation at a later
  time.
- dar_manager aborts properly upon certain signal reception (do not let the database
  partially updated).
- dar_slave and dar_xform now recognize when a slicename is given in place of a basename
- reviewed thread_cancellation (API change) for it be possible to cancel several thread at the same time
- prevent some dead-lock situation that can occur when a signal is received inside a critical section
- dar_cp, dar_xform and dar_slave also abort nicely upon signal reception
- dar_manager can now restore files based on a given date (not always the most recent version)
- dar_manager now has an interactive mode (-i option)
- change in API, the warning() method need not be overwritten, but the new protected method
  inherited_warning() must be inherited in its place (same function, same prototype
  as the original warning() method).
- dar_manager features are now part of libdar. API has been completed with theses new features
- added the "last_slice" context (%%c with -E option) when creating an archive
- dar now check a file has not been modified while it was reading it, if so it reports a warning and returns a specific exit code
- remove included gettext from the package (it is more a source of conflict with external gettext and if somebody needs internationalization better is to install libintl/gettext on its own).
- added George Foot feedback about the good backup practice sort guide.
- added -e option to dar_manager
- added the progressive_report feature in the API
- dar can now pause every N slice where N >= 1
- integrated Dave Vasilevsky's patch to support Extended Attributes and file forks under MacOS X
- added method in API for external program be able to list dar_manager databases, their file contents and the statistics
- added the merge/sub-archive feature
- remove [list of path] from command line (-g option is now mandatory)
- added regex expression in filters (-ar/-ag options)
- added -ak option
- added the --comparison-field option (extension of the --ignore-owner option aka -O option)
- added the -af option (backup files more recent than a given date, others are keept as already saved)
- dar now take care that an escape character can be sent when pressing the arrow keys and avoid considering them in this situation
- dar will no refuse to abort if user presses escape when dar asks the user to be ready to write to a new slice
- adapted Wesley Legette's patch for an xml archive listing
- added 'InRef' status for EA (same meaning as the one for file's data)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 22 2006 cthiel@suse.de
- 2.2.6 update
* Mon Jan 16 2006 dmueller@suse.de
- 2.2.5 update
* Mon Sep 26 2005 mls@suse.de
- make libdar-devel package require base package
* Mon Jul 25 2005 mmj@suse.de
- fix build
* Fri Jul 15 2005 dmueller@suse.de
- 2.2.2 update
* Mon Apr 25 2005 adrian@suse.de
- fix compile on 64bit with gcc 4
* Mon Apr 11 2005 adrian@suse.de
- update to version 2.2.1
* Mon Jan 31 2005 adrian@suse.de
- update to version 2.2.0
  * thread safe lib
* Wed Nov 17 2004 adrian@suse.de
- update to version 2.1.5
  * gcc 3.4 support, -O1 workaround isn't needed anymore
* Thu Jul 15 2004 adrian@suse.de
- update to version 2.1.4
  * fixes ACL support (#42966)
* Sun Mar 07 2004 adrian@suse.de
- update to version 2.1.1
* Wed Feb 11 2004 adrian@suse.de
- update to final 2.1.0 version
* Sun Feb 08 2004 adrian@suse.de
- update to version 2.1.0_pre5
- optimise only with -O1, that fixes all missing symbol problems ...
* Tue Jan 13 2004 adrian@suse.de
- update to version 2.1.0_pre2
- fix compile issues
* Fri Jan 09 2004 adrian@suse.de
- support and require UPX compression on ia32
* Mon Jan 05 2004 adrian@suse.de
- initial package of version 2.0.4
openSUSE Build Service is sponsored by