|
|
f517ff6 |
Name: lzma-sdk457
|
|
|
f517ff6 |
Version: 4.57
|
|
|
a3ac14e |
Release: 8%{?dist}
|
|
|
f517ff6 |
Summary: SDK for lzma compression
|
|
|
f517ff6 |
Group: Applications/Archiving
|
|
|
f517ff6 |
License: LGPLv2+
|
|
|
f517ff6 |
URL: http://sourceforge.net/projects/sevenzip/
|
|
|
f517ff6 |
Source0: http://downloads.sourceforge.net/sevenzip/lzma457.tar.bz2
|
|
|
f517ff6 |
Source1: http://www.gnu.org/licenses/lgpl-2.1.txt
|
|
|
f517ff6 |
Patch0: lzma-sdk-4.5.7-sharedlib.patch
|
|
|
c5d9e35 |
Patch1: lzma-sdk-4.5.7-format-security-fix.patch
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%description
|
|
|
f517ff6 |
LZMA SDK provides the documentation, samples, header files, libraries,
|
|
|
f517ff6 |
and tools you need to develop applications that use LZMA compression.
|
|
|
f517ff6 |
|
|
|
f517ff6 |
LZMA is default and general compression method of 7z format
|
|
|
f517ff6 |
in 7-Zip compression program (7-zip.org). LZMA provides high
|
|
|
f517ff6 |
compression ratio and very fast decompression.
|
|
|
f517ff6 |
|
|
|
f517ff6 |
LZMA is an improved version of famous LZ77 compression algorithm.
|
|
|
f517ff6 |
It was improved in way of maximum increasing of compression ratio,
|
|
|
f517ff6 |
keeping high decompression speed and low memory requirements for
|
|
|
f517ff6 |
decompressing.
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%package devel
|
|
|
f517ff6 |
Summary: Development libraries and headers for %{name}
|
|
|
f517ff6 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%description devel
|
|
|
f517ff6 |
Development libraries and headers for %{name}.
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%prep
|
|
|
f517ff6 |
%setup -q -c -n lzma457
|
|
|
f517ff6 |
%patch0 -p1 -b .shared
|
|
|
c5d9e35 |
%patch1 -p1 -b .format-security
|
|
|
f517ff6 |
# Fix FSF mailing address
|
|
|
f517ff6 |
rm LGPL.txt
|
|
|
f517ff6 |
cp %{SOURCE1} LGPL.txt
|
|
|
f517ff6 |
rm lzma.exe
|
|
|
f517ff6 |
|
|
|
f517ff6 |
for f in .h .c .cpp .dsw .dsp .java .cs .txt makefile; do
|
|
|
f517ff6 |
find . -iname "*$f" | xargs chmod -x
|
|
|
f517ff6 |
done
|
|
|
f517ff6 |
|
|
|
f517ff6 |
# correct end-of-line encoding
|
|
|
f517ff6 |
sed -i 's/\r//' *.txt
|
|
|
f517ff6 |
|
|
|
f517ff6 |
for i in \
|
|
|
f517ff6 |
7zFormat.txt \
|
|
|
f517ff6 |
CS/7zip/Compress/LzmaAlone/LzmaAlone.sln \
|
|
|
f517ff6 |
7zC.txt \
|
|
|
f517ff6 |
CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj \
|
|
|
f517ff6 |
CPP/7zip/Bundles/Alone7z/resource.rc \
|
|
|
f517ff6 |
history.txt \
|
|
|
f517ff6 |
lzma.txt \
|
|
|
f517ff6 |
CPP/7zip/Compress/LZMA_Alone/makefile.gcc \
|
|
|
f517ff6 |
CPP/Build.mak \
|
|
|
f517ff6 |
CPP/7zip/Bundles/Format7zR/resource.rc \
|
|
|
f517ff6 |
C/Archive/7z/makefile.gcc \
|
|
|
f517ff6 |
CPP/7zip/Archive/Archive.def \
|
|
|
f517ff6 |
CPP/7zip/Bundles/Format7zExtractR/resource.rc \
|
|
|
f517ff6 |
CPP/7zip/Archive/Archive2.def \
|
|
|
f517ff6 |
CPP/7zip/MyVersionInfo.rc \
|
|
|
f517ff6 |
Methods.txt; do
|
|
|
f517ff6 |
iconv -f iso-8859-1 -t utf-8 $i > $i.utf8
|
|
|
f517ff6 |
touch -r $i $i.utf8
|
|
|
f517ff6 |
mv $i.utf8 $i
|
|
|
f517ff6 |
done
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%build
|
|
|
f517ff6 |
cd CPP/7zip/Compress/LZMA_Alone
|
|
|
f517ff6 |
make -f makefile.gcc clean all CXX="g++ %{optflags} -fPIC" CXX_C="gcc %{optflags} -fPIC"
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%install
|
|
|
f517ff6 |
mkdir -p %{buildroot}%{_libdir}
|
|
|
f517ff6 |
install -m0755 CPP/7zip/Compress/LZMA_Alone/liblzmasdk457.so.4.5.7 %{buildroot}%{_libdir}
|
|
|
f517ff6 |
pushd %{buildroot}%{_libdir}
|
|
|
f517ff6 |
ln -s liblzmasdk457.so.4.5.7 liblzmasdk457.so.4
|
|
|
f517ff6 |
ln -s liblzmasdk457.so.4.5.7 liblzmasdk457.so
|
|
|
f517ff6 |
popd
|
|
|
f517ff6 |
mkdir -p %{buildroot}/%{_includedir}/lzma457/
|
|
|
f517ff6 |
find -iname '*.h' | xargs -I {} install -m0644 -D {} %{buildroot}/%{_includedir}/lzma457/{}
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%post -p /sbin/ldconfig
|
|
|
f517ff6 |
%postun -p /sbin/ldconfig
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%files
|
|
|
f517ff6 |
%doc lzma.txt history.txt LGPL.txt
|
|
|
f517ff6 |
%{_libdir}/liblzmasdk457.so.*
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%files devel
|
|
|
f517ff6 |
%doc 7z*.txt Methods.txt
|
|
|
f517ff6 |
%{_includedir}/lzma457/
|
|
|
f517ff6 |
%{_libdir}/liblzmasdk457.so
|
|
|
f517ff6 |
|
|
|
f517ff6 |
%changelog
|
|
|
a3ac14e |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.57-8
|
|
|
a3ac14e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
a3ac14e |
|
|
|
eab5c18 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.57-7
|
|
|
eab5c18 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
eab5c18 |
|
|
|
c5d9e35 |
* Fri Feb 21 2014 Tom Callaway <spot@fedoraproject.org> - 4.57-6
|
|
|
c5d9e35 |
- fix compile with -Werror=format-security
|
|
|
c5d9e35 |
|
|
|
57129cf |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.57-5
|
|
|
57129cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
57129cf |
|
|
|
1b2fdb0 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.57-4
|
|
|
1b2fdb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
1b2fdb0 |
|
|
|
d4591be |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.57-3
|
|
|
d4591be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d4591be |
|
|
|
ace7ace |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.57-2
|
|
|
ace7ace |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
ace7ace |
|
|
|
f517ff6 |
* Mon Oct 17 2011 Tom Callaway <spot@fedoraproject.org> - 4.57-1
|
|
|
f517ff6 |
- make 4.57 package for physfs/physfs2
|