]> git.pld-linux.org Git - packages/php-pear-Date_HumanDiff.git/blame - php-pear-Date_HumanDiff.spec
version and extension deps
[packages/php-pear-Date_HumanDiff.git] / php-pear-Date_HumanDiff.spec
CommitLineData
ef6cef90
ER
1%define status alpha
2%define pearname Date_HumanDiff
54b0414d 3%define php_min_version 5.0.0
ef6cef90
ER
4%include /usr/lib/rpm/macros.php
5Summary: %{pearname} - Generate textual time differences that are easily understandable by humans
6Name: php-pear-Date_HumanDiff
7Version: 0.4.0
8Release: 1
9License: LGPL
10Group: Development/Languages/PHP
11Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
12# Source0-md5: c7442bc2bb8e10167ac2350048875448
13URL: http://pear.php.net/package/Date_HumanDiff/
14BuildRequires: php-packagexml2cl
15BuildRequires: php-pear-PEAR
16BuildRequires: rpm-php-pearprov >= 4.4.2-11
17BuildRequires: rpmbuild(macros) >= 1.610
54b0414d
ER
18Requires: php(core) >= %{php_min_version}
19Requires: php(date)
20Requires: php(pcre)
ef6cef90
ER
21Requires: php-pear
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Generate textual time differences that are easily understandable by
27humans ("5 minutes ago"). The package supports minutes, hours, days,
28weeks, months and years. A time difference of 65 seconds gets
29converted to "a minute ago".
30
31In PEAR status of this package is: %{status}.
32
33%prep
34%pear_package_setup
35
36%build
37packagexml2cl package.xml > ChangeLog
38
39%install
40rm -rf $RPM_BUILD_ROOT
41install -d $RPM_BUILD_ROOT%{php_pear_dir}
42%pear_package_install
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(644,root,root,755)
49%doc ChangeLog install.log
50%doc docs/Date_HumanDiff/*
51%{php_pear_dir}/.registry/*.reg
52%{php_pear_dir}/Date/HumanDiff.php
53%dir %{php_pear_dir}/Date/HumanDiff
54%{php_pear_dir}/Date/HumanDiff/Locale.php
55%{php_pear_dir}/Date/HumanDiff/LocaleArray.php
56%dir %{php_pear_dir}/Date/HumanDiff/Locale
57%lang(de) %{php_pear_dir}/Date/HumanDiff/Locale/de.php
58%lang(el) %{php_pear_dir}/Date/HumanDiff/Locale/el.php
59%lang(fa) %{php_pear_dir}/Date/HumanDiff/Locale/fa.php
This page took 0.110578 seconds and 4 git commands to generate.