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