Skip to content

Instantly share code, notes, and snippets.

@gboddin
Created August 19, 2016 10:10
Show Gist options
  • Save gboddin/50718a9d914e62c06f97d98a07fd7b56 to your computer and use it in GitHub Desktop.
Save gboddin/50718a9d914e62c06f97d98a07fd7b56 to your computer and use it in GitHub Desktop.
php el6 patch makerpm
--- makerpm 2016-08-18 11:07:46.000000000 +0000
+++ makerpm-patched 2016-08-19 10:10:19.415245429 +0000
@@ -42,8 +42,8 @@
Version: PVERSION
Release: PRELEASE
Group: Networking/Daemons
-Source0: http://www.php.net/distributions/php-%{PACKAGE_VERSION}.tar.gz
-Copyright: PHP License
+Source0: http://www.php.net/distributions/php-PVERSION.tar.gz
+License: PHP License
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: PREQUIRES
@@ -55,7 +55,7 @@
%prep
%setup -q -n TARDIR
#mkdir manual; cd manual && tar xzf $RPM_SOURCE_DIR/php3-manual.tar.gz
-./buildconf
+./buildconf --force
%build
# first the standalone (why can't you build both at once?)
@@ -200,4 +200,4 @@
#cp -a *.patch $SRCDIR
cd $SRCDIR
cd $SPECDIR
-rpm -ba -v ${SPEC}
+rpmbuild -ba -v ${SPEC}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment