summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-05-18 07:46:35 +0200
committerRemi Collet <fedora@famillecollet.com>2015-05-18 07:46:35 +0200
commit6a83b84740df1fffdd440847b0ccef071c0f8e9e (patch)
tree88a34bae5725aa6a0e945a72417059d03ac2ac06
parentb195247631f40b97089277d1932c58a4c74d480f (diff)
php-mtdowling-jmespath-php; add backport stuff
-rw-r--r--Makefile4
-rw-r--r--php-mtdowling-jmespath-php.spec14
2 files changed, 16 insertions, 2 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..91b0fd5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../common/Makefile
+
diff --git a/php-mtdowling-jmespath-php.spec b/php-mtdowling-jmespath-php.spec
index 595c525..38a15ad 100644
--- a/php-mtdowling-jmespath-php.spec
+++ b/php-mtdowling-jmespath-php.spec
@@ -1,3 +1,4 @@
+# remirepo spec file for php-mtdowling-transducers from Fedora:
#
# RPM spec file for php-mtdowling-jmespath-php
#
@@ -35,6 +36,7 @@ License: MIT
URL: https://github.com/%{github_owner}/%{github_name}
Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
# For autoload generation
BuildRequires: %{_bindir}/phpab
@@ -69,8 +71,7 @@ in PHP applications with PHP data structures.
%setup -qn %{github_name}-%{github_commit}
: Modify bin script
-sed -e "s#/usr/bin/env php#%{_bindir}/php#" \
- -e "s#.*require.*autoload.*#require '%{phpdir}/JmesPath/autoload.php';#" \
+sed -e "s#.*require.*autoload.*#require '%{phpdir}/JmesPath/autoload.php';#" \
-i bin/jp.php
@@ -86,6 +87,7 @@ AUTOLOAD
%install
+rm -rf %{buildroot}
: Lib
mkdir -p %{buildroot}%{phpdir}/JmesPath
cp -rp src/* %{buildroot}%{phpdir}/JmesPath/
@@ -103,7 +105,12 @@ install -pm 0755 bin/jp.php %{buildroot}%{_bindir}/
%endif
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc CHANGELOG.md
@@ -114,5 +121,8 @@ install -pm 0755 bin/jp.php %{buildroot}%{_bindir}/
%changelog
+* Mon May 18 2015 Remi Collet <RPMS@FamilleCollet.com> - 2.1.0-1
+- add needed backport stuff for remi repository
+
* Sat May 16 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 2.1.0-1
- Initial package