[packages/ctemplate] up to 2.2, new SONAME; enable tests; verbose files
glen
glen at pld-linux.org
Wed May 13 17:21:48 CEST 2015
commit 871249a90997af4ff61763524eb95948089d2e84
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed May 13 17:42:28 2015 +0300
up to 2.2, new SONAME; enable tests; verbose files
ctemplate.spec | 43 ++++++++++++++++++++++++++++---------------
1 file changed, 28 insertions(+), 15 deletions(-)
---
diff --git a/ctemplate.spec b/ctemplate.spec
index 1792c84..7ec071e 100644
--- a/ctemplate.spec
+++ b/ctemplate.spec
@@ -1,11 +1,17 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: Simple and powerful template language for C++
Name: ctemplate
-Version: 0.97
+Version: 2.2
Release: 1
License: BSD
Group: Applications
-Source0: http://google-ctemplate.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: 7de5ce359a2f613f5c3fd309b36331f0
+# Google Code no longer provides downloads for projects, upstream
+# refuses to use Google Drive, they ask users to fetch from svn repository by themselves.
+Source0: http://pkgs.fedoraproject.org/repo/pkgs/ctemplate/%{name}-%{version}.tar.gz/1de89d9073f473c1e31862c4581636f3/ctemplate-%{version}.tar.gz
+# Source0-md5: 1de89d9073f473c1e31862c4581636f3
URL: http://code.google.com/p/google-ctemplate/
BuildRequires: autoconf
BuildRequires: automake
@@ -64,7 +70,6 @@ Static CTemplate library.
%description static -l pl.UTF-8
Statyczna biblioteka CTemplate.
-
%prep
%setup -q
@@ -74,12 +79,13 @@ Statyczna biblioteka CTemplate.
%{__autoconf}
%{__automake}
export PTHREAD_LIBS="-lpthread"
-%configure
+%configure \
+ --disable-silent-rules
%{__make}
+%{?with_test:%{__make} check}
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -95,22 +101,29 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/make_tpl_varnames_h
%attr(755,root,root) %{_bindir}/template-converter
-%files doc
+%files libs
%defattr(644,root,root,755)
-%doc %{_docdir}/*
+%attr(755,root,root) %{_libdir}/libctemplate.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libctemplate.so.2
+%attr(755,root,root) %{_libdir}/libctemplate_nothreads.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libctemplate_nothreads.so.2
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libctemplate*.so
-%attr(755,root,root) %{_libdir}/libctemplate*.la
+%{_libdir}/libctemplate.so
+%{_libdir}/libctemplate_nothreads.so
+%{_libdir}/libctemplate.la
+%{_libdir}/libctemplate_nothreads.la
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
+%{_pkgconfigdir}/libctemplate.pc
+%{_pkgconfigdir}/libctemplate_nothreads.pc
-%files libs
+%files static
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libctemplate*.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libctemplate*.so.?
+%{_libdir}/libctemplate.a
+%{_libdir}/libctemplate_nothreads.a
-%files static
+%files doc
%defattr(644,root,root,755)
-%{_libdir}/libctemplate*.a
+%doc %{_docdir}/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ctemplate.git/commitdiff/abc72ad8fc10dd9b4ad281034e7eff40ec014afd
More information about the pld-cvs-commit
mailing list