diff options
author | Remi Collet <remi@remirepo.net> | 2017-05-31 06:40:09 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-05-31 06:40:09 +0200 |
commit | 5f3b9a0a052325316aec4e031e31f843138ff029 (patch) | |
tree | 10c2e4b65707cf8ca1cc5626ed04d822185dc91e | |
parent | 6554ace254235ab3e054e762dd075b22494fe73d (diff) |
cleanup
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | php-silex.spec | 21 |
2 files changed, 7 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ab5c4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/php-silex.spec b/php-silex.spec index bc7a673..b38e94d 100644 --- a/php-silex.spec +++ b/php-silex.spec @@ -60,7 +60,6 @@ URL: http://silex.sensiolabs.org Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root # Library version value check BuildRequires: php-cli # %%{pear_phpdir} macro @@ -247,8 +246,6 @@ AUTOLOAD %install -rm -rf %{buildroot} - mkdir -p %{buildroot}%{phpdir} cp -rp src/* %{buildroot}%{phpdir}/ @@ -284,31 +281,13 @@ rm -f \ tests/Silex/Tests/Application/SwiftmailerTraitTest.php : Run tests -run=0 -ret=0 -if which php56; then - php56 %{_bindir}/phpunit --bootstrap bootstrap.php || ret=1 - run=1 -fi -if which php71; then - php71 %{_bindir}/phpunit --bootstrap bootstrap.php || ret=1 - run=1 -fi -if [ $run -eq 0 ]; then %{_bindir}/phpunit --verbose --bootstrap bootstrap.php -fi -exit $ret %else : Tests skipped %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.rst |