# Might be needed to apply fuzzy patches with recent rpm #%%define _default_patch_fuzz 2 Name: unrar Version: 3.7.8 Release: 3%{?dist} Summary: Utility for extracting, testing and viewing RAR archives License: Freeware with further limitations Group: Applications/Archiving URL: http://www.rarlab.com/rar_archiver.htm Source0: http://www.rarlab.com/rar/unrarsrc-%{version}.tar.gz Patch0: http://ftp.debian.org/debian/pool/non-free/u/unrar-nonfree/unrar-nonfree_3.7.3-1.diff.gz Patch1: unrar-3.7.8-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description 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. %package -n libunrar Summary: Decompress library for RAR v3 archives Group: System Environment/Libraries %description -n libunrar The libunrar library allows programs linking against it to decompress existing RAR v3 archives. %package -n libunrar-devel Summary: Development files for libunrar Group: Development/Libraries Requires: libunrar = %{version}-%{release} Provides: libunrar3-%{version} %description -n libunrar-devel The libunrar-devel package contains libraries and header files for developing applications that use libunrar. %prep %setup -q -n %{name} %patch0 -p1 %patch1 -p1 -b .fix %build make %{?_smp_mflags} -f makefile.unix \ CXX="%{__cxx}" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" STRIP=: RANLIB=ranlib make %{?_smp_mflags} -f makefile.unix lib \ CXX="%{__cxx}" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" STRIP=: RANLIB=ranlib %install rm -rf %{buildroot} install -Dpm 755 unrar %{buildroot}%{_bindir}/unrar install -Dpm 644 debian/unrar.1 %{buildroot}%{_mandir}/man1/unrar.1 install -s -D -m 755 libunrar.so.3.7 %{buildroot}%{_libdir}/libunrar.so.3.7 ln -s libunrar.so.3.7 %{buildroot}%{_libdir}/libunrar.so.3 ln -s libunrar.so.3 %{buildroot}%{_libdir}/libunrar.so install -D -m 644 dll.hpp %{buildroot}/%{_includedir}/libunrar/dll.hpp %clean rm -rf %{buildroot} %post -n libunrar -p /sbin/ldconfig %postun -n libunrar -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc license.txt readme.txt %{_bindir}/unrar %{_mandir}/man1/unrar.1* %files -n libunrar %defattr(-,root,root,-) %doc license.txt readme.txt %{_libdir}/*.so.* %files -n libunrar-devel %defattr(-,root,root,-) %doc license.txt readme.txt %{_includedir}/* %{_libdir}/*.so %changelog * Sat Oct 25 2008 Andreas Thienemann - 3.7.8-3 - Added libunrar sub-packages - Added soname to libunrar * 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.