Author: adamg Date: Sun Apr 23 15:25:27 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: c-ares.spec (NONE -> 1.1) (NEW), php-pecl-ares.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/c-ares.spec diff -u /dev/null SPECS/c-ares.spec:1.1 --- /dev/null Sun Apr 23 17:25:27 2006 +++ SPECS/c-ares.spec Sun Apr 23 17:25:21 2006 @@ -0,0 +1,92 @@ +# $Revision$, $Date$ +Summary: A library that performs asynchronous DNS operations +Summary(pl): Biblioteka do wykonywania synchronicznych zapytań DNS +Name: c-ares +Version: 1.3.0 +Release: 1 +License: MIT +Group: Libraries +Source0: http://daniel.haxx.se/projects/c-ares/%{name}-%{version}.tar.gz +# Source0-md5: badb4563a02d4188b478df31fa1b657d +URL: http://daniel.haxx.se/projects/c-ares/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +c-ares is a C library that performs DNS requests and name resolves +asynchronously. c-ares is a fork of the library named 'ares', written +by Greg Hudson at MIT. + +%description -l pl +c-ares jest napisaną w C biblioteką do asnchronicznego wykonywania +zapytań DNS. c-ares jest to fork biblioteki 'ares' napisanej przez +Grega Hudsona w MIT. + +%package devel +Summary: Development files for c-ares library +Summary: Pliki nagłówkowe dla biblioteki c-ares +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for c-ares library. + +%description devel -l pl +Pliki nagłówkowe biblioteki c-ares. + +%package static +Summary: Static c-ares library +Summary(pl): Statyczna biblioteka c-ares +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static c-ares library. + +%description static -l pl +Statyczna biblioteka c-ares. + +%prep +%setup -q + +%build +%configure \ + --enable-shared + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc README README.cares CHANGES NEWS +%attr(755,root,root) %{_libdir}/*.so.*.*.* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/*.so +%{_libdir}/*.la +%{_includedir}/* +%{_mandir}/man3/* + +%files static +%defattr(644,root,root,755) +%{_libdir}/*.a + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/04/23 15:25:21 adamg +- new + ================================================================ Index: SPECS/php-pecl-ares.spec diff -u /dev/null SPECS/php-pecl-ares.spec:1.1 --- /dev/null Sun Apr 23 17:25:27 2006 +++ SPECS/php-pecl-ares.spec Sun Apr 23 17:25:21 2006 @@ -0,0 +1,84 @@ +# $Revision$, $Date$ +%define _modname ares +%define _status beta +%define _sysconfdir /etc/php +%define extensionsdir %(php-config --extension-dir 2>/dev/null) + +Summary: %{_modname} - asynchronous resolver +Summary(pl): %{_modname} - asynchroniczny resolver +Name: php-pecl-%{_modname} +Version: 0.5.0 +Release: 1 +License: BSD +Group: Development/Languages/PHP +Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz +# Source0-md5: fa61755c1a4985cabc5a3526d50b49b1 +URL: http://pecl.php.net/package/ares/ +BuildRequires: c-ares-devel +BuildRequires: php-devel >= 3:5.0.0 +BuildRequires: rpmbuild(macros) >= 1.254 +%{?requires_php_extension} +Requires: %{_sysconfdir}/conf.d +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Binding for the ares (MIT) or c-ares (CURL) library. + +In PECL status of this extension is: %{_status}. + +%description -l pl +Dowiązania do biblioteki ares (MIT) lub c-ares (CURL). + +To rozszerzenie ma w PECL status: %{_status}. + +%prep +%setup -q -c + +%build +cd %{_modname}-%{version} +phpize +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d + +%{__make} install \ + -C %{_modname}-%{version} \ + INSTALL_ROOT=$RPM_BUILD_ROOT \ + EXTENSION_DIR=%{extensionsdir} + +cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini +; Enable %{_modname} extension module +extension=%{_modname}.so +EOF + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart +[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart + +%postun +if [ "$1" = 0 ]; then + [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart + [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart +fi + +%files +%defattr(644,root,root,755) +%doc %{_modname}-%{version}/{CREDITS,EXPERIMENTAL} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini +%attr(755,root,root) %{extensionsdir}/%{_modname}.so + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/04/23 15:25:21 adamg +- new + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
