commit 43bc1bb1689afcf2f3d049351dde82d18ec1190e
Author: Jakub Bogusz <[email protected]>
Date:   Wed May 23 20:52:54 2018 +0200

    - added bootstrap bcond
    - LGPL version

 php-pear-Structures_Graph.spec | 29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/php-pear-Structures_Graph.spec b/php-pear-Structures_Graph.spec
index 9f81467..b4578f5 100644
--- a/php-pear-Structures_Graph.spec
+++ b/php-pear-Structures_Graph.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with    bootstrap       # bootstrap build without PEAR installed (for 
first php-pear-PEAR installation)
+
 %define                status          stable
 %define                pearname        Structures_Graph
 %include       /usr/lib/rpm/macros.php
@@ -6,12 +10,14 @@ Summary(pl.UTF-8):   %{pearname} - biblioteka do obróbki 
struktur danych grafów
 Name:          php-pear-%{pearname}
 Version:       1.1.1
 Release:       1
-License:       LGPL
+License:       LGPL v3+
 Group:         Development/Languages/PHP
 Source0:       http://pear.php.net/get/%{pearname}-%{version}.tgz
 # Source0-md5: ee63a3d24c94338af90334f3dd42c518
 URL:           http://pear.php.net/package/Structures_Graph/
+%if %{without bootstrap}
 BuildRequires: php-pear-PEAR
+%endif
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.654
 Requires:      php-pear >= 4:1.0-9.5
@@ -39,23 +45,38 @@ wyciągania charakterystyki z topologii grafu.
 Ta klasa ma w PEAR status: %{status}.
 
 %prep
+%if %{without bootstrap}
 %pear_package_setup
 
-mv docs/%{pearname}/docs/* .
+%{__mv} docs/%{pearname}/docs/* .
+%else
+%setup -q -c -n %{pearname}-%{version}
+%{__mv} %{pearname}-%{version}/* .
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_examplesdir}/%{name}-%{version}}
+
+%if %{without bootstrap}
 %pear_package_install
+
 cp -a tutorials/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%else
+cp -pr Structures $RPM_BUILD_ROOT%{php_pear_dir}
+
+cp -a docs/tutorials/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%if %{without bootstrap}
 %doc install.log
-%{php_pear_dir}/.registry/*.reg
-%{php_pear_dir}/Structures/*.php
+%{php_pear_dir}/.registry/structures_graph.reg
+%endif
+%{php_pear_dir}/Structures/Graph.php
 %{php_pear_dir}/Structures/Graph
 %{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pear-Structures_Graph.git/commitdiff/43bc1bb1689afcf2f3d049351dde82d18ec1190e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to