]> git.pld-linux.org Git - SPECS.git/blob - unicon.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / unicon.spec
1 #
2 # Conditional build:
3 %bcond_without  x       # don't build X11 version
4 #
5 Summary:        The Unified Extended Dialect of Icon 
6 Summary(pl.UTF-8):      Rozbudowana wersja języka Icon 
7 Name:           unicon
8 Version:        11
9 %define _snap 20030210
10 Release:        0.%{_snap}.1
11 Epoch:          1
12 License:        GPL
13 Group:          Development/Languages
14 Source0:        http://unicon.sourceforge.net/dist/uni.zip
15 # Source0-md5:  e089da57b8c796dcf1fa3441f2e35bfe
16 Patch0:         %{name}-makefile.patch
17 URL:            http://unicon.sourceforge.net/
18 BuildRequires:  unzip
19 Obsoletes:      icon
20 ExclusiveArch:  %{ix86} alpha
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Unicon is a very high level, goal-directed, object-oriented, general purpose 
25 applications language.
26
27 %description -l pl.UTF-8
28 Unicon jest objektowym językiem programowania ogólnego zastosowania bardzo 
29 wysokiego poziomu.
30
31 %prep
32 %setup -q -c -T 
33 cp %{SOURCE0} ./
34 unzip uni.zip
35 %patch0 -p1
36
37 %build
38 %ifarch %{ix86}
39 %{__make} %{?with_x:X-}Configure name=intel_linux
40 %endif
41 %ifarch alpha
42 %{__make} %{?with_x:X-}Configure name=alpha_linux
43 %endif
44
45 %{__make} Unicon CC="%{__cc}"
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/unicon/{bin,ipl,uni}}
50 %{__make} Install dest=$RPM_BUILD_ROOT%{_libdir}/unicon/
51
52 for f in icont iconx ivib patchstr ui unicon 
53 do
54         mv $RPM_BUILD_ROOT%{_libdir}/unicon/bin/$f $RPM_BUILD_ROOT%{_bindir}/$f
55 done
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README
63 %attr(755,root,root) %{_bindir}/*
64 %dir %{_libdir}/unicon
65 %dir %{_libdir}/unicon/bin
66 %{_libdir}/unicon/bin/lib*
67 %{_libdir}/unicon/ipl
68 %{_libdir}/unicon/uni
This page took 0.041745 seconds and 3 git commands to generate.