]> git.pld-linux.org Git - packages/p7zip.git/commitdiff
- 4.12 auto/ac/p7zip-4_12-1
authorwolf <wolf@pld-linux.org>
Fri, 26 Nov 2004 17:31:20 +0000 (17:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    p7zip.spec -> 1.7

p7zip.spec

index cd824c2903f13a1f9e3d598738ad8ff79e69a75f..bbcff7e4fd8612d57ae02b1bd879e5f67284c389 100644 (file)
@@ -1,12 +1,12 @@
 Summary:       File archiver with highest compression ratio
 Summary(pl):   Paker plików z najwy¿szym stopniem kompresji
 Name:          p7zip
-Version:       0.91
-Release:       2
+Version:       4.12
+Release:       1
 License:       LGPL
 Group:         Applications/Archiving
-Source0:       http://dl.sourceforge.net/p7zip/%{name}_%{version}.tar.bz2
-# Source0-md5: 8c6a7b49f360917cbdd8391f3a926a19
+Source0:       http://dl.sourceforge.net/p7zip/%{name}_%{version}_src.tar.bz2
+# Source0-md5: 82d4859d8e3b30a54ac5ad6a12b16e10
 Patch0:                %{name}-opt.patch
 URL:           http://sourceforge.net/projects/p7zip
 BuildRequires: libstdc++-devel
@@ -55,24 +55,28 @@ wersja obs
 %setup -q -n %{name}_%{version}
 %patch0 -p1
 
+# big vs little endian
+%ifarch ppc
+cp -f makefile.linux_ppc makefile.machine
+%else
+cp -f makefile.linux_x86 makefile.machine
+%endif
+
 cd 7zip/UI/Common
-sed -e "s@Formats@%{_libdir}/%{name}/&@" ArchiverInfo.cpp > tmp
-mv -f tmp ArchiverInfo.cpp
+sed -i -e "s@Formats@%{_libdir}/%{name}/&@" ArchiverInfo.cpp
 cd ../../Archive/Common
-sed -e "s@return GetBaseFolderPrefix() + TEXT(\"Codecs\\\\\\\\\");@return TEXT(\"%{_libdir}/%{name}/Codecs/\");@" CodecsPath.cpp > tmp
-mv -f tmp CodecsPath.cpp
+sed -i -e "s@return GetBaseFolderPrefix() + TEXT(\"Codecs\\\\\\\\\");@return TEXT(\"%{_libdir}/%{name}/Codecs/\");@" CodecsPath.cpp
 
 %build
-%{__make} \
-       CC_="%{__cc}" \
-       CXX_="%{__cxx}" \
-       OPTFLAGS="%{rpmcflags}"
+%{__make} all2 \
+       _CC="%{__cc} %{rpmcflags}" \
+       _CXX="%{__cxx} %{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats}}
 
-install bin/7z{,a} $RPM_BUILD_ROOT%{_bindir}
+install bin/7z* $RPM_BUILD_ROOT%{_bindir}
 install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
 install bin/Formats/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Formats
 
@@ -81,8 +85,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc html ChangeLog README TODO
+%doc DOCS/{MANUAL,{7zFormat,Methods,history,lzma,readme}.txt} ChangeLog README TODO
 %attr(755,root,root) %{_bindir}/7z
+%attr(755,root,root) %{_bindir}/7zCon.sfx
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/Codecs
 %attr(755,root,root) %{_libdir}/%{name}/Codecs/*
This page took 0.027351 seconds and 4 git commands to generate.