Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
ctemplate
ctemplate.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ctemplate.spec of Package ctemplate
# # spec file for package ctemplate # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define libname libctemplate3 Name: ctemplate Version: 2.3 Release: 0 Summary: Library for simple but powerful template language for C++ License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: https://github.com/OlafvdSpek/ctemplate Source: https://github.com/OlafvdSpek/ctemplate/archive/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: pkg-config BuildRequires: python BuildRoot: %{_tmppath}/%{name}-%{version}-build %description CTemplate is a simple but powerful template language for C++. It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. %package -n %{libname} Summary: Library for simple but powerful template language for C++ Group: Development/Libraries/C and C++ %description -n %{libname} CTemplate is a simple but powerful template language for C++. It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. %package -n libctemplate-devel Summary: Library for simple but powerful template language for C++ Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} %description -n libctemplate-devel CTemplate is a simple but powerful template language for C++. It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. %prep %setup -q -n %{name}-%{name}-%{version} %build %configure \ --disable-static \ --disable-silent-rules make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} find %{buildroot} -type f -name "*.la" -delete -print # remove not needed documentation (rpmlint recommended...) rm %{buildroot}%{_datadir}/doc/%{name}-%{version}/README_windows.txt rm %{buildroot}%{_datadir}/doc/%{name}-%{version}/INSTALL install -d %{buildroot}/%{_defaultdocdir}/%{name}-%{version} mv %{buildroot}%{_datadir}/doc/%{name}-%{version}/* %{buildroot}/%{_defaultdocdir}/%{name}-%{version} %check # 2 tests fail: seems while creating tmp files it dies # FAIL: template_cache_test # FAIL: template_nothreads_unittest make %{?_smp_mflags} check || : %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %dir %{_defaultdocdir}/%{name}-%{version} %{_defaultdocdir}/%{name}-%{version}/[A-Z]* %files -n libctemplate-devel %defattr(-,root,root) %{_bindir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %dir %{_includedir}/ctemplate %{_includedir}/ctemplate/*.h %{_defaultdocdir}/%{name}-%{version}/[a-z]* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor