[packages/satis] up to 1.0.0alpha1
glen
glen at pld-linux.org
Wed Jul 16 19:12:46 CEST 2014
commit 226b7f8d5e278d3a64070a77c243c46d8ba9ba59
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jul 16 20:12:27 2014 +0300
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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/satis.git/commitdiff/226b7f8d5e278d3a64070a77c243c46d8ba9ba59
More information about the pld-cvs-commit
mailing list