]> git.pld-linux.org Git - packages/php-pecl-mono.git/commitdiff
- initial release - NFY
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 16 Feb 2003 12:52:45 +0000 (12:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-mono.spec -> 1.1

php-pecl-mono.spec [new file with mode: 0644]

diff --git a/php-pecl-mono.spec b/php-pecl-mono.spec
new file mode 100644 (file)
index 0000000..04768b3
--- /dev/null
@@ -0,0 +1,64 @@
+%define                _modname        mono
+%define                _status         alpha
+Summary:       Allows you to access .NET assemblies from PHP
+Summary(pl):   Pozwala na dostêp do wstawek .NET w PHP
+Name:          php-pecl-%{_modname}
+Version:       0.3.1
+Release:       0.1
+License:       PHP 2.02
+Group:         Development/Languages/PHP
+Source0:       http://pear.php.net/get/%{_modname}-%{version}.tgz
+URL:           http://pear.php.net/
+BuildRequires: php-devel
+Requires:      php-common
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/php
+%define                extensionsdir   %{_libdir}/php
+
+%description
+A C extension that interfaces with the mono library to allow access to
+.NET assemblies.
+
+This class has in PEAR status: %{_status}.
+
+%description -l pl
+Rozszerzenie w C, które jest interfejsem do biblioteki mono,
+pozwalaj±cym na dostêp do wstawek w .NET.
+
+Ta klasa ma w PEAR status: %{_status}.
+
+%prep
+%setup -q -c
+
+%build
+cd %{_modname}-%{version}
+phpize
+%configure \
+       --with-%{_modname}
+
+%{__make} \
+CPPFLAGS="-DHAVE_CONFIG_H -I%{_prefix}/X11R6/include/X11/" \
+       CFLAGS_CLEAN="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{extensionsdir}
+
+install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php.ini
+
+%preun
+if [ "$1" = "0" ]; then
+       %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php.ini
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{_modname}-%{version}/examples/{*.php,*.jpg,*.gif}
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
This page took 0.063849 seconds and 4 git commands to generate.