]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- dependency exceptions macros added
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 23 Mar 2001 10:41:01 +0000 (10:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.44

rpm.macros

index b97eeda130a4e21b0d6d9951b7972c2478744c1f..c3ac1e4188b2af384f3f5a89568b00a7d6efc1ed 100644 (file)
@@ -93,14 +93,6 @@ done \
 # Example files, programs, scripts...
 %_examplesdir  /usr/src/examples
 
-# Find-requires and directories excluded from auto-req
-%_noautoreqdir         %{_defaultdocdir} %{_examplesdir}
-%_noautoreqdep         %{nil}
-#%__find_requires_pre  /usr/lib/rpm/find-requires-pre %{_noautoreqdir}
-#%__find_requires_core /usr/lib/rpm/find-requires
-#%__find_requires_post /usr/lib/rpm/find-requires-post
-#%__find_requires      %{__find_requires_pre} | %{__find_requires_core} | %{__find_requires_post}
-
 # If non-empty "debug" macro defined, add "dbg" suffix to release number
 %_rpmfilename          %%{NAME}-%%{VERSION}-%%{RELEASE}%{?debug:dbg}.%%{ARCH}.rpm
 
@@ -157,3 +149,33 @@ echo "Compress man and info pages."; \
 
 %_source_payload        w9.gzdio
 %_binary_payload        w9.bzdio
+
+###################################################################
+# Requires/Provides automation
+# exceptions system by Jacek Konieczny <jajcus@pld.org.pl>
+%__spec_install_pre    %{___build_pre}\
+rm -f %{_builddir}/__rpm_*\
+%{nil}
+
+%__spec_install_post \
+%{?_noautoreqfiles:for f in %{_noautoreqfiles} ; do echo %{?buildroot:%{buildroot}}$f >> %{_builddir}/__rpm_noautoreqfiles ; done }\
+%{?_noautoreq:for f in %{_noautoreq} ; do echo "$f" >> %{_builddir}/__rpm_noautoreq ; done }\
+%{?_noautoreqdep:for f in %{_noautoreqdep} ; do echo "$f" >> %{_builddir}/__rpm_noautoreqdep ; done }\
+%{?_noautoprovfiles:for f in %{_noautoprovfiles} ; do echo %{?buildroot:%{buildroot}}$f >> %{_builddir}/__rpm_noautoprovfiles ; done }\
+%{?_noautoprov:for f in %{_noautoprov} ; do echo "$f" >> %{_builddir}/__rpm_noautoprov ; done }\
+%{__arch_install_post}\
+%{__os_install_post}\
+%{nil}
+
+%__spec_clean_pre      %{___build_pre}\
+rm -f %{_builddir}/__rpm_*\
+%{nil}
+
+
+#%_noautoreqfiles      "%{_defaultdocdir}.*" "%{_examplesdir}.*"
+#%_noautoreq           %{nil}
+#%_noautoreqdep                %{nil}
+#%_noautoprovfiles     %{nil}
+#%_noautoprov          %{nil}
+
+
This page took 0.099223 seconds and 4 git commands to generate.