]>
Commit | Line | Data |
---|---|---|
a4d83ee8 | 1 | Summary: Simple and powerful template language for C++ |
2 | Name: ctemplate | |
ff8b03c4 | 3 | Version: 0.93 |
b158902c | 4 | Release: 1 |
a4d83ee8 | 5 | License: BSD |
6 | Group: Applications | |
7 | Source0: http://google-ctemplate.googlecode.com/files/%{name}-%{version}.tar.gz | |
ff8b03c4 | 8 | # Source0-md5: bd42a10bbbcf3e4bffd21663c0bd61fa |
a4d83ee8 | 9 | URL: http://code.google.com/p/google-ctemplate/ |
10 | BuildRequires: libstdc++-devel | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | CTemplate is a simple and powerful template language for C++. It | |
15 | emphasizes separating logic from presentation: it is impossible to | |
16 | embed application logic in this template language. | |
17 | ||
18 | %package libs | |
19 | Summary: CTemplate library | |
20 | Summary(pl.UTF-8): Biblioteka CTemplate | |
21 | Group: Libraries | |
22 | ||
23 | %description libs | |
24 | This package contains CTemplate library. | |
25 | ||
26 | %description libs -l pl.UTF-8 | |
27 | Ten pakiet zawiera bibliotekę CTemplate. | |
28 | ||
29 | %package doc | |
30 | Summary: CTemplate documentation | |
31 | Summary(pl.UTF-8): Dokumentacja CTemplate | |
32 | Group: Development/Libraries | |
33 | ||
34 | %description doc | |
35 | CTemplate documentation. | |
36 | ||
37 | %description doc -l pl.UTF-8 | |
38 | Dokumentacja CTemplate. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for CTemplate | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe CTemplate | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-libs = %{version}-%{release} | |
45 | ||
46 | %description devel | |
47 | Header files for CTemplate. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe CTemplate. | |
51 | ||
52 | %package static | |
53 | Summary: Static CTemplate library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka CTemplate | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static CTemplate library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka CTemplate. | |
63 | ||
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
69 | %configure | |
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post libs -p /sbin/ldconfig | |
82 | %postun libs -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_bindir}/diff_tpl_auto_escape | |
87 | %attr(755,root,root) %{_bindir}/make_tpl_varnames_h | |
88 | %attr(755,root,root) %{_bindir}/template-converter | |
89 | ||
90 | %files doc | |
91 | %defattr(644,root,root,755) | |
40e180dc | 92 | %doc %{_docdir}/* |
a4d83ee8 | 93 | |
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_libdir}/libctemplate*.so | |
97 | %attr(755,root,root) %{_libdir}/libctemplate*.la | |
98 | %dir %{_includedir}/google | |
99 | %{_includedir}/google/*.h | |
100 | ||
101 | %files libs | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libctemplate*.so.*.*.* | |
104 | %ghost %attr(755,root,root) %{_libdir}/libctemplate*.so.? | |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libctemplate*.a |