]> git.pld-linux.org Git - packages/ucblogo.git/blob - ucblogo.spec
a6d5789ffe38b0967f163daafca329737cd96e05
[packages/ucblogo.git] / ucblogo.spec
1 Summary:        Berkeley LOGO interpreter
2 Summary(pl.UTF-8):      Interpreter Berkeley LOGO
3 Name:           ucblogo
4 Version:        6.0
5 Release:        1
6 License:        GPL v2+
7 Group:          Development/Languages
8 Source0:        ftp://anarres.cs.berkeley.edu/pub/ucblogo/%{name}-%{version}.tar.gz
9 # Source0-md5:  36a56765b18136c817880c5381af196b
10 Patch0:         %{name}-signals.patch
11 Patch1:         %{name}-make.patch
12 Patch2:         %{name}-wx.patch
13 URL:            http://www.cs.berkeley.edu/~bh/logo.html
14 BuildRequires:  ncurses-devel
15 BuildRequires:  wxGTK2-unicode-devel
16 BuildRequires:  xorg-lib-libX11-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Berkeley Logo interpreter for Unix and X. Features *not* found in
21 Berkeley Logo include robotics, music, GUIs, animation, parallelism,
22 and multimedia. For those, buy a commercial version.
23
24 %description -l pl.UTF-8
25 Interpreter Berkeley Logo dla Unika i X. Możliwości, których nie ma
26 Berkeley Logo to m.in. robotyka, muzyka, GUI, animacje, równoległość,
27 multimedia. Dla nich kup komercyjną wersję.
28
29 %package examples
30 Summary:        Example LOGO programs for the Berkeley LOGO interpreter
31 Summary(pl.UTF-8):      Przykłady programów w LOGO dla interpretera Berkeley LOGO
32 Group:          Development/Languages
33 Requires:       %{name}
34
35 %description examples
36 This package contains example LOGO programs, eg solitaire, poker, plot
37 and many others.
38
39 %description examples -l pl.UTF-8
40 Ten pakiet zawiera przykładowe programy w LOGO, m.in. pasjans, poker,
41 plot i wiele innych.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %patch1 -p1
47 %patch2 -p1
48
49 %{__rm} -r csls/CVS
50
51 %build
52 # configure is manually hacked for wx support
53 export ac_cv_lib_termcap_tgetstr=no
54 export ac_cv_lib_termlib_tgetstr=no
55 %configure2_13 \
56         --with-x \
57         --wx-config_path=%{_bindir}/wx-gtk2-unicode-config \
58         --wx-enable
59 %{__make} \
60         CC="%{__cc}" \
61         CXX="%{__cxx}" \
62         CFLAGS="%{rpmcflags}"
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71 install csls/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72
73 %{__rm} $RPM_BUILD_ROOT%{_datadir}/logo/docs/usermanual.{ps,texi}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/postshell
79 -/usr/sbin/fix-info-dir -c %{_infodir}
80
81 %postun -p /sbin/postshell
82 -/usr/sbin/fix-info-dir -c %{_infodir}
83
84 %files
85 %defattr(644,root,root,755)
86 %doc README TODO changes.txt newtermnotes plm usermanual
87 %attr(755,root,root) %{_bindir}/logo
88 %{_infodir}/ucblogo.info*
89 %{_datadir}/logo
90
91 %files examples
92 %defattr(644,root,root,755)
93 %{_examplesdir}/%{name}-%{version}
This page took 0.094958 seconds and 3 git commands to generate.