diff options
Diffstat (limited to 'scripts/common')
-rw-r--r-- | scripts/common/clean.add.in | 5 | ||||
-rw-r--r-- | scripts/common/common.add.in | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/scripts/common/clean.add.in b/scripts/common/clean.add.in new file mode 100644 index 0000000000..d717199905 --- /dev/null +++ b/scripts/common/clean.add.in @@ -0,0 +1,5 @@ +%clean +# let rpm --clean remove BuildRoot iif using the default BuildRoot + test $RPM_BUILD_ROOT = "%{_defaultbuildroot}" && \ + rm -rf $RPM_BUILD_ROOT + diff --git a/scripts/common/common.add.in b/scripts/common/common.add.in new file mode 100644 index 0000000000..fc54d465c0 --- /dev/null +++ b/scripts/common/common.add.in @@ -0,0 +1,14 @@ +# +# Please send bugfixes or comments to +# http://www.oarcorp.com/cgi-bin/gnatweb.pl +# or mailto:@PACKAGE_BUGREPORT@ +# + +%define _prefix @prefix@ +%define _defaultbuildroot %{_tmppath}/%{name}-%{version}-root +%ifos cygwin cygwin32 +%define _exeext .exe +%else +%define _exeext %{nil} +%endif + |