rpms/unrar/devel unrar.spec,1.25,1.26

Conrad Meyer konradm at rpmfusion.org
Sun Dec 30 23:53:14 CET 2012


Author: konradm

Update of /cvs/nonfree/rpms/unrar/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv16472

Modified Files:
	unrar.spec 
Log Message:
* Sun Dec 30 2012 Conrad Meyer <konrad at tylerc.org> - 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)



Index: unrar.spec
===================================================================
RCS file: /cvs/nonfree/rpms/unrar/devel/unrar.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- unrar.spec	30 Dec 2012 22:12:28 -0000	1.25
+++ unrar.spec	30 Dec 2012 22:53:14 -0000	1.26
@@ -1,6 +1,8 @@
+%global         date    2012.12.30
+
 Name:           unrar
 Version:        4.2.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Utility for extracting, testing and viewing RAR archives
 License:        Freeware with further limitations
 Group:          Applications/Archiving
@@ -12,6 +14,7 @@
 Patch0:         unrar-3.9.10-missing-recvol-symbols.patch
 Patch1:         unrar-4.2.3-fix-build.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
 Requires(post): chkconfig
 Requires(preun): chkconfig
 
@@ -26,6 +29,10 @@
 Summary:        Decompress library for RAR v3 archives
 Group:          System Environment/Libraries
 
+Provides:       unrardate%{_isa} = %{date}
+# Packages using libunrar must Requires this:
+#{?unrardate:Requires: unrardate%{_isa} = %{unrardate}}
+
 %description -n libunrar
 The libunrar library allows programs linking against it to decompress
 existing RAR v3 archives.
@@ -69,6 +76,13 @@
 # handle alternatives
 touch %{buildroot}%{_bindir}/unrar
 
+# RPM Macros support
+mkdir -p %{buildroot}%{_sysconfdir}/rpm
+cat > %{buildroot}%{_sysconfdir}/rpm/macros.unrar << EOF
+# unrar RPM Macros
+%unrardate    %{date}
+EOF
+touch -r license.txt %{buildroot}%{_sysconfdir}/rpm/macros.unrar
 
 
 %clean
@@ -108,10 +122,15 @@
 %files -n libunrar-devel
 %defattr(-,root,root,-)
 %doc license.txt readme.txt
+%config %{_sysconfdir}/rpm/macros.unrar
 %{_includedir}/*
 
 
 %changelog
+* Sun Dec 30 2012 Conrad Meyer <konrad at tylerc.org> - 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 <konrad at tylerc.org> - 4.2.4-1
 - Bump version (#2508)
 - Fix unrar-4.2.3-fix-build.patch diff to have context


More information about the rpmfusion-commits mailing list