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