SPECS: php-pecl-newt.spec - unify examples location - discard subdir in build

glen glen at pld-linux.org
Mon Feb 2 13:10:53 CET 2009


Author: glen                         Date: Mon Feb  2 12:10:53 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unify examples location
- discard subdir in build

---- Files affected:
SPECS:
   php-pecl-newt.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/php-pecl-newt.spec
diff -u SPECS/php-pecl-newt.spec:1.21 SPECS/php-pecl-newt.spec:1.22
--- SPECS/php-pecl-newt.spec:1.21	Sun Feb  1 19:51:00 2009
+++ SPECS/php-pecl-newt.spec	Mon Feb  2 13:10:48 2009
@@ -49,22 +49,23 @@
 
 %prep
 %setup -q -c
+mv %{_modname}-%{version}/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{cli,conf}.d,%{extensionsdir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{cli,conf}.d,%{extensionsdir},%{_examplesdir}}
 
-install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+install modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/cli.d/%{_modname}.ini
 ; Enable %{_modname} extension module
 extension=%{_modname}.so
 EOF
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -74,9 +75,10 @@
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/{CREDITS,TODO,examples}
+%doc CREDITS TODO
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/%{_modname}.ini
 %attr(755,root,root) %{extensionsdir}/%{_modname}.so
+%{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -84,6 +86,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2009/02/02 12:10:48  glen
+- unify examples location
+- discard subdir in build
+
 Revision 1.21  2009/02/01 18:51:00  adamg
 - updated to 1.2.1
 - package examples
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pecl-newt.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list