Initial packaging for Fedora (RH#1749869)
This commit is contained in:
parent
95fe93b160
commit
b55ae85f3a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/libeconf-0.3.0.tar.gz
|
68
libeconf.spec
Normal file
68
libeconf.spec
Normal file
@ -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 <ngompa13@gmail.com> - 0.3.0-1
|
||||
- Initial packaging for Fedora (RH#1749869)
|
2
package.cfg
Normal file
2
package.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
[koji]
|
||||
targets = master fedora
|
Loading…
Reference in New Issue
Block a user