]>
Commit | Line | Data |
---|---|---|
257ae0ba | 1 | # TODO: |
257ae0ba | 2 | # - use bconds |
257ae0ba | 3 | Summary: Rexx interpreter |
c4417fa6 ER |
4 | Summary(de.UTF-8): Ein Interpreter für REXX |
5 | Summary(pl.UTF-8): Interpreter języka REXX | |
257ae0ba | 6 | Name: Regina |
75fafbb4 | 7 | Version: 3.4 |
257ae0ba | 8 | Release: 0.1 |
9 | License: GPL | |
10 | Group: Applications | |
11 | Source0: http://dl.sourceforge.net/regina-rexx/%{name}-REXX-%{version}.tar.gz | |
75fafbb4 | 12 | # Source0-md5: 3300e28b39134211a45aedb0e760cd44 |
4b6d2ed2 | 13 | Source1: %{name}.init |
257ae0ba | 14 | URL: http://regina-rexx.sourceforge.net |
c4be549e | 15 | BuildRequires: automake |
257ae0ba | 16 | BuildRequires: bison |
17 | BuildRequires: flex | |
5b64b66e | 18 | BuildRequires: rpmbuild(macros) >= 1.268 |
c4be549e | 19 | BuildRequires: sed >= 4.0 |
257ae0ba | 20 | Requires(post,preun): /sbin/chkconfig |
c4be549e | 21 | Requires: %{name}-libs = %{version}-%{release} |
257ae0ba | 22 | Provides: rexx |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Regina is a Rexx interpreter that has been ported to most Unix | |
27 | platforms (Linux, FreeBSD, Solaris, AIX, HP-UX, etc.) and also to | |
28 | OS/2, eCS, DOS, Win9x/Me/NT/2k/XP, Amiga, AROS, QNX4.x, QNX6.x BeOS, | |
29 | MacOS X, EPOC32, AtheOS, OpenVMS, SkyOS and OpenEdition. Rexx is a | |
30 | programming language that was designed to be easy to use for | |
31 | inexperienced programmers yet powerful enough for experienced users. | |
32 | It is also a language ideally suited as a macro language for other | |
33 | applications. | |
34 | ||
35 | There are two major goals for Regina: | |
5b64b66e ER |
36 | - become 100% compliant with the ANSI Standard. |
37 | - be available on as many platforms as possible | |
257ae0ba | 38 | |
f981ec78 JR |
39 | %description -l de.UTF-8 |
40 | Regina ist ein Rexx Interpreter der für die meisten Unix Platformen | |
41 | übersetzt worden ist (Linux, FreeBSD, Solaris, AIX, HP-UX, usw.) und | |
42 | auser dem auch für OS/2, eCS, DOS, Win9x/Me/NT/2k/XP, Amiga, Aros, | |
c8feefd5 | 43 | QNX4.x, QNX6.x, BeOS, MacOS X, EPOC32, AtheOS, OpenVMS, SkyOS und |
f981ec78 JR |
44 | OpenEdition. Rexx ist eine Programiersprache die für unerfahrene |
45 | Programierer entwickelt wurde aber Stark genug für erfahrene | |
c8feefd5 | 46 | Programierer ist. Es ist ebenfalls eine Sprache die sich ideal als |
f981ec78 | 47 | Makrosprache für andere Applikationen eignet. |
c8feefd5 | 48 | |
49 | Regina hat zwei Hauptziele: | |
50 | - es soll 100% kompatibel mit dem ANSI Standard sein | |
f981ec78 | 51 | - es soll auf so vielen Platformen wie nur möglich laufen |
c8feefd5 | 52 | |
f981ec78 | 53 | %description -l pl.UTF-8 |
75fafbb4 | 54 | Regina jest interpreterem języka REXX, który został już |
55 | przeniesiony na większość Unixowych platform (Linux, FreeBSD, | |
56 | Solaris, AIX, HP-UX, itp.) a także OS/2, eCS, DOS, Win9x/Me/NT/2k/XP, | |
57 | Amiga, AROS, QNX4.x, QNX6.x, BeOS, MacOS X, EPOC32, AtheOS, OpenVMS, | |
58 | SkyOS and OpenEdition. Rexx jest językiem programowania, który | |
59 | został zaprojektowany, by być prostym w użyciu przez | |
60 | niedoświadczonych programistów oraz wystarczająco użytecznym, by | |
61 | być używanym przez doświadczonych. Idealnie sprawdza się jako | |
62 | język pisania makr dla innych aplikacji | |
257ae0ba | 63 | |
f981ec78 JR |
64 | Dwa główne cele tego interpretera, to |
65 | - Stuprocentowa kompatybilność ze standardem ANSI | |
66 | - dostępność na jak największej liczbie platform | |
257ae0ba | 67 | |
c4be549e JB |
68 | %package libs |
69 | Summary: Libraries for Regina | |
c4417fa6 ER |
70 | Summary(de.UTF-8): Regina Libraries |
71 | Summary(pl.UTF-8): Biblioteki interpretera Regina | |
c4be549e JB |
72 | Group: Libraries |
73 | ||
74 | %description libs | |
75 | Regina libraries. | |
76 | ||
f981ec78 | 77 | %description libs -l de.UTF-8 |
c4be549e JB |
78 | Regina Libraries. |
79 | ||
f981ec78 | 80 | %description libs -l pl.UTF-8 |
c4be549e JB |
81 | Biblioteki dla interpretera Regina. |
82 | ||
82a7f6f0 | 83 | %package devel |
84 | Summary: Header files for Regina | |
c4417fa6 ER |
85 | Summary(de.UTF-8): Header Dateien für Regina |
86 | Summary(pl.UTF-8): Pliki nagłówkowe interpretera Regina | |
82a7f6f0 | 87 | Group: Development/Libraries |
88 | Requires: %{name} = %{version}-%{release} | |
89 | ||
90 | %description devel | |
91 | Development files for Regina. | |
92 | ||
f981ec78 JR |
93 | %description devel -l de.UTF-8 |
94 | Header Dateien für Regina. | |
c8feefd5 | 95 | |
f981ec78 JR |
96 | %description devel -l pl.UTF-8 |
97 | Pliki nagłówkowe interpretera Regina. | |
82a7f6f0 | 98 | |
c4be549e JB |
99 | %package static |
100 | Summary: Static Regina library | |
c4417fa6 ER |
101 | Summary(de.UTF-8): Statische Regina Libraries |
102 | Summary(pl.UTF-8): Statyczna biblioteka Regina | |
c4be549e JB |
103 | Group: Development/Libraries |
104 | Requires: %{name}-devel = %{version}-%{release} | |
82a7f6f0 | 105 | |
c4be549e JB |
106 | %description static |
107 | Static Regina library. | |
82a7f6f0 | 108 | |
f981ec78 | 109 | %description static -l de.UTF-8 |
d215f931 JB |
110 | Statische Regina Libraries. |
111 | ||
f981ec78 | 112 | %description static -l pl.UTF-8 |
c4be549e | 113 | Statyczna biblioteka Regina. |
82a7f6f0 | 114 | |
257ae0ba | 115 | %prep |
116 | %setup -q | |
257ae0ba | 117 | |
c4be549e JB |
118 | # hacks for weak tests for gcc |
119 | sed -i -e 's/gcc)/*gcc)/;s/= "gcc"/= "%{__cc}"/' configure | |
120 | # unnecessary libs | |
121 | sed -i -e 's/nsl nsl_s socket//' configure | |
122 | # set soname | |
123 | sed -i -e 's/\$(ABI) -shared/$(ABI) -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\\$(ABI) -shared/' configure | |
124 | ||
257ae0ba | 125 | %build |
c4be549e JB |
126 | cp -f /usr/share/automake/config.* . |
127 | %configure2_13 | |
75fafbb4 | 128 | %{__make} -j 1 \ |
257ae0ba | 129 | CC="%{__cc}" \ |
130 | CFLAGS="%{rpmcflags}" | |
131 | ||
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
d2540f49 JB |
134 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_mandir}/man1} |
135 | ||
75fafbb4 | 136 | %{__make} install -j 1 \ |
d2540f49 JB |
137 | DESTDIR=$RPM_BUILD_ROOT |
138 | ||
4b6d2ed2 | 139 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rxstack |
35652c46 | 140 | install regina.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
257ae0ba | 141 | rm -f $RPM_BUILD_ROOT%{_prefix}/etc/rc.d/init.d/rxstack |
c8feefd5 | 142 | rm -f $RPM_BUILD_ROOT%{_prefix}/man1/regina.1 |
257ae0ba | 143 | |
144 | %clean | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
099ed0d0 | 147 | %post |
257ae0ba | 148 | /sbin/chkconfig --add rxstack |
5b64b66e | 149 | %service rxstack restart |
257ae0ba | 150 | |
151 | %preun | |
099ed0d0 | 152 | if [ "$1" = "0" ] ; then |
153 | %service rxstack stop | |
154 | /sbin/chkconfig --del rxstack | |
257ae0ba | 155 | fi |
156 | ||
d2540f49 JB |
157 | %post libs -p /sbin/ldconfig |
158 | %postun libs -p /sbin/ldconfig | |
82a7f6f0 | 159 | |
257ae0ba | 160 | %files |
161 | %defattr(644,root,root,755) | |
162 | %doc COPYING-LIB README* demo | |
163 | %attr(755,root,root) %{_bindir}/* | |
164 | %attr(754,root,root) /etc/rc.d/init.d/rxstack | |
5b64b66e | 165 | %dir %{_datadir}/regina |
257ae0ba | 166 | %attr(755,root,root) %{_datadir}/regina/*.rexx |
167 | %{_datadir}/regina/*.mtb | |
168 | %{_mandir}/man1/regina.1* | |
82a7f6f0 | 169 | |
170 | %files libs | |
171 | %defattr(644,root,root,755) | |
c4be549e | 172 | %attr(755,root,root) %{_libdir}/libregina.so.*.* |
75fafbb4 | 173 | %attr(755,root,root) %{_libdir}/librxtest*.so |
82a7f6f0 | 174 | |
175 | %files devel | |
176 | %defattr(644,root,root,755) | |
c4be549e | 177 | %attr(755,root,root) %{_libdir}/libregina.so |
82a7f6f0 | 178 | %{_includedir}/rexxsaa.h |
c4be549e JB |
179 | |
180 | %files static | |
181 | %defattr(644,root,root,755) | |
182 | %{_libdir}/libregina.a |