summaryrefslogtreecommitdiff
path: root/packaging/rpm-macros.patch
blob: 8f3e1a2f44436ea367f5954f8e36efdabddfb900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Index: rpm-4.9.0/configure.ac
===================================================================
--- rpm-4.9.0.orig/configure.ac
+++ rpm-4.9.0/configure.ac
@@ -831,6 +831,7 @@ unknown|pc|ibm|redhat|pld|mandrake|conec
 	test -f /etc/redhat-release &&		RPMCANONVENDOR=redhat
 	test -f /etc/SuSE-release &&		RPMCANONVENDOR=suse
 	test -f /etc/pld-release &&		RPMCANONVENDOR=pld
+	test -f /etc/tizen-release &&		RPMCANONVENDOR=tizen
 	test -f /etc/mandrake-release &&	RPMCANONVENDOR=mandrake
 	test -f /etc/conectiva-release &&	RPMCANONVENDOR=conectiva
 	test -f /etc/lvr-release &&		RPMCANONVENDOR=lvr
Index: rpm-4.9.0/platform.in
===================================================================
--- rpm-4.9.0.orig/platform.in
+++ rpm-4.9.0/platform.in
@@ -76,6 +76,26 @@
 @redhat@#%defattr(-,root,root,-)\
 @redhat@#%{nil}
 
+@tizen@#---------------------------------------------------------------------
+@tizen@#	Expanded at end of %prep
+@tizen@#
+@tizen@%__id_u		@__ID_U@
+@tizen@%__chown_Rhf	@__CHOWN_RHF@
+@tizen@%__chgrp_Rhf	@__CHGRP_RHF@
+@tizen@%_fixperms	%{__chmod} -Rf @FIXPERMS@
+@tizen@%__os_install_post    \
+@tizen@    %{_rpmconfigdir}/brp-compress \
+@tizen@    %{_rpmconfigdir}/brp-strip %{__strip} \
+@tizen@    %{_rpmconfigdir}/brp-strip-static-archive %{__strip} \
+@tizen@    %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} \
+@tizen@    %{_rpmconfigdir}/tizen/find-docs.sh %{buildroot}\
+@tizen@%{nil}
+@tizen@#---------------------------------------------------------------------
+@tizen@#	Always use %defattr(-,root,root) in %files (added in rpm-4.0.4)
+@tizen@#
+@tizen@#%files(n:f:)	%%files%{?-f: -f %{-f*}}%{?-n: -n %{-n*}} %{?1}\
+@tizen@#%defattr(-,root,root,-)\
+@tizen@#%{nil}
 
 @apple@#---------------------------------------------------------------------
 @apple@#	Apple Darwin vendor specific macros
Index: rpm-4.9.0/installplatform
===================================================================
--- rpm-4.9.0.orig/installplatform
+++ rpm-4.9.0/installplatform
@@ -126,6 +126,9 @@ for SUBST in $SUBSTS ; do
   redhat)
     VENDORSED='-e s,^@redhat@,,'
     ;;
+  tizen)
+    VENDORSED='-e s,^@tizen@,,'
+    ;;
   apple)
     VENDORSED='-e s,^@apple@,,'
     ;;