]> git.pld-linux.org Git - packages/MagickWandForPHP.git/blame - MagickWandForPHP.spec
- "see LICENSE" is not a license name
[packages/MagickWandForPHP.git] / MagickWandForPHP.spec
CommitLineData
cd91de18 1Summary: MagickWand ImageMagick API for PHP
eb98eae3 2Summary(pl.UTF-8): API ImageMagick MagickWand dla PHP
cd91de18
PG
3Name: MagickWandForPHP
4Version: 1.0.5
989c392f 5Release: 1
02590036 6License: ImageMagick (Apache-like)
cd91de18
PG
7Group: Libraries
8Source0: http://www.magickwand.org/download/php/%{name}-%{version}.tar.bz2
9# Source0-md5: b52a5b7cf4db7078fa3db4cb6e55ecf4
44fc618c 10Source1: %{name}.ini
989c392f 11URL: http://www.magickwand.org/
44fc618c 12BuildRequires: ImageMagick-devel >= 6.3.5.9
cd91de18
PG
13BuildRequires: php-devel >= 3:5.0.0
14BuildRequires: rpmbuild(macros) >= 1.344
15%requires_eq php-common
16%{?requires_php_extension}
17Requires: php-common >= 4:5.0.4
cd91de18
PG
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _webapps /etc/webapps
21%define _webapp %{_name}
22%define _sysconfdir %{_webapps}/%{_webapp}
23%define _appdir %{_datadir}/%{_webapp}
24
25%description
eb98eae3
JB
26The MagickWand API is the recommended interface between the C
27programming language and the ImageMagick image processing libraries.
28Unlike the MagickCore C API, MagickWand uses only a few opaque types.
29Accessors are available to set or get important wand properties.
30
31%description -l pl.UTF-8
32API MagickWand jest zalecanym interfejsem między językiem C a
33bibliotekami przetwarzania obrazu ImageMagick. W przeciwieństwie do
34API C MagickCore, MagickWand używa tylko kilku nieprzejrzystych typów.
35Dostępne są funkcje dostępowe do ustawiania i pobierania istotnych
36właściwości wand.
cd91de18
PG
37
38%prep
39%setup -q
40
41%build
42phpize
43%configure \
44 --with-php-config=%{_bindir}/php-config
45
46%{__make}
47
48%install
49rm -rf $RPM_BUILD_ROOT
989c392f 50install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
cd91de18 51
989c392f
PG
52install modules/magickwand.so $RPM_BUILD_ROOT%{php_extensiondir}
53install %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_name}.ini
cd91de18
PG
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%post
59%php_webserver_restart
60
61%postun
62if [ "$1" = 0 ]; then
63 %php_webserver_restart
64fi
65
66%files
67%defattr(644,root,root,755)
989c392f
PG
68%doc AUTHOR CREDITS ChangeLog LICENSE README TODO run-tests.php
69%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_name}.ini
70%attr(755,root,root) %{php_extensiondir}/magickwand.so
This page took 0.039861 seconds and 4 git commands to generate.