source: spec/trunk/SPECS/sed.spec@ 1521

Last change on this file since 1521 was 1511, checked in by Silvan Scherrer, 7 years ago

use -lcx instead of -lcx0, add new BuildReq to sed

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