SPECS (AC-branch): p7zip.spec - up to 4.48 (merged from HEAD) - ...

arvenil arvenil at pld-linux.org
Tue Jul 17 19:50:53 CEST 2007


Author: arvenil                      Date: Tue Jul 17 17:50:53 2007 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
 - up to 4.48 (merged from HEAD)
 - build and works on AC amd64, i will ask for ac-test build
 - 0.1 (until patch update)
 

---- Files affected:
SPECS:
   p7zip.spec (1.28.2.1 -> 1.28.2.2) 

---- Diffs:

================================================================
Index: SPECS/p7zip.spec
diff -u SPECS/p7zip.spec:1.28.2.1 SPECS/p7zip.spec:1.28.2.2
--- SPECS/p7zip.spec:1.28.2.1	Wed May 10 13:01:36 2006
+++ SPECS/p7zip.spec	Tue Jul 17 19:50:48 2007
@@ -1,14 +1,16 @@
 # $Revision$, $Date$
+# TODO:
+# - please update patch
 Summary:	File archiver with highest compression ratio
-Summary(pl):	Paker plików z najwy¿szym stopniem kompresji
+Summary(pl.UTF-8):	Paker plików z najwyższym stopniem kompresji
 Name:		p7zip
-Version:	4.39
-Release:	1
-License:	LGPL
+Version:	4.48
+Release:	0.1
+License:	LGPL v2.1+
 Group:		Applications/Archiving
 Source0:	http://dl.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2
-# Source0-md5:	0e2e2d16fc48836093c47a04ac4b25ac
-Patch0:		%{name}-opt.patch
+# Source0-md5:	4e41eb39aa0e866228db65cedfbbb845
+#Patch0:		%{name}-opt.patch
 URL:		http://p7zip.sourceforge.net/
 BuildRequires:	libstdc++-devel
 BuildRequires:	sed >= 4.0
@@ -27,22 +29,22 @@
 - Solid compressing
 - Archive headers compressing
 
-%description -l pl
-7-Zip jest pakerem plików z najwy¿szym stopniem kompresji.
+%description -l pl.UTF-8
+7-Zip jest pakerem plików z najwyższym stopniem kompresji.
 
-G³ówne cechy formatu 7z:
+Główne cechy formatu 7z:
 - otwarta architektura,
-- wysoki stopieñ kompresji,
+- wysoki stopień kompresji,
 - silne kodowanie AES-256,
-- mo¿liwo¶æ u¿ywania dowolnych metod kodowania, kompresji, konwersji,
-- obs³uga bardzo du¿ych plików (powy¿ej 16000000000 GB),
-- obs³uga nazw plików w unikodzie,
+- możliwość używania dowolnych metod kodowania, kompresji, konwersji,
+- obsługa bardzo dużych plików (powyżej 16000000000 GB),
+- obsługa nazw plików w unikodzie,
 - kompresja upakowana,
-- kompresja nag³ówków archiwum.
+- kompresja nagłówków archiwum.
 
 %package standalone
 Summary:	Standalone 7zip executable
-Summary(pl):	Samodzielny plik wykonywalny 7zip
+Summary(pl.UTF-8):	Samodzielny plik wykonywalny 7zip
 Group:		Applications/Archiving
 Obsoletes:	p7zip-stand-alone
 
@@ -50,33 +52,33 @@
 Standalone version of 7zip. It handles less archive formats than
 plugin capable version.
 
-%description standalone -l pl
-Samodzielna wersja 7zip-a. Obs³uguje mniej formatów archiwów ni¿
-wersja obs³uguj±ca wtyczki.
+%description standalone -l pl.UTF-8
+Samodzielna wersja 7zip-a. Obsługuje mniej formatów archiwów niż
+wersja obsługująca wtyczki.
 
 %prep
 %setup -q -n %{name}_%{version}
-%patch0 -p1
+#%patch0 -p1
 
-cp -f makefile.linux_x86_ppc_alpha makefile.machine
+cp -f makefile.linux_x86_ppc_alpha_gcc_4.X makefile.machine
+%{__sed} -i -e 's/ -s / /' makefile.machine
 
-%{__sed} -i "s at Formats@%{_libdir}/%{name}/&@" \
-	7zip/UI/Common/ArchiverInfo.cpp
-%{__sed} -i 's,return GetBaseFolderPrefix.*,return TEXT("%{_libdir}/%{name}/Codecs/");,g' \
-	7zip/Archive/Common/CodecsPath.cpp
+find . -name '*.cpp' -exec sed -i -e 's at getenv("P7ZIP_HOME_DIR")@"%{_libdir}/%{name}/"@g' {} \;
 
 %build
-%{__make} all2 \
-	_CC="%{__cc} %{rpmcflags}" \
-	_CXX="%{__cxx} %{rpmcxxflags}"
+%{__make} all2 test \
+	CC="%{__cc} \$(ALLFLAGS)" \
+	CXX="%{__cxx} \$(ALLFLAGS)" \
+	LDFLAGS="%{rpmldflags}" \
+	OPTFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1}
 
-install bin/7z* $RPM_BUILD_ROOT%{_bindir}
+install bin/{7z,7zCon.sfx,7za} $RPM_BUILD_ROOT%{_bindir}
+install bin/7z.so $RPM_BUILD_ROOT%{_libdir}/%{name}
 install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
-install bin/Formats/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Formats
 
 install man1/7z* $RPM_BUILD_ROOT%{_mandir}/man1
 
@@ -85,20 +87,19 @@
 
 %files
 %defattr(644,root,root,755)
-%doc DOCS/{MANUAL,{7zFormat,Methods,history,lzma,readme}.txt} ChangeLog README TODO
+%doc DOCS/{MANUAL,{7zFormat,License,Methods,history,lzma,readme}.txt} ChangeLog README TODO
 %attr(755,root,root) %{_bindir}/7z
 %attr(755,root,root) %{_bindir}/7zCon.sfx
 %dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/7z.so
 %dir %{_libdir}/%{name}/Codecs
 %attr(755,root,root) %{_libdir}/%{name}/Codecs/*
-%dir %{_libdir}/%{name}/Formats
-%attr(755,root,root) %{_libdir}/%{name}/Formats/*
-%{_mandir}/man1/7z.*
+%{_mandir}/man1/7z.1*
 
 %files standalone
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/7za
-%{_mandir}/man1/7za.*
+%{_mandir}/man1/7za.1*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -106,6 +107,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28.2.2  2007/07/17 17:50:48  arvenil
+ - up to 4.48 (merged from HEAD)
+ - build and works on AC amd64, i will ask for ac-test build
+ - 0.1 (until patch update)
+
 Revision 1.28.2.1  2006/05/10 11:01:36  blues
 - builds on AC, but still not working
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/p7zip.spec?r1=1.28.2.1&r2=1.28.2.2&f=u



More information about the pld-cvs-commit mailing list