rpms/dar/devel README.Fedora, NONE, 1.1 dar.spec, NONE, 1.1 man.dar.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Chris Petersen (xris) fedora-extras-commits at redhat.com
Wed Nov 15 21:37:00 UTC 2006


Author: xris

Update of /cvs/extras/rpms/dar/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19197/devel

Modified Files:
	.cvsignore sources 
Added Files:
	README.Fedora dar.spec man.dar.patch 
Log Message:
auto-import dar-2.3.1-3 on branch devel from dar-2.3.1-3.src.rpm


--- NEW FILE README.Fedora ---
Due to fedora policy and the apparent inability of the current version of
glibc to compile a true static binary, the dar-static package/binaries have
not been built or included with this package.  If you would like to build
static binaries, you can download the source RPM file from the Fedora Extras
repository and recompile it with "--with static" to enable the static binary
and library files.

-Chris Petersen, Fedora package maintainer, 2006-11-14


--- NEW FILE dar.spec ---
#
# Specfile for DAR, the disk archiver
#
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=210790
#

# Static build is disabled by default by fedora policy, but also because the
# latest versions of glibc don't seem to compile proper static binaries.  Use
# "--with static" to enable the static subpackage
%define with_static %{?_with_static: 1} %{?!_with_static: 0}

#
# Basic descriptive tags for this package:
#
Name:           dar
Version:        2.3.1
Release:        3%{?dist}
Summary:        Collection of scripts for making/restoring CD/DVD backups

URL:            http://dar.linux.free.fr/
License:        GPL
Group:          Applications/Archiving

################################################################################

Source:         http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:        README.Fedora

Patch:          man.dar.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

################################################################################

BuildRequires:  bzip2-devel
BuildRequires:  openssl-devel

Requires:       par2cmdline

################################################################################

%description
DAR is a command line tool to backup a directory tree and files. DAR is
able to make differential backups, split them over a set of disks or files
of a given size, use compression, filter files or subtrees to be saved or
not saved, directly access and restore given files. DAR is also able
to handle extented attributes, and can make remote backups through an
ssh session for example. Finally, DAR handles save and restore of hard
and symbolic links.

################################################################################

%package -n libdar
Group:      System Environment/Libraries
Summary:    Library providing support for the DAR API

%description -n libdar
Common library code for DAR.

################################################################################

%package -n libdar-devel
Group:      Development/Libraries
Summary:    Development files for libdar
Requires:   libdar = %{version}-%{release}

%description -n libdar-devel
This package contains the header files and libraries for developing
programs that use the DAR API (libdar).

################################################################################
# The following two subpackages are only built when enabled via "--with static"
################################################################################

%if %{with_static}

%package -n dar-static
Group:      Applications/System
Summary:    Statically linked version of dar

%description -n dar-static
Statically linked version of dar that can be installed onto backup disks for
easier file retrieval.

%package -n libdar-static-devel
Group:      Development/Libraries
Summary:    Statically linked dar library files

%description -nlibdar-static-devel
Statically linked version of dar libraries that can be installed onto backup
disks for easier file retrieval.

%endif

################################################################################

%prep
%setup -q

%patch -p0 -b .man

################################################################################

%build

# Options
%if %{with_static}
    STATIC=""
%else
    STATIC="--disable-dar-static --disable-static"
%endif

%configure --disable-build-html $STATIC

make %{?_smp_mflags}

################################################################################

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}

# Remove the libtool archive files
rm -f  $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig

# Delete the sample files that we can't seem to disable
rm -rf $RPM_BUILD_ROOT/%{_datadir}/dar/

# Remove the doc makefiles so they don't get installed along with the other files.
rm -f doc/Makefile*
rm -f doc/*/Makefile*

# Rename the documentation directory so it makes more sense after installation.
mv doc html

# Sample scripts should not be executable
chmod 0644 html/samples/*

# Install the fedora readme
cp -a %{SOURCE1} .

################################################################################

%clean
rm -rf $RPM_BUILD_ROOT

################################################################################

%post   -n libdar -p /sbin/ldconfig
%postun -n libdar -p /sbin/ldconfig


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc html/ ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO README.Fedora

%{_bindir}/dar
%{_bindir}/dar_cp
%{_bindir}/dar_manager
%{_bindir}/dar_slave
%{_bindir}/dar_xform
%{_mandir}/man1/*

################################################################################

%files -n libdar
%defattr(-,root,root,-)
%{_libdir}/*.so.*

################################################################################

%files -n libdar-devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so

################################################################################

%if %{with_static}

%files -n dar-static
%defattr(-,root,root,-)
%{_bindir}/dar_static

################################################################################

%files -n libdar-static-devel
%defattr(-,root,root,-)
%{_libdir}/*.a

################################################################################
%endif

%changelog

* Tue Nov 14 2006 Chris Petersen <rpm at forevermore.net>                  2.3.1-3
- Fix/standardize Requires/Provides for libdar and libdar-devel
- Remove redundant zlib-devel (covered by openssl-devel)
- Update README.Fedora with my name/date, as requested in the ticket
- Add a patch to fix a funky character in man/dar.1

* Fri Nov 04 2006 Chris Petersen <rpm at forevermore.net>                  2.3.1-2
- Add README.Fedora explaining why we do not include static binaries (upstream's request)
- Add libdar-static-devel subpackage to hold the *.a files
- Disable static subpackages by default, enabled via "--with static" for those who want to compile them

* Thu May 11 2006 Chris Petersen <rpm at forevermore.net>                  2.3.1-1
- Initial package, compiled from half a dozen third party packages


man.dar.patch:

--- NEW FILE man.dar.patch ---
--- man/dar.1.orig	2006-11-14 20:03:39.000000000 -0800
+++ man/dar.1	2006-11-14 20:04:08.000000000 -0800
@@ -338,7 +338,7 @@
  - a <date>, if -af option has been placed before -A on the command-line (or in a included file, see -B option). For more about that feature see -af option below.
 .TP 20
 -@, --aux-ref [<path>]/<basename>
-specifies an auxiliary archive of reference. This option is only available with -+ option (merging). Over -A option which is mandatory with -+ option, you may give a second archive of reference thanks to the -% option. This allows one to merge two archive in a single one. See also -$, -£ and -% for other options concerning auxiliary archive of reference.
+specifies an auxiliary archive of reference. This option is only available with -+ option (merging). Over -A option which is mandatory with -+ option, you may give a second archive of reference thanks to the -% option. This allows one to merge two archive in a single one. See also -$, -~ and -% for other options concerning auxiliary archive of reference.
 .TP 20
 -$, --aux-key [[<algo>]:]<string>
 same as -J but for the auxiliary archive of reference (-@ option).


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/dar/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	15 Nov 2006 21:35:21 -0000	1.1
+++ .cvsignore	15 Nov 2006 21:36:29 -0000	1.2
@@ -0,0 +1 @@
+dar-2.3.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/dar/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 Nov 2006 21:35:21 -0000	1.1
+++ sources	15 Nov 2006 21:36:29 -0000	1.2
@@ -0,0 +1 @@
+cdeb693c9c4a0adcdb39da67e0067d38  dar-2.3.1.tar.gz




More information about the scm-commits mailing list