From b55ae85f3ae6f9c4bcc857b2b79125c102d3b180 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Fri, 6 Sep 2019 16:19:38 -0400 Subject: [PATCH] Initial packaging for Fedora (RH#1749869) --- .gitignore | 1 + libeconf.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ package.cfg | 2 ++ sources | 1 + 4 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 libeconf.spec create mode 100644 package.cfg create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..22b45ac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libeconf-0.3.0.tar.gz diff --git a/libeconf.spec b/libeconf.spec new file mode 100644 index 0000000..e2bff6c --- /dev/null +++ b/libeconf.spec @@ -0,0 +1,68 @@ +%global somajor 0 + +Name: libeconf +Version: 0.3.0 +Release: 1%{?dist} +Summary: Enhanced config file parser library + +License: MIT +URL: https://github.com/openSUSE/libeconf +## Doesn't include license file, will be in the next release +#Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: gcc +BuildRequires: make + +%description +libeconf is a highly flexible and configurable library to parse and manage +key=value configuration files. It reads configuration file snippets from +different directories and builds the final configuration file from it. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup + + +%build +autoreconf -fiv +%configure --disable-static +%make_build + + +%install +%make_install +find %{buildroot} -name '*.la' -print -delete + + +%check +%make_build check + + +%files +%license LICENSE +%doc NEWS README.md TODO.md +%{_libdir}/%{name}.so.%{somajor}{,.*} + +%files devel +%doc example/ +%{_includedir}/* +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + + +%changelog +* Fri Sep 6 2019 Neal Gompa - 0.3.0-1 +- Initial packaging for Fedora (RH#1749869) diff --git a/package.cfg b/package.cfg new file mode 100644 index 0000000..6b189b9 --- /dev/null +++ b/package.cfg @@ -0,0 +1,2 @@ +[koji] +targets = master fedora diff --git a/sources b/sources new file mode 100644 index 0000000..c943f0d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libeconf-0.3.0.tar.gz) = 71e81b8571fb7951b4fdf1e03fe9e33e54da22c75de928df3061ff844a2e8be04464b79fefb3d2198e4ed811fba72ae573525afac4e3807fa0e64731b94df28b