Initial import (#1359412).

This commit is contained in:
Andrew J. Schorr 2017-10-07 16:36:16 -04:00
parent 8ec3a4c8ab
commit 75636413bc
4 changed files with 88 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/gawkextlib-1.0.3.tar.gz

View File

@ -1,3 +0,0 @@
# gawkextlib
The gawkextlib package

86
gawkextlib.spec Normal file
View File

@ -0,0 +1,86 @@
Name: gawkextlib
Summary: Library providing common infrastructure for gawk extension libraries
Version: 1.0.3
Release: 1%{?dist}
License: GPLv3+
URL: https://sourceforge.net/projects/gawkextlib
Source: %{url}/files/%{name}-%{version}.tar.gz
Requires: gawk
BuildRequires: gawk-devel
# Make sure the API version is compatible with our source code:
BuildRequires: gawk(abi) >= 1.1
BuildRequires: gawk(abi) < 3.0
# At runtime, the ABI must be compatible with the compile-time version
%global gawk_api_version %(gawk 'match($0, /#define gawk_api_(major|minor)_version[[:space:]]+([[:digit:]]+)/, f) {v[f[1]] = f[2]} END {print (v["major"] "." v["minor"])}' /usr/include/gawkapi.h)
Requires: gawk(abi) >= %{gawk_api_version}
Requires: gawk(abi) < %(echo %{gawk_api_version} | gawk -F. '{printf "%d.0\n", $1+1}')
# This is the default as of Fedora 23:
%global _hardened_build 1
%description
%{name} is a library providing common support infrastructure for gawk
extensions. This package provides 'libgawkextlib', which is used by various
gawk extension modules -- for example gawk-xml, gawk-pgsql, and more.
%package devel
Summary: Header files and libraries for gawkextlib development
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: gawk-devel
%description devel
The %{name}-devel package contains the header files and libraries
needed to develop gawk extension modules that use %{name} facilities.
# =============================================================================
%prep
%autosetup
%build
%configure
make %{?_smp_mflags}
%check
make check
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%doc NEWS
%{_libdir}/lib%{name}.so.*
%files devel
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}.h
# =============================================================================
%changelog
* Sat Jul 23 2016 Andrew Schorr <ajschorr@fedoraproject.org> - 1.0.3-1
- Rebuilt for new release
* Thu Oct 30 2014 Andrew Schorr <ajschorr@fedoraproject.org> - 1.0.0-1
* Restructure so each extension package will be distributed separately.
* Fri Aug 31 2012 Andrew Schorr <ajschorr@fedoraproject.org> - 0.3.9-1
- Update a few obsolete references to xmlgawk to say gawkextlib.
* Sun Jul 22 2012 Andrew Schorr <ajschorr@fedoraproject.org> - 0.3.0-1
- Rename from gawklib to gawkextlib.
* Sat Jul 21 2012 Andrew Schorr <ajschorr@fedoraproject.org> - 0.2.0-1
- This version has been tested and should work.
* Thu Jul 19 2012 Andrew Schorr <ajschorr@fedoraproject.org> - 0.1.9-1
- Initial packaging. This has not been tested and almost certainly contains
errors.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (gawkextlib-1.0.3.tar.gz) = c89e6bebe4a22ecace88af45a229226591b76a24b960c3d4e896b0b12ea7bea8bd3a069fd2483b6ce18cb566f154d53dc4480c0231cf99f708b9819b704f3c71