Author: adamg Date: Sat Apr 11 18:22:37 2009 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: php-pecl-markdown.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/php-pecl-markdown.spec diff -u /dev/null SPECS/php-pecl-markdown.spec:1.1 --- /dev/null Sat Apr 11 20:22:37 2009 +++ SPECS/php-pecl-markdown.spec Sat Apr 11 20:22:32 2009 @@ -0,0 +1,164 @@ +# $Revision$, $Date$ +%define _modname markdown +%define _status alpha +Summary: %{_modname} - a fast Markdown parser +Summary(pl.UTF-8): %{_modname} - szybki parser Markdown +Name: php-pecl-%{_modname} +Version: 0.1.0 +Release: 1 +License: PHP 2.02 +Group: Development/Languages/PHP +Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz +# Source0-md5: 2572ee07e20e69b8d99aeccf016e19cc +URL: http://pecl.php.net/package/Modname/ +BuildRequires: php-devel >= 3:5.0.0 +BuildRequires: rpmbuild(macros) >= 1.344 +%{?requires_php_extension} +Requires: php-common >= 4:5.0.4 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Markdown is an extension to parse a Markdown text, from a string or a +file. It is fast and has a simple API. + +In PECL status of this extension is: %{_status}. + +%description -l pl.UTF-8 +Markdown to rozszerzenie umożliwiające parsowanie pochodzącego z +łańcucha znaków lub pliku tekstu Markdown. Rozszerzenie to jest +szybkie i posiada proste w użyciu API. + +To rozszerzenie ma w PECL status: %{_status}. + +%prep +%setup -q -c +mv %{_modname}-%{version}/* . + +%build +phpize +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d + +%{__make} install \ + INSTALL_ROOT=$RPM_BUILD_ROOT \ + EXTENSION_DIR=%{php_extensiondir} +cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini +; Enable %{_modname} extension module +extension=%{_modname}.so +EOF + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%php_webserver_restart + +%postun +if [ "$1" = 0 ]; then + %php_webserver_restart +fi + +%files +%defattr(644,root,root,755) +%doc CREDITS EXPERIMENTAL +%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini +%attr(755,root,root) %{php_extensiondir}/%{_modname}.so + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <feedb...@pld-linux.org> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2009/04/11 18:22:32 adamg +- new + +Revision 1.28 2008/12/04 15:23:22 glen +- no extra subdir + +Revision 1.27 2007/02/12 22:09:17 glen +- tabs in preamble + +Revision 1.26 2007/02/12 01:06:34 baggins +- converted to UTF-8 + +Revision 1.25 2006/12/15 12:33:32 glen +- cleanup + +Revision 1.24 2006/12/14 23:28:18 glen +- ah, just use package names + +Revision 1.23 2006/12/14 23:25:15 glen +- fix for initially undefined macro + +Revision 1.22 2006/12/14 23:17:59 glen +- use new php extension related macros + +Revision 1.21 2006/11/02 23:09:09 glen +- BR rpmmacros for fixed %requires_php_extension + +Revision 1.20 2005/12/25 20:59:17 glen +- use make to install extension + +Revision 1.19 2005/10/31 09:07:45 glen +- up macros requirement + +Revision 1.18 2005/09/13 23:18:36 glen +- workaround for spec parser having macro undefined yet and not seeing BR + +Revision 1.17 2005/09/13 21:10:19 glen +- increase rpmmacros rev + +Revision 1.16 2005/09/13 18:15:48 glen +- use new macro for PHP_MODULES_API +- do not have Obsoletes in template (obsoletes should be added only if needed, not fill all new packages with it :/) + +Revision 1.15 2005/09/07 11:35:11 glen +- adapterize + +Revision 1.14 2005/09/05 13:42:27 adamg +- fixed define call and creation of conf.d directory + +Revision 1.13 2005/08/26 20:17:55 glen +- this is for php5 + +Revision 1.12 2005/08/26 20:17:12 glen +- add needed rpmbuild(macros) >= 1.228 for %service macro + +Revision 1.11 2005/08/26 16:15:39 adamg +- conf.d support + +Revision 1.10 2004/08/07 17:47:11 adamg +- ok, let's force php5 for pecl extensions + +Revision 1.9 2004/05/30 16:13:15 adamg +- fixed english information about status of the package; cosmetics + +Revision 1.8 2003/10/21 11:17:28 adamg +- added default doc files + +Revision 1.7 2003/10/15 17:37:05 adamg +- it finally happened - PECL separated from PEAR and moved to its own + repository, thus changes in urls (s/pear/pecl/) + +Revision 1.6 2003/10/07 20:50:01 adamg +- do not use macros in URL + +Revision 1.5 2003/08/31 20:49:12 adamg +- more specific URL + +Revision 1.4 2003/08/18 08:09:35 gotar +- mass commit: cosmetics (removed trailing white spaces) + +Revision 1.3 2003/06/12 12:31:48 qboosh +- cosmetics + +Revision 1.2 2003/06/11 23:09:37 adamg +- fixed package status information + +Revision 1.1 2003/06/11 17:18:49 adamg +- initial import of PECL template ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit