-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp-pear-HTML_Progress.spec
More file actions
105 lines (91 loc) · 3.7 KB
/
php-pear-HTML_Progress.spec
File metadata and controls
105 lines (91 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
%define _status stable
%define _pearname HTML_Progress
Summary: %{_pearname} - including a loading bar in your XHTML documents quickly and easily
Summary(pl.UTF-8): %{_pearname} - szybkie i łatwe dołączanie paska postępu w dokumentach XHTML
Name: php-pear-%{_pearname}
Version: 1.2.6
Release: 6
License: PHP 2.02
Group: Development/Languages/PHP
Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5: 08a80dadde1edb1e45ea44aa207d5a0a
Patch0: %{name}-smarty.patch
URL: http://pear.php.net/package/HTML_Progress/
BuildRequires: php-pear-PEAR >= 1:1.5.4
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.300
Requires: Smarty >= 2.6.10-4
Requires: php(core) >= 4.2.0
Requires: php-pear
Requires: php-pear-HTML_Common >= 1.2.1
Suggests: php-gd
Suggests: php-pear-Config
Suggests: php-pear-HTML_Page2
Suggests: php-pear-HTML_QuickForm
Suggests: php-pear-HTML_QuickForm_Controller
Suggests: php-pear-HTML_Template_IT
Suggests: php-pear-HTML_Template_Sigma
Suggests: php-pear-Image_Color
Suggests: php-pear-Log
Suggests: php-pear-PEAR
Obsoletes: php-pear-HTML_Progress-tests
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# exclude Smarty and optional dependencies and tests (HTML_TestListener.php, TestUnit.php)
%define _noautoreq_pear .*Smarty.class.php PEAR.* HTML/QuickForm.* HTML/QuickForm/Controller.* Image/Color.* HTML/Page2.* HTML/Template/IT.* HTML/Template/Sigma.* Log.* Config.* HTML_TestListener.php TestUnit.php
%description
This package provides a way to add a loading bar fully costomizable in
existing XHTML documents.
Your browser should accept DHTML feature.
Features:
- allows usage of an existing stylesheet for colors and size model
- all colors and size elements are customizable
- show or hide text percent information
- set/add and returns value of current status of progress
- compliant with all CSS/XHTML standards
- integration with template engine ITx family is possible
- create horizontal and also vertical bart
- optional message line come with progress status
- percent info is floating all around the progress bar
- scale can be changed (default is 100)
- legend of percent text info can be changed (default is "%%")
In PEAR status of this package is: %{_status}.
%description -l pl.UTF-8
Za pomocą tego pakietu można w łatwy sposób dodać w pełni
konfigurowalny pasek postępu w już istniejących dokumentach XHTML.
Przeglądarka powinna akceptować DHTML.
Cechy:
- możliwość używania już istniejących arkuszy CSS w celu określenia
rozmiaru i koloru
- możliwość zmiany kolorów i rozmiarów poszczególnych elementów
- pokazanie lub ukrycie tekstowej informacji o postępie
- ustawianie/dodawanie oraz zwracanie bieżącej informacji o postępie
- kompatybilny ze wszystkimi standardami CSS/XHTML
- możliwa integracja z rodziną szablonów ITx
- tworzenie poziomych oraz pionowych pasków postępu
- opcjonalna linia z komunikatem w statusie postępu
- procentowa informacja "pływa" dookoła paska postępu
- skala może być zmieniona (domyślnie 100)
- legenda procentowej informacji tekstowej może być zmieniona
(domyślnie "%%")
Ta klasa ma w PEAR status: %{_status}.
%prep
%pear_package_setup
%patch -P0 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_pear_dir}
%pear_package_install
%post
if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
cat %{_docdir}/%{name}-%{version}/optional-packages.txt
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc install.log optional-packages.txt
%doc docs/%{_pearname}/{ChangeLog,examples,HISTORY,INSTALL,LICENSE,README,Release-*,docs}
%{php_pear_dir}/.registry/*.reg
%{php_pear_dir}/HTML/Progress.php
%{php_pear_dir}/HTML/Progress