3 %bcond_without tests # build without tests
4 %bcond_without static_libs # don't build static libraries
6 Summary: Simple and powerful template language for C++
12 # Google Code no longer provides downloads for projects, upstream
13 # refuses to use Google Drive, they ask users to fetch from svn repository by themselves.
14 Source0: http://pkgs.fedoraproject.org/repo/pkgs/ctemplate/%{name}-%{version}.tar.gz/1de89d9073f473c1e31862c4581636f3/ctemplate-%{version}.tar.gz
15 # Source0-md5: 1de89d9073f473c1e31862c4581636f3
16 URL: http://code.google.com/p/google-ctemplate/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 CTemplate is a simple and powerful template language for C++. It
25 emphasizes separating logic from presentation: it is impossible to
26 embed application logic in this template language.
29 Summary: CTemplate library
30 Summary(pl.UTF-8): Biblioteka CTemplate
34 This package contains CTemplate library.
36 %description libs -l pl.UTF-8
37 Ten pakiet zawiera bibliotekę CTemplate.
40 Summary: CTemplate documentation
41 Summary(pl.UTF-8): Dokumentacja CTemplate
42 Group: Development/Libraries
45 CTemplate documentation.
47 %description doc -l pl.UTF-8
48 Dokumentacja CTemplate.
51 Summary: Header files for CTemplate
52 Summary(pl.UTF-8): Pliki nagłówkowe CTemplate
53 Group: Development/Libraries
54 Requires: %{name}-libs = %{version}-%{release}
57 Header files for CTemplate.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe CTemplate.
63 Summary: Static CTemplate library
64 Summary(pl.UTF-8): Statyczna biblioteka CTemplate
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
69 Static CTemplate library.
71 %description static -l pl.UTF-8
72 Statyczna biblioteka CTemplate.
82 export PTHREAD_LIBS="-lpthread"
84 %{!?with_static_libs:--disable-static} \
85 --disable-silent-rules
87 %{?with_test:%{__make} check}
90 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
97 %post libs -p /sbin/ldconfig
98 %postun libs -p /sbin/ldconfig
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/diff_tpl_auto_escape
103 %attr(755,root,root) %{_bindir}/make_tpl_varnames_h
104 %attr(755,root,root) %{_bindir}/template-converter
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libctemplate.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libctemplate.so.2
110 %attr(755,root,root) %{_libdir}/libctemplate_nothreads.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libctemplate_nothreads.so.2
114 %defattr(644,root,root,755)
115 %{_libdir}/libctemplate.so
116 %{_libdir}/libctemplate_nothreads.so
117 %{_libdir}/libctemplate.la
118 %{_libdir}/libctemplate_nothreads.la
119 %dir %{_includedir}/%{name}
120 %{_includedir}/%{name}/*.h
121 %{_pkgconfigdir}/libctemplate.pc
122 %{_pkgconfigdir}/libctemplate_nothreads.pc
124 %if %{with static_libs}
126 %defattr(644,root,root,755)
127 %{_libdir}/libctemplate.a
128 %{_libdir}/libctemplate_nothreads.a
132 %defattr(644,root,root,755)