!3 [feature]:Add spec to build rpm
From: @plt42 Reviewed-by: @cf-zhao Signed-off-by: @cf-zhao
This commit is contained in:
commit
60de0ff66a
BIN
tinytoml-0.4.tar.gz
Normal file
BIN
tinytoml-0.4.tar.gz
Normal file
Binary file not shown.
42
tinytoml.spec
Normal file
42
tinytoml.spec
Normal file
@ -0,0 +1,42 @@
|
||||
#
|
||||
# spec file for package tinytoml
|
||||
#
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: tinytoml
|
||||
Version: 0.4
|
||||
Release: 1
|
||||
License: simplified BSD License.
|
||||
Summary: A header only C++11 library for parsing TOML.
|
||||
Url: https://github.com/mayah/tinytoml
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Patch:
|
||||
# BuildRequires:
|
||||
|
||||
%description
|
||||
The tinytoml-devel package includes the header files of tinytoml.
|
||||
|
||||
%package devel
|
||||
Summary: Headers for tinytoml devel
|
||||
# Requires:
|
||||
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n tinytoml-%{version}
|
||||
|
||||
%build
|
||||
ls -l ./include
|
||||
cp -r ./include %{buildroot}
|
||||
ls -l %{buildroot}
|
||||
|
||||
%files devel
|
||||
/toml
|
||||
|
||||
%changelog
|
||||
* Tue Sep 19 2023 Zhu Jiameng <zhujiameng@huawei.com> - 0.4-1
|
||||
- update to 0.4-1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user