SPECS: yui.spec - use %php_data_dir macro

glen glen at pld-linux.org
Mon Dec 15 20:41:33 CET 2008


Author: glen                         Date: Mon Dec 15 19:41:33 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %php_data_dir macro

---- Files affected:
SPECS:
   yui.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/yui.spec
diff -u SPECS/yui.spec:1.2 SPECS/yui.spec:1.3
--- SPECS/yui.spec:1.2	Mon Dec 15 02:36:12 2008
+++ SPECS/yui.spec	Mon Dec 15 20:41:27 2008
@@ -8,11 +8,10 @@
 Source0:	http://dl.sourceforge.net/yui/%{name}_%{version}.zip
 # Source0-md5:	41bed4b882c9148cebff5dd1a0dd8727
 URL:		http://developer.yahoo.com/yui/
+BuildRequires:	rpmbuild(macros) >= 1.461
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_phpsharedir	%{_datadir}/php
-
 %description
 The Yahoo! User Interface (YUI) Library is a set of utilities and
 controls, written in JavaScript, for building richly interactive web
@@ -25,9 +24,8 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_phpsharedir}/yui
-
-cp -a build/* $RPM_BUILD_ROOT%{_phpsharedir}/yui
+install -d $RPM_BUILD_ROOT%{php_data_dir}/yui
+cp -a build/* $RPM_BUILD_ROOT%{php_data_dir}/yui
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -35,7 +33,7 @@
 %files
 %defattr(644,root,root,755)
 %doc README
-%{_phpsharedir}/yui
+%{php_data_dir}/yui
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -43,6 +41,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2008/12/15 19:41:27  glen
+- use %php_data_dir macro
+
 Revision 1.2  2008/12/15 01:36:12  adamg
 - install yui
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/yui.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list