lib/simp/rake/helpers/assets/rpm_spec/simp4.spec in simp-rake-helpers-4.0.1 vs lib/simp/rake/helpers/assets/rpm_spec/simp4.spec in simp-rake-helpers-4.1.0
- old
+ new
@@ -39,15 +39,14 @@
package_name = "UNKNOWN"
package_version = "UNKNOWN"
module_license = "UNKNOWN"
--
--- Default to 2016
--- This was done due to the change in naming scheme across all of the modules.
+-- Default to 0
--
-package_release = '2016'
+package_release = 0
}
%{lua:
-- Pull the Relevant Metadata out of the Puppet module metadata.json.
@@ -336,15 +335,17 @@
curdir=`pwd`
dirname=`basename $curdir`
cp -r ../$dirname %{buildroot}/%{prefix}/%{module_name}
cd %{buildroot}%{prefix}/%{module_name}
+
+# Remove unnecessary assets
rm -rf %{buildroot}/%{prefix}/%{module_name}/.git
-rm -f %{buildroot}/%{prefix}/*.lock
-rm -rf %{buildroot}/%{prefix}/spec/fixtures/modules
-rm -rf %{buildroot}/%{prefix}/dist
-rm -rf %{buildroot}/%{prefix}/junit
-rm -rf %{buildroot}/%{prefix}/log
+rm -f %{buildroot}/%{prefix}/%{module_name}/*.lock
+rm -rf %{buildroot}/%{prefix}/%{module_name}/spec/fixtures/modules
+rm -rf %{buildroot}/%{prefix}/%{module_name}/dist
+rm -rf %{buildroot}/%{prefix}/%{module_name}/junit
+rm -rf %{buildroot}/%{prefix}/%{module_name}/log
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}/%{prefix}