awka/awka.spec

79 lines
2.2 KiB
RPMSpec

Name: awka
Version: 0.7.5
Release: 4mamba
Summary: Translator of the AWK programming language to ANSI-C
Group: Applications/Text
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://awka.sourceforge.net/
Source: http://awka.sourceforge.net/%{name}-%{version}.tar.gz
Patch: awka-%{version}-DESTDIR.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%description
Awka is an open-source implementation of the AWK programming language and is actually two products:
- the AWK to C translator
- a library against which the C code is linked
Awka is not an interpreter like Gawk, Mawk or Nawk, but instead it converts the program to ANSI-C, then compiles this using gcc or a native C compiler to create a binary executable. This means you must have an ANSI C compiler present on your system for Awka to work.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains static libraries needed for development.
%debug_package
%prep
%setup -q
%patch -p1
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/awka
%{_libdir}/libawka.so
%{_mandir}/man1/awka.1*
%{_mandir}/man5/awka-elm.5*
%{_mandir}/man5/awka-elmref.5*
%doc GPL.txt
%files devel
%defattr(-,root,root)
%{_includedir}/libawka.h
%{_libdir}/libawka.a
%doc ACKNOWLEDGEMENTS CHANGELOG.txt PROBLEMS.txt README.txt TODO.txt
%changelog
* Tue Jan 04 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.5-4mamba
- rebuilt with debug package, build requirements and other fixes
* Wed Aug 28 2013 Automatic Build System <autodist@mambasoft.it> 0.7.5-3mamba
- automatic rebuild by autodist
* Tue Oct 28 2008 Tiziana Ferro <tiziana.ferro@email.it> 0.7.5-2mamba
- rebuild
- update Group in devel package
* Wed Nov 16 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.7.5-1qilnx
- package created by autospec