1 %include /usr/lib/rpm/macros.php
5 %define _pearname PHP_UML
6 Summary: %{_pearname} - produce an UML/XMI representation of the classes and packages found on system
7 Summary(pl.UTF-8): %{_pearname} - tworzenie struktury UML/XMI klas i pakietów znalezionych w systemie
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 15507c3d92345946cc76e69adf889e24
15 URL: http://pear.php.net/package/PHP_UML/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 PHP_UML is a PHP parser, an XMI generator, as well as a
24 metamodel-driven application. Practically, with PHP_UML, you can feed
25 an UML CASE tool, like Rational Rose or Argouml, with an UML
26 representation of existing PHP source code. This way, you get an
27 instant overview of a given application, with all the usual functions
28 of a software design tool, like class diagrams exportation,
29 refactoring of object-oriented applications, or automatic code
33 - Parses classes, interfaces, inheritance and implementation
35 - Parses properties, class constants, visibility and static
37 - Parses functions, their parameters, their default values, their
39 - Parses docblock comments : class comments (@package), function
40 comments (@param and @return) and header file comments (@package),
41 - Interprets the PHP namespacing instructions ("namespace" and "use"),
42 - Does automatic type detection, through the default values,
43 - Generates UML in version 1.4, and version 2.1,
44 - Generates logical, component, and deployment views,
46 Other UML elements will be available in future releases.
48 In PEAR status of this package is: %{_status}.
50 %description -l pl.UTF-8
51 PHP_UML to parser PHP, generator XML jak również aplikacja wzorowana
52 na meta-model. Praktycznie rzecz biorąc, za pomocą PHP_UML możliwe
53 jest przekazanie narzędziom UML CASE, takim jak Rational Rose czy
54 Argouml, schematu UML kodu PHP. W ten sposób możliwe jest
55 natychmiastowy podgląd aplikacji, ze wszystkimi funkcjami narzędzi do
56 projektowania aplikacjia, takimi jak eksportem diagramów funkcji,
57 refaktoryzacji zorientowanych obiektowo aplikacji, czy automatycznego
61 - przetwarzanie relacji klas, interfejsów, dziedziczenia i
63 - przetwarzanie właściwości, stałych, widoczności i stałych atrybutów
65 - przetwarzanie funkcji, ich parametrów, zwracanych funkcji i typów
67 - przetwarzanie komentarzy docblook : komentarzy klas (@package),
68 funkcji (@param i @return) i nagłówków plików (@package),
69 - interpretacja instrukcji przestrzeni nazw PHP ("namespace" i "use"),
70 - autoamtyczna detekcja typu z pomocą domyślnych wartości,
71 - generowania UML w wersji 1.4 i 2.1
72 - generowanie widoków logicznych, komponentów.
74 Ta klasa ma w PEAR status: %{_status}.
77 Summary: Tests for PEAR::%{_pearname}
78 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
79 Group: Development/Languages/PHP
81 Requires: %{name} = %{version}-%{release}
85 Tests for PEAR::%{_pearname}.
87 %description tests -l pl.UTF-8
88 Testy dla PEAR::%{_pearname}.
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT%{php_pear_dir}
99 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc install.log docs/PHP_UML/{docs,examples}
104 %{php_pear_dir}/.registry/*.reg
105 %{php_pear_dir}/PHP/UML
106 %{php_pear_dir}/PHP/UML.php
109 %defattr(644,root,root,755)
110 %{php_pear_dir}/tests/PHP_UML