diff --git a/gawk.changes b/gawk.changes index 71216b1..6cfd4c1 100644 --- a/gawk.changes +++ b/gawk.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Apr 10 07:39:22 UTC 2017 - josef.moellers@suse.com + +- Split off a seperate package "gawk-extensions-devel" + which contains the .h file describing the API, a set of + sample extensions and their manual pages. + ------------------------------------------------------------------- Mon Sep 5 20:27:40 UTC 2016 - astieger@suse.com diff --git a/gawk.spec b/gawk.spec index 2a7ee5a..f84895a 100644 --- a/gawk.spec +++ b/gawk.spec @@ -1,7 +1,7 @@ # # spec file for package gawk # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,9 +19,6 @@ Name: gawk Version: 4.1.4 Release: 0 -Summary: GNU awk -License: GPL-3.0+ -Group: Productivity/Text/Utilities Url: http://www.gnu.org/software/gawk/ Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig @@ -35,10 +32,22 @@ Requires(preun): update-alternatives Provides: awk BuildRoot: %{_tmppath}/%{name}-%{version}-build -%description +%pakage -n gawk +Summary: GNU awk +License: GPL-3.0+ +Group: Productivity/Text/Utilities + +%description -n gawk GNU awk is upwardly compatible with the System V Release 4 awk. It is almost completely POSIX 1003.2 compliant. +%package -n gawk-extensions-devel +Summary: Files and samples for gawk extensions +Group: System/Libraries + +%description -n gawk-extensions-devel +Contains API description and sample extensions for gawk + %prep %setup -q chmod -x COPYING @@ -73,7 +82,7 @@ ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} %{buildroot}%{_mandir}/man1/a %find_lang %{name} -%post +%post -n gawk %{_sbindir}/update-alternatives \ --install /bin/awk awk %{_bindir}/gawk 20 \ --slave %{_bindir}/awk usr-bin-awk %{_bindir}/gawk \ @@ -81,14 +90,14 @@ ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} %{buildroot}%{_mandir}/man1/a %install_info --info-dir=%{_infodir} %{_infodir}/gawk.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz -%preun +%preun -n gawk %install_info_delete --info-dir=%{_infodir} %{_infodir}/gawk.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz if [ $1 -eq 0 ]; then %{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk fi -%files -f %{name}.lang +%files -n gawk -f %{name}.lang %defattr(-,root,root) #UsrMerge /bin/awk @@ -105,12 +114,14 @@ fi %{_bindir}/gawk %{_bindir}/igawk %{_libdir}/awk -%{_libdir}/gawk %{_datadir}/awk -%{_includedir}/gawkapi.h %{_infodir}/*.info.gz %{_mandir}/man1/gawk.1%{?ext_man} %{_mandir}/man1/igawk.1%{?ext_man} + +%files -n gawk-extensions-devel +%{_libdir}/gawk +%{_includedir}/gawkapi.h %{_mandir}/man3/*%{?ext_man} %changelog