This commit is contained in:
parent
6249595ae3
commit
baa088ae50
@ -1,9 +1,9 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 10 07:39:22 UTC 2017 - josef.moellers@suse.com
|
Mon Apr 10 07:39:22 UTC 2017 - josef.moellers@suse.com
|
||||||
|
|
||||||
- Split off a seperate package "gawk-devel"
|
- Added an explicit rpmlint rule to keep one file (gawkapi.h)
|
||||||
which contains the .h file describing the API, a set of
|
from requiring a separate package.
|
||||||
sample extensions and their manual pages.
|
[+gawk.rpmlintrc]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 5 20:27:40 UTC 2016 - astieger@suse.com
|
Mon Sep 5 20:27:40 UTC 2016 - astieger@suse.com
|
||||||
|
1
gawk.rpmlintrc
Normal file
1
gawk.rpmlintrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
addFilter("E: devel-file-in-non-devel-package")
|
22
gawk.spec
22
gawk.spec
@ -35,18 +35,10 @@ Requires(preun): update-alternatives
|
|||||||
Provides: awk
|
Provides: awk
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description -n gawk
|
%description
|
||||||
GNU awk is upwardly compatible with the System V Release 4 awk. It is
|
GNU awk is upwardly compatible with the System V Release 4 awk. It is
|
||||||
almost completely POSIX 1003.2 compliant.
|
almost completely POSIX 1003.2 compliant.
|
||||||
|
|
||||||
%package -n gawk-devel
|
|
||||||
Summary: Files and samples for gawk extensions
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: gawk = %{version}
|
|
||||||
|
|
||||||
%description -n gawk-devel
|
|
||||||
Contains API description and sample extensions for gawk
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
chmod -x COPYING
|
chmod -x COPYING
|
||||||
@ -81,7 +73,7 @@ ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} %{buildroot}%{_mandir}/man1/a
|
|||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%post -n gawk
|
%post
|
||||||
%{_sbindir}/update-alternatives \
|
%{_sbindir}/update-alternatives \
|
||||||
--install /bin/awk awk %{_bindir}/gawk 20 \
|
--install /bin/awk awk %{_bindir}/gawk 20 \
|
||||||
--slave %{_bindir}/awk usr-bin-awk %{_bindir}/gawk \
|
--slave %{_bindir}/awk usr-bin-awk %{_bindir}/gawk \
|
||||||
@ -89,14 +81,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}/gawk.info.gz
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
||||||
|
|
||||||
%preun -n gawk
|
%preun
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
%{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk
|
%{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files -n gawk -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
#UsrMerge
|
#UsrMerge
|
||||||
/bin/awk
|
/bin/awk
|
||||||
@ -113,14 +105,12 @@ fi
|
|||||||
%{_bindir}/gawk
|
%{_bindir}/gawk
|
||||||
%{_bindir}/igawk
|
%{_bindir}/igawk
|
||||||
%{_libdir}/awk
|
%{_libdir}/awk
|
||||||
|
%{_libdir}/gawk
|
||||||
|
%{_includedir}/gawkapi.h
|
||||||
%{_datadir}/awk
|
%{_datadir}/awk
|
||||||
%{_infodir}/*.info.gz
|
%{_infodir}/*.info.gz
|
||||||
%{_mandir}/man1/gawk.1%{?ext_man}
|
%{_mandir}/man1/gawk.1%{?ext_man}
|
||||||
%{_mandir}/man1/igawk.1%{?ext_man}
|
%{_mandir}/man1/igawk.1%{?ext_man}
|
||||||
|
|
||||||
%files -n gawk-devel
|
|
||||||
%{_libdir}/gawk
|
|
||||||
%{_includedir}/gawkapi.h
|
|
||||||
%{_mandir}/man3/*%{?ext_man}
|
%{_mandir}/man3/*%{?ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user