From b20be7ba0f54bf084ae18a9f6abcd6e3b5d73781 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: May 30 2017 23:27:31 +0000 Subject: Initial packaging (#1433658) --- diff --git a/.gitignore b/.gitignore index e69de29..d41d5d9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mustache-d-0.1.3.tar.gz diff --git a/mustache-d-LICENSE.txt b/mustache-d-LICENSE.txt new file mode 100644 index 0000000..36b7cd9 --- /dev/null +++ b/mustache-d-LICENSE.txt @@ -0,0 +1,23 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/mustache-d.spec b/mustache-d.spec new file mode 100644 index 0000000..7037bb1 --- /dev/null +++ b/mustache-d.spec @@ -0,0 +1,66 @@ +# This library only produces a static library, so there's no generated debuginfo +%global debug_package %{nil} + +Name: mustache-d +Version: 0.1.3 +Release: 1%{?dist} +Summary: Mustache template engine for D + +License: Boost +URL: https://github.com/repeatedly/%{name} +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# Add license file referenced in the source code +# See https://github.com/repeatedly/mustache-d/issues/30 +Source1: http://www.boost.org/LICENSE_1_0.txt#/%{name}-LICENSE.txt + +BuildRequires: ldc +BuildRequires: meson + +ExclusiveArch: %{ldc_arches} + +%description +Mustache is a push-strategy (a.k.a logic-less) template engine. + +This package provides the implementation for D. + +%package devel +Summary: Development files for using %{name} +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} + +%description devel +Mustache is a push-strategy (a.k.a logic-less) template engine. + +This package provides the development headers and static library +for integrating support for the Mustache template engine into +applications written in D. + +%prep +%autosetup + +# Fix version in meson.build +sed -i "s/project_version = '.*'/project_version = '%{version}'/" meson.build + +# Rename license file +cp -a %{S:1} LICENSE + +%build +export DFLAGS="%{_d_optflags}" +%meson +%meson_build + +%install +%meson_install + +%files devel +%doc README.markdown example/ +%license LICENSE +%{_libdir}/*.a +%{_libdir}/pkgconfig/*.pc +%{_d_includedir}/%{name}/ + + +%changelog +* Tue May 30 2017 Neal Gompa - 0.1.3-1 +- Initial packaging (#1433658) diff --git a/sources b/sources index e69de29..08afcb2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (mustache-d-0.1.3.tar.gz) = ae70cc0ad0e94729ae2a2a8a8598a7489e457406fb61534641b25d7413749d3ba977591453fab438ce752a4b51d0f91777b5c470f53d7e3884a9f70aad736ded