[unrar] Update to 5.4.5

Leigh Scott leigh123linux at rpmfusion.org
Wed Aug 17 09:04:28 CEST 2016


commit 27ec920ff36bcb0a217f1405287afef9bc0bb816
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Wed Aug 17 08:04:23 2016 +0100

    Update to 5.4.5

 .gitignore |  1 +
 sources    |  2 +-
 unrar.spec | 34 ++++++++++++++++++----------------
 3 files changed, 20 insertions(+), 17 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9a75679..fd973ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 unrarsrc-5.2.3.tar.gz
+/unrarsrc-5.4.5.tar.gz
diff --git a/sources b/sources
index 931713f..52d22d8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fb77bcbeac6953f563230634d74a87d7  unrarsrc-5.4.2.tar.gz
+588b3fadc04eea7372cbfe98e4709aee  unrarsrc-5.4.5.tar.gz
diff --git a/unrar.spec b/unrar.spec
index c5aa120..790b017 100644
--- a/unrar.spec
+++ b/unrar.spec
@@ -1,5 +1,5 @@
 Name:           unrar
-Version:        5.4.2
+Version:        5.4.5
 Release:        1%{?dist}
 Summary:        Utility for extracting, testing and viewing RAR archives
 License:        Freeware with further limitations
@@ -8,7 +8,6 @@ URL:            http://www.rarlab.com/rar_add.htm
 Source0:        ftp://ftp.rarlab.com/rar/unrarsrc-%{version}.tar.gz
 # Man page from Debian
 Source1:        unrar-nonfree.1
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires(post): chkconfig
 Requires(preun): chkconfig
@@ -25,7 +24,7 @@ Summary:        Decompress library for RAR v3 archives
 Group:          System Environment/Libraries
 
 # Packages using libunrar must Requires this:
-#{?unrar_version:Requires: libunrar%{_isa} = %{unrar_version}}
+#{?unrar_version:Requires: libunrar%%{_isa} = %%{unrar_version}}
 
 %description -n libunrar
 The libunrar library allows programs linking against it to decompress
@@ -50,10 +49,12 @@ cp -p %SOURCE1 .
 
 %build
 make %{?_smp_mflags} -f makefile \
-  CXX="%{__cxx}" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" STRIP=: RANLIB=ranlib
+  CXX="%{__cxx}" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" LDFLAGS="$RPM_LD_FLAGS -pthread" \
+  STRIP=: RANLIB=ranlib
 make %{?_smp_mflags} -f makefile clean
 make %{?_smp_mflags} -f makefile lib \
-  CXX="%{__cxx}" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" STRIP=: RANLIB=ranlib
+  CXX="%{__cxx}" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" LDFLAGS="$RPM_LD_FLAGS -pthread" \
+  STRIP=: RANLIB=ranlib
 
 
 %install
@@ -78,10 +79,6 @@ EOF
 touch -r license.txt %{buildroot}%{_sysconfdir}/rpm/macros.unrar
 
 
-%clean
-rm -rf %{buildroot}
-
-
 %post
 %{_sbindir}/alternatives \
     --install %{_bindir}/unrar unrar %{_bindir}/unrar-nonfree 50 \
@@ -101,25 +98,30 @@ fi
 
 
 %files
-%defattr(-,root,root,-)
-%doc license.txt readme.txt
+%doc readme.txt
+%license license.txt
 %ghost %{_bindir}/unrar
 %{_bindir}/unrar-nonfree
 %{_mandir}/man1/unrar-nonfree.1*
 
 %files -n libunrar
-%defattr(-,root,root,-)
-%doc license.txt readme.txt
+%doc readme.txt
+%license license.txt
 %{_libdir}/*.so
 
 %files -n libunrar-devel
-%defattr(-,root,root,-)
-%doc license.txt readme.txt
+%doc readme.txt
+%license license.txt
 %config %{_sysconfdir}/rpm/macros.unrar
 %{_includedir}/*
 
 
 %changelog
+* Wed Aug 17 2016 Leigh Scott <leigh123linux at googlemail.com> - 5.4.5-1
+- Update to 5.4.5
+- Harden build
+- Spec file clean up
+
 * Thu Jun 30 2016 Nicolas Chauvet <kwizart at gmail.com> - 5.4.2-1
 - Update to 5.4.2
 
@@ -152,7 +154,7 @@ fi
 - Bump version (#2508)
 - Fix unrar-4.2.3-fix-build.patch diff to have context
 
-* Thu May 28 2012 Marcos Mello <marcosfrm AT gmail DOT com> - 4.2.3-1
+* Mon May 28 2012 Marcos Mello <marcosfrm AT gmail DOT com> - 4.2.3-1
 - New version
 - Include all header files in the -devel package (#1988)
 


More information about the rpmfusion-commits mailing list