From 226b7f8d5e278d3a64070a77c243c46d8ba9ba59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Jul 2014 20:12:27 +0300 Subject: [PATCH] up to 1.0.0alpha1 --- satis.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/satis.spec b/satis.spec index 08237af..acc2142 100644 --- a/satis.spec +++ b/satis.spec @@ -1,13 +1,15 @@ +%define subver alpha1 +%define rel 0.1 %define php_min_version 5.3.4 %include /usr/lib/rpm/macros.php Summary: Package Repository Generator Name: satis Version: 1.0.0 -Release: 0.9 +Release: 1.%{subver}.%{rel} License: MIT Group: Development/Languages/PHP -Source0: https://github.com/composer/satis/archive/master.tar.gz?/%{name}-%{version}.tgz -# Source0-md5: 3f36d065a6bfc9adef23e2f0a74b42f3 +Source0: https://github.com/composer/satis/archive/%{version}-%{subver}/%{name}-%{version}%{subver}.tar.gz +# Source0-md5: 708ebffa7b7053ed19f65c470d8c1966 URL: https://github.com/composer/satis BuildRequires: composer BuildRequires: rpm-php-pearprov >= 4.4.2-11 @@ -32,15 +34,15 @@ It uses any composer.json file as input and dumps all the required Repository file. %prep -%setup -qc +%setup -qc -n %{name}-%{version}%{?subver} mv %{name}-*/* . %{__sed} -i -e '1s,^#!.*env php,#!%{__php},' bin/* %{__rm} composer.lock %build -COMPOSER_HOME=${PWD:=$(pwd)} \ -composer install --prefer-dist -v +COMPOSER_HOME=${PWD:-$(pwd)} \ +composer install --prefer-dist --no-dev -v %install rm -rf $RPM_BUILD_ROOT -- 2.44.0