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