| 1 | # -*- coding: utf-8 -*-
|
|---|
| 2 |
|
|---|
| 3 | Summary: A GNU stream text editor
|
|---|
| 4 | Name: sed
|
|---|
| 5 | Version: 4.5
|
|---|
| 6 | Release: 2%{?dist}
|
|---|
| 7 | License: GPLv3+
|
|---|
| 8 | Group: Applications/Text
|
|---|
| 9 | URL: http://sed.sourceforge.net/
|
|---|
| 10 | Vendor: bww bitwise works GmbH
|
|---|
| 11 | %scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
|
|---|
| 12 | #scm_source git E:/Trees/%{name}/git master-os2
|
|---|
| 13 | Source1: http://sed.sourceforge.net/sedfaq.txt
|
|---|
| 14 | BuildRequires: libc-devel, libcx-devel, automake, autoconf, gcc
|
|---|
| 15 | BuildRequires: gettext-devel, gettext-common-devel
|
|---|
| 16 | #BuildRequires: glibc-devel, libacl-devel
|
|---|
| 17 | #BuildRequires: perl-Getopt-Long
|
|---|
| 18 |
|
|---|
| 19 | # for the password stuff, as a private repo
|
|---|
| 20 | BuildRequires: os2-rpm-build >= 1-4
|
|---|
| 21 |
|
|---|
| 22 | #Provides: /bin/sed
|
|---|
| 23 |
|
|---|
| 24 | #copylib
|
|---|
| 25 | #Provides: bundled(gnulib)
|
|---|
| 26 |
|
|---|
| 27 | %description
|
|---|
| 28 | The sed (Stream EDitor) editor is a stream or batch (non-interactive)
|
|---|
| 29 | editor. Sed takes text as input, performs an operation or set of
|
|---|
| 30 | operations on the text and outputs the modified text. The operations
|
|---|
| 31 | that sed performs (substitutions, deletions, insertions, etc.) can be
|
|---|
| 32 | specified in a script file or from the command line.
|
|---|
| 33 |
|
|---|
| 34 | %debug_package
|
|---|
| 35 |
|
|---|
| 36 | %prep
|
|---|
| 37 | %scm_setup
|
|---|
| 38 | autoreconf -fvi
|
|---|
| 39 |
|
|---|
| 40 | %build
|
|---|
| 41 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 42 | export LIBS="-lcx"
|
|---|
| 43 | %configure --without-included-regex
|
|---|
| 44 | # we need that until we have a later texinfo :(
|
|---|
| 45 | touch ./doc/sed.info
|
|---|
| 46 |
|
|---|
| 47 | make %{_smp_mflags}
|
|---|
| 48 | install -m 644 -p %{SOURCE1} sedfaq.txt
|
|---|
| 49 | gzip -9 sedfaq.txt
|
|---|
| 50 |
|
|---|
| 51 | %check
|
|---|
| 52 | echo ====================TESTING=========================
|
|---|
| 53 | #make check
|
|---|
| 54 | echo ====================TESTING END=====================
|
|---|
| 55 |
|
|---|
| 56 | %install
|
|---|
| 57 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 58 | # we need that until we have a later texinfo :(
|
|---|
| 59 | touch ./doc/sed.info
|
|---|
| 60 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 61 | rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
|---|
| 62 | rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
|
|---|
| 63 |
|
|---|
| 64 | # create a symlink to fullfill requires w/o .exe
|
|---|
| 65 | ln -s %{_bindir}/%{name}.exe %{buildroot}%{_bindir}/sed
|
|---|
| 66 |
|
|---|
| 67 | %find_lang %{name}
|
|---|
| 68 |
|
|---|
| 69 | %files -f %{name}.lang
|
|---|
| 70 | %{!?_licensedir:%global license %%doc}
|
|---|
| 71 | %license COPYING
|
|---|
| 72 | %doc BUGS NEWS THANKS README AUTHORS sedfaq.txt.gz
|
|---|
| 73 | %{_bindir}/sed
|
|---|
| 74 | %{_bindir}/sed.exe
|
|---|
| 75 | %{_infodir}/sed.info*
|
|---|
| 76 | %{_mandir}/man1/sed.1*
|
|---|
| 77 |
|
|---|
| 78 | %changelog
|
|---|
| 79 | * Mon Oct 29 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.5-2
|
|---|
| 80 | - remove all binary stuff, as it broke too much
|
|---|
| 81 |
|
|---|
| 82 | * Sat Oct 27 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.5-1
|
|---|
| 83 | - updated to vendor version 4.5
|
|---|
| 84 |
|
|---|
| 85 | * Sun Jan 08 2012 yd
|
|---|
| 86 | - fixed requirements.
|
|---|
| 87 |
|
|---|
| 88 | * Sat Jan 07 2012 yd
|
|---|
| 89 | - initial unixroot build.
|
|---|