Group :: Arquivamento/Compressão
RPM: xar
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: xar
Version: 1.6.1
Release: alt4
Summary: The XAR project aims to provide an easily extensible archive format
License: BSD-3-Clause
Group: Archiving/Compression
Url: https://github.com/mackyle/xar
Source: %name-%version.tar
#patch: xar-1.5.3-alt-config.patch
Patch1: xar-1.5.3-ext2.patch
Patch2: xar-1.6.1-openssl-1.1.patch
Requires: lib%name = %version-%release
ExclusiveArch: %ix86 x86_64 %e2k
# Automatically added by buildreq on Sat Dec 17 2011
BuildRequires: bzlib-devel libacl-devel libe2fs-devel libssl-devel libxml2-devel xsltproc zlib-devel liblzma-devel
%description
The XAR project aims to provide an easily extensible archive format.
Important design decisions include an easily extensible XML table of
contents for random access to archived files, storing the toc at the
beginning of the archive to allow for efficient handling of streamed
archives, the ability to handle files of arbitrarily large sizes,
the ability to choose independent encodings for individual files in
the archive, the ability to store checksums for individual files in
both compressed and uncompressed form, and the ability to query the
table of content's rich meta-data.
Please note that the code quality of this project is quite poor.
Do not expect that error conditions would be handled properly.
%package -n lib%name
Summary: The eXtensible ARchiver runtime library
Group: System/Libraries
%description -n lib%name
The XAR project aims to provide an easily extensible archive format.
This package contains the eXtensible ARchiver runtime library.
Please note that the code quality of this project is quite poor.
Do not expect that error conditions would be handled properly.
%package -n lib%name-devel
Summary: Development files for the eXtensible ARchiver library
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
The XAR project aims to provide an easily extensible archive format.
This package contains headers and other development files required to
build XAR-based software.
%prep
%setup
#%patch -p1
%patch1 -p1
%patch2 -p1
# get rid of RPATH.
sed -ri 's/(RPATH=)".*/\1/' xar/configure.ac
sed '/^\. functions/iset -x' -i xar/test/*
sed 's|^\. functions|. ./functions|' -i xar/test/*
%build
cd xar
autoconf
%configure --disable-static --enable-autogen
%make_build
%install
cd xar
%makeinstall_std
%check
cd xar
# prepare test data
cp -a /bin test-bin || true
%__subst "s|/bin$|$(pwd)/test-bin|g" test/*
%__subst "s|bin |test-bin |g" test/*
%__subst "s| bin$| test-bin|g" test/*
cd test
export "PATH=%buildroot%_bindir:$PATH"
export LD_LIBRARY_PATH="%buildroot%_libdir"
xar --help
find .
./checksums
./compression
./data
./hardlink
./heap
%files
%_bindir/*
%_man1dir/*
%doc xar/LICENSE xar/NEWS xar/INSTALL xar/ChangeLog
%files -n lib%name
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.6.1
Release: alt4
Summary: The XAR project aims to provide an easily extensible archive format
License: BSD-3-Clause
Group: Archiving/Compression
Url: https://github.com/mackyle/xar
Source: %name-%version.tar
#patch: xar-1.5.3-alt-config.patch
Patch1: xar-1.5.3-ext2.patch
Patch2: xar-1.6.1-openssl-1.1.patch
Requires: lib%name = %version-%release
ExclusiveArch: %ix86 x86_64 %e2k
# Automatically added by buildreq on Sat Dec 17 2011
BuildRequires: bzlib-devel libacl-devel libe2fs-devel libssl-devel libxml2-devel xsltproc zlib-devel liblzma-devel
%description
The XAR project aims to provide an easily extensible archive format.
Important design decisions include an easily extensible XML table of
contents for random access to archived files, storing the toc at the
beginning of the archive to allow for efficient handling of streamed
archives, the ability to handle files of arbitrarily large sizes,
the ability to choose independent encodings for individual files in
the archive, the ability to store checksums for individual files in
both compressed and uncompressed form, and the ability to query the
table of content's rich meta-data.
Please note that the code quality of this project is quite poor.
Do not expect that error conditions would be handled properly.
%package -n lib%name
Summary: The eXtensible ARchiver runtime library
Group: System/Libraries
%description -n lib%name
The XAR project aims to provide an easily extensible archive format.
This package contains the eXtensible ARchiver runtime library.
Please note that the code quality of this project is quite poor.
Do not expect that error conditions would be handled properly.
%package -n lib%name-devel
Summary: Development files for the eXtensible ARchiver library
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
The XAR project aims to provide an easily extensible archive format.
This package contains headers and other development files required to
build XAR-based software.
%prep
%setup
#%patch -p1
%patch1 -p1
%patch2 -p1
# get rid of RPATH.
sed -ri 's/(RPATH=)".*/\1/' xar/configure.ac
sed '/^\. functions/iset -x' -i xar/test/*
sed 's|^\. functions|. ./functions|' -i xar/test/*
%build
cd xar
autoconf
%configure --disable-static --enable-autogen
%make_build
%install
cd xar
%makeinstall_std
%check
cd xar
# prepare test data
cp -a /bin test-bin || true
%__subst "s|/bin$|$(pwd)/test-bin|g" test/*
%__subst "s|bin |test-bin |g" test/*
%__subst "s| bin$| test-bin|g" test/*
cd test
export "PATH=%buildroot%_bindir:$PATH"
export LD_LIBRARY_PATH="%buildroot%_libdir"
xar --help
find .
./checksums
./compression
./data
./hardlink
./heap
%files
%_bindir/*
%_man1dir/*
%doc xar/LICENSE xar/NEWS xar/INSTALL xar/ChangeLog
%files -n lib%name
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%changelog
…
Todas as alterações você pod ver aqui