diff --git a/rarlinux-5.4.0.tar.gz b/rarlinux-5.4.0.tar.gz deleted file mode 100644 index e682e3a08230545f86296bc3e29104112c723072..0000000000000000000000000000000000000000 Binary files a/rarlinux-5.4.0.tar.gz and /dev/null differ diff --git a/rarlinux-x64-5.4.0.tar.gz b/rarlinux-x64-5.4.0.tar.gz deleted file mode 100644 index b6c99dec4d7e4e5603e2b5ece85d320d55101d05..0000000000000000000000000000000000000000 Binary files a/rarlinux-x64-5.4.0.tar.gz and /dev/null differ diff --git a/unrar-5.9.4-build.patch b/unrar-5.9.4-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..ae5ca0bf7f0d2e68c36b06e0292ce9623e6d12aa --- /dev/null +++ b/unrar-5.9.4-build.patch @@ -0,0 +1,35 @@ +Makefile: Fix parallel build issue + +If clean runs in parallel with $(OBJECTS), it is possible to build some +objects first, then the clean target fires and deletes some, and then we +try to link and fail. + +Gentoo-Bug: https://bugs.gentoo.org/528218 + +--- a/makefile ++++ b/makefile +@@ -142,21 +142,18 @@ + @rm -f $(OBJECTS) $(UNRAR_OBJ) $(LIB_OBJ) + @rm -f unrar libunrar.* + +-unrar: clean $(OBJECTS) $(UNRAR_OBJ) +- @rm -f unrar ++unrar: $(OBJECTS) $(UNRAR_OBJ) + $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS) + $(STRIP) unrar + + sfx: WHAT=SFX_MODULE +-sfx: clean $(OBJECTS) +- @rm -f default.sfx ++sfx: $(OBJECTS) + $(LINK) -o default.sfx $(LDFLAGS) $(OBJECTS) + $(STRIP) default.sfx + + lib: WHAT=RARDLL + lib: CXXFLAGS+=$(LIBFLAGS) +-lib: clean $(OBJECTS) $(LIB_OBJ) +- @rm -f libunrar.* ++lib: $(OBJECTS) $(LIB_OBJ) + $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) + $(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ) + diff --git a/unrar.1 b/unrar.1 new file mode 100644 index 0000000000000000000000000000000000000000..f4aae4f306a46813899abfc3306bb1dd0b58755b --- /dev/null +++ b/unrar.1 @@ -0,0 +1,98 @@ +.TH UNRAR 1 02.11.1999 "" "RAR archiver" +.SH NAME +unrar \- extract files from rar archives +.SH SYNOPSIS +.B unrar +.I " [- -] archive [files...] [path\...]" +.SH "DESCRIPTION" +This manual page documents briefly the +.BR unrar +command. +.br +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.br +Commands and options described here are as of unrar 2.02. +.SH OPTIONS +After the program name comes a command and then optional switches with +dashes before them. +A summary of commands is included below. +For a complete description, run +.BR unrar +without options. +.TP +.B e +Extract files to current directory. +.TP +.B l +List archive content. +.TP +.B p +Print file to stdout. +.TP +.B t +Test archive files. +.TP +.B v +Verbosely list archive. +.TP +.B x +Extract files with full path. +.SH SWITCHES +.BR NOTE: +Every switch must be separated by a whitespace. You cannot put them +together. +.TP +.B -av- +Disable Authenticity Verification check. +.TP +.B -c- +Disable comments show. +.TP +.B -f +Freshen files. +.TP +.B -kb +Keep broken extracted files. +.TP +.B -ierr +Send all messages to stderr. +.TP +.B -inul +Disable all messages. +.TP +.B -o+ +Overwrite existing files. +.TP +.B -o- +Do not overwrite existing files. +.TP +.B -p +Set password. +.TP +.B -p- +Do not query password. +.TP +.B -r +Recurse subdirectories. +.TP +.B -u +Update files. +.TP +.B -v +List all volumes. +.TP +.B -x +Exclude specified file. +.TP +.B -x@ +Exclude files in specified list file. +.TP +.B -x@ +Read file names to exclude from stdin. +.TP +.B -y +Assume Yes on all queries. +.SH AUTHOR +This manual page was written by Petr Cech according +to "unrar \-h" for the Debian GNU/Linux system (but may be used by others). diff --git a/unrar.spec b/unrar.spec index 1f53c92d40a53e03b327ecd927afb475406b16ea..81cb3b977e0528a8dfd08f6ee11e579db882ed43 100644 --- a/unrar.spec +++ b/unrar.spec @@ -1,137 +1,361 @@ -# -# Specfile for rar/unrar -# - -# norootforbuild - -%define debug_package %{nil} +%define specrelease 2.up1%{?dist} +%if 0%{?openeuler} +%define specrelease 2.up1 +%endif -Summary: Compression and decompression program rar -Summary(de): Kompressions- und Dekompressionsprogramm rar Name: unrar -Version: 5.4.0 -Release: 1%{?dist} -License: see license.txt -Group: Productivity/Archiving/Compression -URL: http://www.rarsoft.com +Version: 5.9.4 +Release: %{specrelease} +Summary: Utility for extracting, testing and viewing RAR archives +License: Freeware with further limitations +URL: https://www.rarlab.com/rar_add.htm +Source0: https://www.rarlab.com/rar/unrarsrc-%{version}.tar.gz +# Man page from Debian +Source1: unrar.1 +Patch0: unrar-5.9.4-build.patch -Source0: rarlinux-%{version}.tar.gz -Source1: rarlinux-x64-%{version}.tar.gz +BuildRequires: gcc-c++ -BuildRoot: %{_tmppath}/%{name}-%{version}-build -ExclusiveArch: i386 i686 i586 x86_64 %description -Compression and decompression program. -includes version 2.7.1 and %{version} +The unrar utility is a freeware program for extracting, testing and +viewing the contents of archives created with the RAR archiver version +1.50 and above. -%description -l de -Kompressions- und Dekompressionsprogramm. -Enthält Version 2.7.1 und %{version} -%prep +%package -n libunrar +Summary: Decompress library for RAR v3 archives + +# Packages using libunrar must Requires this: +#{?unrar_version:Requires: libunrar%%{_isa} = %%{unrar_version}} + +%description -n libunrar +The libunrar library allows programs linking against it to decompress +existing RAR v3 archives. -%setup -q -c -T -%ifarch x86_64 - tar xfz %{SOURCE1} -%else - tar xfz %{SOURCE0} -%endif + +%package -n libunrar-devel +Summary: Development files for libunrar +Requires: libunrar%{?_isa} = %{version}-%{release} + +%description -n libunrar-devel +The libunrar-devel package contains libraries and header files for +developing applications that use libunrar. + + +%prep +%autosetup -n %{name} +cp -p %SOURCE1 . %build +%{make_build} -f makefile unrar \ + CXX="%{__cxx}" CXXFLAGS="%{optflags} -fPIC -DPIC" LDFLAGS="%{?__global_ldflags} -pthread" \ + STRIP=: + +%{make_build} -f makefile lib \ + CXX="%{__cxx}" CXXFLAGS="%{optflags} -fPIC -DPIC" LDFLAGS="%{?__global_ldflags} -pthread" \ + STRIP=: + %install -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} -cd rar -mkdir %{buildroot} -%{__mkdir_p} %{buildroot}%{_bindir} -# %{__install} -m 755 rar %{buildroot}%{_bindir}/ -%{__install} -m 755 unrar %{buildroot}%{_bindir}/unrar -%{__mkdir_p} %{buildroot}%{_libdir} -%{__install} -m 755 default.sfx %{buildroot}%{_libdir} -%{__mkdir_p} %{buildroot}/etc -%{__install} -m 644 rarfiles.lst %{buildroot}/etc -chmod 644 * -# cd ../oldrar/rar -# %{__install} -m 755 rar %{buildroot}%{_bindir}/rar2 -#%{__install} -m 755 unrar %{buildroot}%{_bindir}/unrar2 - -%clean -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} +install -Dpm 755 unrar %{buildroot}%{_bindir}/unrar +install -Dpm 644 unrar.1 %{buildroot}%{_mandir}/man1/unrar.1 +install -Dpm 755 libunrar.so %{buildroot}%{_libdir}/libunrar.so +mkdir -p -m 755 %{buildroot}/%{_includedir}/unrar/ +for i in *.hpp; do + install -Dpm 644 $i %{buildroot}/%{_includedir}/unrar/ +done + +# RPM Macros support +mkdir -p %{buildroot}%{_sysconfdir}/rpm +cat > %{buildroot}%{_sysconfdir}/rpm/macros.unrar << EOF +# unrar RPM Macros +%unrar_version %{version} +EOF +touch -r license.txt %{buildroot}%{_sysconfdir}/rpm/macros.unrar + + +%ldconfig_scriptlets -n libunrar + %files -%defattr(-, root, root) -%doc rar/*.txt rar/*.htm -%{_bindir}/* -%{_libdir}/default.sfx -%config /etc/rarfiles.lst +%doc readme.txt +%license license.txt +%{_bindir}/unrar +%{_mandir}/man1/unrar.1* + +%files -n libunrar +%doc readme.txt +%license license.txt +%{_libdir}/*.so + +%files -n libunrar-devel +%doc readme.txt +%license license.txt +%config %{_sysconfdir}/rpm/macros.unrar +%{_includedir}/unrar/ + %changelog -* Tue Aug 8 2017 Larence R. Rogers - 5.4.0-1 -* Release 5.4.0-1 - See the list of chages here: http://www.rarlab.com/rarnew.htm - -* Wed Nov 18 2015 Larence R. Rogers - 5.3.0-1 -* Release 5.3.0-1 - 1. Directory wildcards are allowed in RAR command line in file names to - archive. For example: - - rar a backup c:\backup\2015*\* - - Recursion is enabled automatically for such directory wildcards - even if -r switch is not specified. - - 2. New 'R' object for -sc switch defines encoding of console - RAR messages sent to redirected files and pipes. For example: - - rar lb -scur data > list.txt - - will produce Unicode list.txt with archived file names. - - 3. Console RAR "l" and "v" commands display file time in YYYY-MM-DD - format. - - 4. "Test" command also verifies contents of NTFS alternate data streams - in RAR 3.x - 5.x archives. Previously their contents was checked - only during extraction command. - - 5. Bugs fixed: - - a) console RAR crashed instead of displaying an overwrite prompt - when attempting to add files to already existing volumes; - - b) console RAR "lt" command did not display seconds in file timestamp. - -* Fri Mar 19 2010 Manfred Tremmel - 3.9.3-0.pm.1 -- update to 3.9.3 -* Fri Feb 19 2010 Manfred Tremmel - 3.9.2-0.pm.1 -- update to 3.9.2 -* Tue Dec 15 2009 Manfred Tremmel - 3.9.1-0.pm.1 -- update to 3.9.1 -* Fri Aug 21 2009 Manfred Tremmel - 3.9.0-0.pm.0 -- update to 3.9.0 -* Thu Oct 02 2007 Manfred Tremmel - 3.8.0-0.pm.1 -- update to 3.8.0 now also with x86_64 version -* Fri Sep 21 2007 Manfred Tremmel - 3.7.1-0.pm.0 -- update to 3.7.1 -* Thu May 29 2007 Manfred Tremmel - 3.7.0-0.pm.0 -- update to 3.7.0 -* Thu Aug 17 2006 Manfred Tremmel - 3.6.0-0.pm.0 -- update to 3.6.0 -* Sun Nov 06 2005 Manfred Tremmel - 3.5.1-0.pm.1 -- added a lot of usefull changes from Andreas Hanke -- some cleanups in the spec-file -* Tue Oct 11 2005 Manfred Tremmel - 3.5.1-0.pm.0 -- update to 3.5.1 -* Thu Aug 09 2005 Manfred Tremmel - 3.5.0-0.pm.0 -- update to 3.5.0 -* Thu Sep 16 2004 Manfred Tremmel - 3.4.0-0.pm.0 -- update to 3.4.0 -* Mon Jan 26 2004 Manfred Tremmel - 3.3.0-0.pm.0 -- update to 3.3.0 -* Sun Sep 07 2003 Manfred Tremmel - 3.2.0-0.pm.1 -- now included 3.2.0 and 2.7.1 -* Sat Feb 22 2003 Manfred Tremmel - 2.7.1-0.pm.0 -- downgrade to 2.7.1 -* Wed Feb 19 2003 Manfred Tremmel - 3.2.0-0.pm.0 -- first release +* Wed Oct 21 2020 chenbo pan - 5.9.4-2.up1 +- fix spec for uos + +* Wed Jul 08 2020 Leigh Scott - 5.9.4-2 +- Add build fix + +* Wed Jul 08 2020 Leigh Scott - 5.9.4-1 +- Update to 5.9.4 + +* Wed Jun 10 2020 Leigh Scott - 5.9.3-1 +- Update to 5.9.3 + +* Wed Apr 01 2020 leigh123linux - 5.9.2-1 +- Update to 5.9.2 + +* Sun Feb 02 2020 Leigh Scott - 5.9.1-1 +- Update to 5.9.1 + +* Mon Dec 16 2019 Leigh Scott - 5.8.5-1 +- Update to 5.8.5 + +* Wed Nov 27 2019 Leigh Scott - 5.8.4-1 +- Update to 5.8.4 + +* Fri Oct 25 2019 Leigh Scott - 5.8.3-1 +- Update to 5.8.3 + +* Sat Oct 05 2019 Leigh Scott - 5.8.2-1 +- Update to 5.8.2 + +* Thu Sep 05 2019 Leigh Scott - 5.8.1-1 +- Update to 5.8.1 +- Remove alternatives setup + +* Sat Aug 10 2019 RPM Fusion Release Engineering - 5.7.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Apr 10 2019 Leigh Scott - 5.7.4-1 +- Update to 5.7.4 + +* Tue Mar 05 2019 RPM Fusion Release Engineering - 5.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Feb 11 2019 Leigh Scott - 5.7.1-1 +- Update to 5.7.1 + +* Wed Jan 02 2019 Sérgio Basto - 5.6.8-1 +- Update to 5.6.8 + +* Sat Sep 08 2018 Leigh Scott - 5.6.6-1 +- Update to 5.6.6 + +* Sun Aug 19 2018 RPM Fusion Release Engineering - 5.6.3-3 +- Rebuilt for Fedora 29 Mass Rebuild binutils issue + +* Fri Jul 27 2018 RPM Fusion Release Engineering - 5.6.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Apr 25 2018 Leigh Scott - 5.6.3-1 +- Update to 5.6.3 + +* Sun Apr 01 2018 Leigh Scott - 5.6.2-1 +- Update to 5.6.2 + +* Mon Mar 12 2018 Leigh Scott - 5.6.1-1 +- Update to 5.6.1 + +* Fri Mar 02 2018 RPM Fusion Release Engineering - 5.5.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 18 2018 Hans de Goede - 5.5.8-1 +- Update to 5.5.8 + +* Thu Aug 31 2017 RPM Fusion Release Engineering - 5.5.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 23 2017 Leigh Scott - 5.5.5-1 +- Update to 5.5.5 + +* Sun Mar 26 2017 RPM Fusion Release Engineering - 5.4.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Aug 17 2016 Leigh Scott - 5.4.5-1 +- Update to 5.4.5 +- Harden build +- Spec file clean up + +* Thu Jun 30 2016 Nicolas Chauvet - 5.4.2-1 +- Update to 5.4.2 + +* Sat Dec 06 2014 Nicolas Chauvet - 5.2.3-1 +- Update to 5.2.3 + +* Sun Aug 31 2014 Sérgio Basto - 5.0.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Dec 15 2013 Nicolas Chauvet - 5.0.12-2 +- Add isa dependency + +* Fri Nov 8 2013 Conrad Meyer - 5.0.12-1 +- Bump to latest upstream +- Drop patch that doesn't apply anymore +- Makefile changed names + +* Mon Oct 28 2013 Conrad Meyer - 4.2.4-4 +- Remove unrar-4.2.3-fix-build.patch, add clean step to %%build + per #2869 + +* Sun Dec 30 2012 Conrad Meyer - 4.2.4-3 +- Try at #2357 again :). Instead of arbitrary date, use rpm %%version + +* Sun Dec 30 2012 Conrad Meyer - 4.2.4-2 +- Add RPM dependency check to ensure dependent packages break at install time + rather than use time (#2357) (derived from live555 package) + +* Sun Dec 30 2012 Conrad Meyer - 4.2.4-1 +- Bump version (#2508) +- Fix unrar-4.2.3-fix-build.patch diff to have context + +* Mon May 28 2012 Marcos Mello - 4.2.3-1 +- New version +- Include all header files in the -devel package (#1988) + +* Thu Mar 08 2012 Nicolas Chauvet - 4.0.7-3 +- Rebuilt for c++ ABI breakage + +* Thu Feb 09 2012 Nicolas Chauvet - 4.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Jul 9 2011 Conrad Meyer - 4.0.7-1 +- Bump to new version. + +* Tue Sep 28 2010 Conrad Meyer - 3.9.10-3 +- Patch to fix unresolved symbol issues (#1385). + +* Thu Sep 2 2010 Conrad Meyer - 3.9.10-1 +- Bump to 3.9.10. + +* Sun Feb 21 2010 Conrad Meyer - 3.9.9-1 +- Bump to 3.9.9. + +* Sun Dec 6 2009 Conrad Meyer - 3.8.5-5 +- Fix post to use alternatives to manage unrar manpage as well. + +* Mon Nov 30 2009 Conrad Meyer - 3.8.5-4 +- Fix preun to refer to the correct alternatives files. + +* Fri Nov 20 2009 Conrad Meyer - 3.8.5-3 +- Add missing post/preun requires on chkconfig (#956). + +* Fri Jul 17 2009 Conrad Meyer - 3.8.5-2 +- Fix breakages introduced by dropping the versioned SONAME patch. + +* Wed Jul 8 2009 Conrad Meyer - 3.8.5-1 +- Bump to 3.8.5. + +* Sun Mar 29 2009 Thorsten Leemhuis - 3.7.8-4 +- rebuild for new F11 features + +* Sat Oct 25 2008 Andreas Thienemann - 3.7.8-3 +- Added libunrar sub-packages +- Clarified license +- Added unrar robustness patches + +* Thu Jul 24 2008 Conrad Meyer - 3.7.8-2 +- Import into RPM Fusion. + +* Sat Oct 13 2007 Ville Skyttä - 3.7.8-1 +- 3.7.8. + +* Sat Sep 8 2007 Ville Skyttä - 3.7.7-1 +- 3.7.7, fixes CVE-2007-3726. + +* Wed Aug 22 2007 Ville Skyttä - 3.7.6-2 +- Rebuild. + +* Sun Jul 8 2007 Ville Skyttä - 3.7.6-1 +- 3.7.6. + +* Fri May 18 2007 Ville Skyttä - 3.7.5-1 +- 3.7.5. + +* Sat Mar 10 2007 Ville Skyttä - 3.7.4-1 +- 3.7.4. + +* Wed Feb 14 2007 Ville Skyttä - 3.7.3-1 +- 3.7.3. + +* Wed Jan 17 2007 Ville Skyttä - 3.7.2-1 +- 3.7.2. + +* Wed Sep 13 2006 Ville Skyttä - 3.6.8-1 +- 3.6.8. + +* Wed Jul 12 2006 Ville Skyttä - 3.6.6-1 +- 3.6.6. + +* Wed May 31 2006 Ville Skyttä - 3.6.4-1 +- 3.6.4. + +* Sat May 20 2006 Ville Skyttä - 3.6.3-1 +- 3.6.3. + +* Thu Mar 09 2006 Andreas Bierfert +- switch to new release field + +* Tue Feb 28 2006 Andreas Bierfert +- add dist + +* Tue Oct 11 2005 Ville Skyttä - 3.5.4-0.lvn.1 +- 3.5.4. +- Drop zero Epoch. + +* Wed Aug 10 2005 Ville Skyttä - 0:3.5.3-0.lvn.1 +- 3.5.3. + +* Thu May 19 2005 Ville Skyttä - 0:3.5.2-0.lvn.1 +- 3.5.2. + +* Thu Mar 31 2005 Ville Skyttä - 0:3.5.1-0.lvn.1 +- 3.5.1. + +* Wed Nov 24 2004 Ville Skyttä - 0:3.4.3-0.lvn.1 +- Update to 3.4.3. + +* Sun Sep 5 2004 Ville Skyttä - 0:3.4.2-0.lvn.1 +- Update to 3.4.2, nostrip patch no longer necessary. +- Update Debian patch URL. + +* Sat Jul 3 2004 Ville Skyttä - 0:3.4.1-0.lvn.1 +- Update to 3.4.1 and Debian patch to 3.3.6-2. + +* Thu May 20 2004 Ville Skyttä - 0:3.3.6-0.lvn.2 +- Update Debian patch to 3.3.6-1 (no real changes, just a working URL again). + +* Sun Feb 8 2004 Ville Skyttä - 0:3.3.6-0.lvn.1 +- Update to 3.3.6. + +* Mon Jan 19 2004 Ville Skyttä - 0:3.3.4-0.lvn.1 +- Update to 3.3.4. + +* Sat Dec 27 2003 Ville Skyttä - 0:3.3.3-0.lvn.1 +- Update to 3.3.3. + +* Sun Dec 21 2003 Ville Skyttä - 0:3.3.2-0.lvn.1 +- Update to 3.3.2. + +* Wed Nov 26 2003 Ville Skyttä - 0:3.3.1-0.lvn.1 +- Update to 3.3.1. + +* Sun Sep 14 2003 Ville Skyttä - 0:3.2.3-0.fdr.1 +- Update to 3.2.3. +- Sync with current Fedora spec template. + +* Wed Apr 16 2003 Ville Skyttä - 0:3.2.1-0.fdr.1 +- Update to 3.2.1. + +* Sat Apr 5 2003 Ville Skyttä - 0:3.2.0-0.fdr.1 +- Update to 3.2.0 and current Fedora guidelines. + +* Sun Feb 9 2003 Ville Skyttä - 3.1.3-1.fedora.1 +- First Fedora release, based on Matthias Saou's and PLD work. diff --git a/unrarsrc-5.9.4.tar.gz b/unrarsrc-5.9.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f4f901778386930e2fdbcddca2f9c7c5bc0f3d60 Binary files /dev/null and b/unrarsrc-5.9.4.tar.gz differ