2 # - use system creole, propel, phing packages (or better do not do that to avoid incompatibilities?)
3 # - php deps autofinder finds a lot of crap (that's why we use manual R now), maybe there is a way to improve
4 %define pkgname symfony-lexpress
5 %define php_min_version 5.3.4
6 #include /usr/lib/rpm/macros.php
7 Summary: Open-source PHP web framework
8 Summary(pl.UTF-8): Szkielet aplikacji WWW w PHP o otwartych źródłach
12 License: various free licenses (distributable)
13 Group: Development/Languages/PHP
14 Source0: https://github.com/LExpress/symfony1/archive/v%{version}.tar.gz
15 # Source0-md5: e8b0f52bd71c07933c12f3319166fcbd
16 URL: https://github.com/LExpress/symfony1
17 BuildRequires: rpmbuild(macros) >= 1.461
19 Requires: php(core) >= %{php_min_version}
21 Requires: php-pear-Archive_Tar
22 Requires: php-pear-Log
23 Requires: php-pear-PEAR-core
25 Obsoletes: php-symfony
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _noautopear pear(Doctrine/.* pear(PHPUnit/.*) pear(PHPUnit2/.*) pear(phing/.*) pear(propel/.*) pear(simpletest/.*)
32 # exclude optional php dependencies
33 %define _noautophp %{nil}
35 # put it together for rpmbuild
36 %define _noautoreq %{?_noautophp} %{?_noautopear}
39 This is fork of Symfony 1.4.
41 Based on the best practices of web development, thoroughly tried on
42 several active websites, symfony aims to speed up the creation and
43 maintenance of web applications, and to replace the repetitive coding
44 tasks by power, control and pleasure.
46 Symfony provides a lot of features seamlessly integrated together,
48 - simple templating and helpers
52 - multilingualism and I18N support
53 - object model and MVC separation
57 %description -l pl.UTF-8
58 To jest alternatywna wersja Symfony 1.4.
60 Oparty na najlepszych praktykach tworzenia aplikacji WWW, gruntownie
61 wypróbowany na kilku aktywnych serwisach moduł symfony próbuje
62 przyspieszyć tworzenie i utrzymywanie aplikacji WWW oraz zastąpić
63 powtarzające się zadania kodowania potęgą, kontrolą i przyjemnością.
65 Symfony udostępnia wiele zintegrowanych w sposób przezroczysty cech,
67 - proste szablony i odwołania
68 - zarządzanie pamięcią podręczną
71 - obsługa wielojęzyczności i międzynarodowości
72 - rozdzielenie modelu obiektowego i MVC
74 - gotowość na zastosowania enterprise
77 %setup -q -n symfony1-%{version}
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_data_dir}/%{pkgname}}
83 cp -a data lib $RPM_BUILD_ROOT%{php_data_dir}/%{pkgname}
84 ln -s %{php_data_dir}/%{pkgname}/data/bin/%{pkgname} $RPM_BUILD_ROOT%{_bindir}/%{pkgname}
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc licenses CHANGELOG.md COPYRIGHT.md LICENSE.md README.md UPGRADE.md WHATS_NEW.md
92 %attr(755,root,root) %{_bindir}/*
93 %dir %{php_data_dir}/%{pkgname}
94 %dir %{php_data_dir}/%{pkgname}/data
95 %dir %{php_data_dir}/%{pkgname}/data/bin
96 %attr(755,root,root) %{php_data_dir}/%{pkgname}/data/bin/*
97 %{php_data_dir}/%{pkgname}/data/[!b]*
98 %{php_data_dir}/%{pkgname}/lib