]>
Commit | Line | Data |
---|---|---|
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 |
5 | Summary: %{pearname} - Generate textual time differences that are easily understandable by humans | |
6 | Name: php-pear-Date_HumanDiff | |
7 | Version: 0.4.0 | |
8 | Release: 1 | |
9 | License: LGPL | |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz | |
12 | # Source0-md5: c7442bc2bb8e10167ac2350048875448 | |
13 | URL: http://pear.php.net/package/Date_HumanDiff/ | |
14 | BuildRequires: php-packagexml2cl | |
15 | BuildRequires: php-pear-PEAR | |
16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
17 | BuildRequires: rpmbuild(macros) >= 1.610 | |
54b0414d ER |
18 | Requires: php(core) >= %{php_min_version} |
19 | Requires: php(date) | |
20 | Requires: php(pcre) | |
ef6cef90 ER |
21 | Requires: php-pear |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Generate textual time differences that are easily understandable by | |
27 | humans ("5 minutes ago"). The package supports minutes, hours, days, | |
28 | weeks, months and years. A time difference of 65 seconds gets | |
29 | converted to "a minute ago". | |
30 | ||
31 | In PEAR status of this package is: %{status}. | |
32 | ||
33 | %prep | |
34 | %pear_package_setup | |
35 | ||
36 | %build | |
37 | packagexml2cl package.xml > ChangeLog | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
42 | %pear_package_install | |
43 | ||
44 | %clean | |
45 | rm -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 |