Skip to content

Instantly share code, notes, and snippets.

@leleobhz
Created June 12, 2020 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leleobhz/57270396d09bfc90f21fd73f6a38378d to your computer and use it in GitHub Desktop.
Save leleobhz/57270396d09bfc90f21fd73f6a38378d to your computer and use it in GitHub Desktop.
Changing specs for Issabel Master
leonardo@XPS:/mnt/c/Users/Leonardo Amaral/Issabel/addons/build/4.0$ rpmbuild --target armhf --define="_arch=armhf" -ba issabel-addons.spec
warning: Macro %_arch needs whitespace before body
warning: Macro %_arch needs whitespace before body
Building target platforms: armhf
Building for target armhf
warning: Downloading https://github.com/IssabelFoundation/addons/archive/master.tar.gz to /home/leonardo/rpmbuild/SOURCES/master.tar.gz
warning: Downloading https://raw.githubusercontent.com/IssabelFoundation/addons/master/build/4.0/patches/repo-40.patch to /home/leonardo/rpmbuild/SOURCES/repo-40.patch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rEzvpk
+ umask 022
+ cd /home/leonardo/rpmbuild/BUILD
+ cd /home/leonardo/rpmbuild/BUILD
+ rm -rf addons-master
+ /bin/gzip -dc /home/leonardo/rpmbuild/SOURCES/master.tar.gz
+ /bin/tar -xof -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd addons-master
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /bin/cat /home/leonardo/rpmbuild/SOURCES/repo-40.patch
+ /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EBt4bm
+ umask 022
+ cd /home/leonardo/rpmbuild/BUILD
+ cd addons-master
+ rm -rf /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf
+ mkdir -p /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/var/www/html/
+ mv modules/ /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/var/www/html/
+ mkdir -p /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/opt/issabel/
+ mv setup/issabel-moduleconf /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/opt/issabel/issabel-updater
+ mkdir -p /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/etc/init.d/
+ mv /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/opt/issabel/issabel-updater/issabel-updaterd /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/etc/init.d/
+ chmod +x /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/etc/init.d/issabel-updaterd
+ mkdir -p /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/etc/yum.repos.d/
+ mkdir -p /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/etc/pki/
+ mv setup/etc/pki/rpm-gpg/ /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/etc/pki/
+ rmdir setup/etc/pki
+ mkdir -p /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/usr/share/issabel/module_installer/issabel-addons-4.0.0-20200612git/
+ mv setup/etc/yum.repos.d/ /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/etc/
+ rmdir setup/etc
+ mv setup/ /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/usr/share/issabel/module_installer/issabel-addons-4.0.0-20200612git/
+ mv menu.xml /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf/usr/share/issabel/module_installer/issabel-addons-4.0.0-20200612git/
+ exit 0
Processing files: issabel-addons-4.0.0-20200612git.noarch
Provides: issabel-addons = 4.0.0-20200612git
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh chkconfig issabel-framework >= 2.5.0 php-soap
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/sh /usr/bin/php
Obsoletes: elastix-addons
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf
Wrote: /home/leonardo/rpmbuild/SRPMS/issabel-addons-4.0.0-20200612git.src.rpm
Wrote: /home/leonardo/rpmbuild/RPMS/noarch/issabel-addons-4.0.0-20200612git.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.847UXh
+ umask 022
+ cd /home/leonardo/rpmbuild/BUILD
+ cd addons-master
+ rm -rf /home/leonardo/rpmbuild/BUILDROOT/issabel-addons-4.0.0-20200612git.=armhf
+ exit 0
leonardo@XPS:/mnt/c/Users/Leonardo Amaral/Issabel/addons/build/4.0$ git diff
diff --git a/build/4.0/issabel-addons.spec b/build/4.0/issabel-addons.spec
index cf61c03..fad4d78 100644
--- a/build/4.0/issabel-addons.spec
+++ b/build/4.0/issabel-addons.spec
@@ -1,16 +1,17 @@
%define modname addons
+%undefine _disable_source_fetch
Summary: Issabel Addons
Name: issabel-%{modname}
Version: 4.0.0
-Release: 5
+Release: 20200612git
License: GPL
Group: Applications/System
-Source0: %{modname}_%{version}-%{release}.tgz
-Patch0: repo-40.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Source0: https://github.com/IssabelFoundation/%{modname}/archive/master.tar.gz
+Patch0: https://raw.githubusercontent.com/IssabelFoundation/%{modname}/master/build/4.0/patches/repo-40.patch
+BuildRoot: %{_tmppath}/%{modname}-master
BuildArch: noarch
-Requires(pre): issabel-framework >= 2.5.0-2
+Requires(pre): issabel-framework >= 2.5.0
Requires(pre): chkconfig, php-soap
Requires: yum
# commands: /usr/bin/uname
@@ -25,8 +26,7 @@ Obsoletes: elastix-addons
Issabel Addons
%prep
-%setup -n %{name}_%{version}-%{release}
-%patch0 -p0
+%autosetup -p0 -n %{modname}-master
%install
rm -rf $RPM_BUILD_ROOT
leonardo@XPS:/mnt/c/Users/Leonardo Amaral/Issabel/addons/build/4.0$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment