]>
Commit | Line | Data |
---|---|---|
7e1f3199 | 1 | Summary: ClearSilver HTML template system |
c0104669 | 2 | Summary(pl.UTF-8): ClearSilver - system szablonów HTML |
7e1f3199 | 3 | Name: clearsilver |
cbc2434b | 4 | Version: 0.10.5 |
b869338c | 5 | Release: 11 |
7e1f3199 AM |
6 | License: Apache License style |
7 | Group: Development/Libraries | |
7e1f3199 | 8 | Source0: http://www.clearsilver.net/downloads/%{name}-%{version}.tar.gz |
cbc2434b | 9 | # Source0-md5: b8c0c7fbe0ef5e06e0c935f134304d44 |
f5ebdc6c | 10 | Patch0: %{name}-pic.patch |
01fc3a5b | 11 | Patch1: format-security.patch |
8d22a10f | 12 | URL: http://www.clearsilver.net/ |
7e1f3199 | 13 | BuildRequires: autoconf |
8d22a10f | 14 | BuildRequires: automake |
7c02d67b | 15 | BuildRequires: perl-ExtUtils-MakeMaker |
16 | BuildRequires: perl-devel | |
8d22a10f | 17 | BuildRequires: python-devel |
2a09a2e4 | 18 | BuildRequires: python-modules |
19 | BuildRequires: rpm-pythonprov | |
8d22a10f JB |
20 | BuildRequires: zlib-devel |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
7e1f3199 AM |
22 | |
23 | %description | |
24 | ClearSilver is a fast, powerful, and language-neutral HTML template | |
25 | system. In both static content sites and dynamic HTML applications, it | |
26 | provides a separation between presentation code and application logic | |
27 | which makes working with your project easier. | |
28 | ||
355a54a3 JR |
29 | %description -l pl.UTF-8 |
30 | ClearSilver to szybki, potężny i niezależny od języka system szablonów | |
31 | HTML. Zarówno w statycznych stronach HTML jak i dynamicznych | |
2700b917 ER |
32 | aplikacjach pomaga oddzielić kod prezentacyjny od logiki aplikacji, co |
33 | ułatwia pracę nad projektem. | |
8d22a10f | 34 | |
7e1f3199 AM |
35 | %package devel |
36 | Summary: ClearSilver development package | |
c0104669 | 37 | Summary(pl.UTF-8): Pakiet programistyczny ClearSilver |
7e1f3199 AM |
38 | Group: Development/Libraries |
39 | ||
40 | %description devel | |
41 | This package provides needed files to develop extension to | |
42 | ClearSilver. | |
43 | ||
355a54a3 JR |
44 | %description devel -l pl.UTF-8 |
45 | Ten pakiet dostarcza pliki potrzebne do tworzenia rozszerzeń dla | |
8d22a10f JB |
46 | ClearSilver. |
47 | ||
7e1f3199 AM |
48 | %package -n python-clearsilver |
49 | Summary: Neotonic ClearSilver Python Module | |
c0104669 | 50 | Summary(pl.UTF-8): Moduł Pythona Neotonic ClearSilver |
7e1f3199 AM |
51 | Group: Development/Libraries |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description -n python-clearsilver | |
8d22a10f | 55 | This package provides a Python interface to the ClearSilver CGI kit |
7e1f3199 AM |
56 | and templating system. |
57 | ||
355a54a3 | 58 | %description -n python-clearsilver -l pl.UTF-8 |
8d22a10f | 59 | Ten pakiet dostarcza interfejs Pythona do zestawu CGI i systemu |
355a54a3 | 60 | szablonów ClearSilver. |
8d22a10f | 61 | |
7e1f3199 AM |
62 | %package -n perl-ClearSilver |
63 | Summary: Neotonic ClearSilver Perl Module | |
c0104669 | 64 | Summary(pl.UTF-8): Moduł Perla Neotonic ClearSilver |
7e1f3199 AM |
65 | Group: Development/Libraries |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description -n perl-ClearSilver | |
8d22a10f JB |
69 | This package provides a Perl interface to the ClearSilver templating |
70 | system. | |
71 | ||
355a54a3 JR |
72 | %description -n perl-ClearSilver -l pl.UTF-8 |
73 | Ten pakiet dostarcza interfejs Perla do systemu szablonów ClearSilver. | |
7e1f3199 AM |
74 | |
75 | %package -n ruby-clearsilver | |
76 | Summary: Neotonic ClearSilver Ruby Module | |
c0104669 | 77 | Summary(pl.UTF-8): Moduł Ruby'ego Neotonic ClearSilver |
7e1f3199 AM |
78 | Group: Development/Libraries |
79 | Requires: %{name} = %{version}-%{release} | |
80 | ||
81 | %description -n ruby-clearsilver | |
8d22a10f JB |
82 | This package provides a ruby interface to the ClearSilver templating |
83 | system. | |
84 | ||
355a54a3 JR |
85 | %description -n ruby-clearsilver -l pl.UTF-8 |
86 | Ten pakiet dostarcza interfejs języka Ruby do systemu szablonów | |
8d22a10f | 87 | ClearSilver. |
7e1f3199 AM |
88 | |
89 | %prep | |
90 | %setup -q | |
f5ebdc6c | 91 | %patch0 -p1 |
01fc3a5b | 92 | %patch1 -p1 |
7e1f3199 | 93 | |
584c8760 | 94 | find . -type f -print0 | xargs -0 perl -pi -e "s!/usr/local/bin!/usr/bin!g" |
95 | ||
7e1f3199 AM |
96 | %build |
97 | install /usr/share/automake/config.* . | |
98 | %{__aclocal} | |
99 | %{__autoconf} | |
100 | %configure \ | |
7e1f3199 | 101 | --disable-csharp \ |
f5ebdc6c | 102 | --disable-java \ |
7e1f3199 | 103 | --disable-ruby \ |
f5ebdc6c JB |
104 | --enable-apache \ |
105 | --enable-perl \ | |
2700b917 | 106 | --with-python=%{__python} |
7e1f3199 AM |
107 | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
8d22a10f JB |
114 | DESTDIR=$RPM_BUILD_ROOT \ |
115 | INSTALLDIRS=vendor | |
7e1f3199 AM |
116 | |
117 | %{__make} install -C python \ | |
584c8760 | 118 | PYTHON_SITE=%{py_sitedir} \ |
8d22a10f | 119 | DESTDIR=$RPM_BUILD_ROOT |
7e1f3199 AM |
120 | |
121 | %{__make} install -C perl \ | |
8d22a10f JB |
122 | DESTDIR=$RPM_BUILD_ROOT \ |
123 | INSTALLDIRS=vendor | |
7e1f3199 | 124 | |
8d22a10f JB |
125 | rm -rf $RPM_BUILD_ROOT%{perl_archlib} \ |
126 | $RPM_BUILD_ROOT%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist | |
7e1f3199 | 127 | |
2700b917 ER |
128 | # what an ass putting it to lib32 dir |
129 | %if "%{_lib}" != "lib" | |
130 | rm $RPM_BUILD_ROOT%{_prefix}/lib/python%{py_ver}/site-packages/neo_cgi.so | |
131 | %endif | |
132 | ||
7e1f3199 | 133 | %clean |
8d22a10f | 134 | rm -rf $RPM_BUILD_ROOT |
7e1f3199 AM |
135 | |
136 | %files | |
137 | %defattr(644,root,root,755) | |
138 | %doc CS_LICENSE INSTALL LICENSE README scripts/cs_lint.py contrib/cs-mode.el | |
7e1f3199 AM |
139 | %attr(755,root,root) %{_bindir}/* |
140 | ||
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
7e1f3199 | 143 | %{_libdir}/libneo_*.a |
f5ebdc6c JB |
144 | %{_includedir}/ClearSilver |
145 | %{_mandir}/man3/[!C]*.3* | |
7e1f3199 AM |
146 | |
147 | %files -n python-clearsilver | |
148 | %defattr(644,root,root,755) | |
149 | %doc README.python | |
7187ec13 | 150 | %attr(755,root,root) %{py_sitedir}/neo_cgi.so |
7e1f3199 AM |
151 | |
152 | %files -n perl-ClearSilver | |
153 | %defattr(644,root,root,755) | |
7e1f3199 | 154 | %{perl_vendorarch}/ClearSilver.pm |
f5ebdc6c | 155 | %dir %{perl_vendorarch}/auto/ClearSilver |
f5ebdc6c JB |
156 | %attr(755,root,root) %{perl_vendorarch}/auto/ClearSilver/ClearSilver.so |
157 | %{_mandir}/man3/ClearSilver.3pm* | |
7e1f3199 | 158 | |
2700b917 | 159 | %if 0 |
0a6564e6 | 160 | %files -n ruby-clearsilver |
2700b917 ER |
161 | %defattr(644,root,root,755) |
162 | %{ruby_sitepath}/%{ruby_version}/neo.rb | |
163 | %attr(755,root,root) %{ruby_sitepath}/%{ruby_version}/%{ruby_arch}/hdf.so | |
7e1f3199 | 164 | |
0a6564e6 | 165 | %files -n apache-mod_ecs |
2700b917 ER |
166 | %defattr(644,root,root,755) |
167 | %attr(755,root,root) %{apache_libexec}/mod_ecs.so | |
168 | %endif |