1 | #%ifarch %{ocaml_native_compiler} |
---|
2 | #%global native_compiler 1 |
---|
3 | #%else |
---|
4 | #%global native_compiler 0 |
---|
5 | #%endif |
---|
6 | |
---|
7 | Name: ocaml-labltk |
---|
8 | Version: 8.06.0 |
---|
9 | Release: 2%{?_dist_release} |
---|
10 | Summary: Tcl/Tk interface for OCaml |
---|
11 | Summary(ja): OCaml の Tk インターフェース |
---|
12 | |
---|
13 | License: LGPLv2+ with exceptions |
---|
14 | Group: System Environment/Libraries |
---|
15 | URL: https://forge.ocamlcore.org/projects/labltk/ |
---|
16 | |
---|
17 | Source0: https://forge.ocamlcore.org/frs/download.php/1455/labltk-%{version}.tar.gz |
---|
18 | |
---|
19 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | BuildRequires: ocaml |
---|
21 | BuildRequires: tcl-devel |
---|
22 | BuildRequires: tk-devel |
---|
23 | |
---|
24 | |
---|
25 | %description |
---|
26 | labltk or mlTk is a library for interfacing OCaml with the scripting |
---|
27 | language Tcl/Tk (all versions since 8.0.3, but no betas). |
---|
28 | |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Development files for %{name} |
---|
32 | Summary(ja): %{name} の開発用ファイル |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: %{name} = %{version}-%{release} |
---|
35 | |
---|
36 | %description devel |
---|
37 | labltk or mlTk is a library for interfacing OCaml with the scripting |
---|
38 | language Tcl/Tk (all versions since 8.0.3, but no betas). |
---|
39 | |
---|
40 | This package contains the development files. |
---|
41 | |
---|
42 | |
---|
43 | %prep |
---|
44 | %setup -q -n labltk-%{version} |
---|
45 | |
---|
46 | #patch1 -p1 |
---|
47 | |
---|
48 | # Remove version control files which might get copied into documentation. |
---|
49 | find -name .gitignore -delete |
---|
50 | |
---|
51 | |
---|
52 | %build |
---|
53 | ./configure |
---|
54 | #%if !%{native_compiler} |
---|
55 | #make %{?_smp_mflags} byte |
---|
56 | #%else |
---|
57 | make %{?_smp_mflags} all |
---|
58 | make %{?_smp_mflags} opt |
---|
59 | #%endif |
---|
60 | |
---|
61 | |
---|
62 | %install |
---|
63 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
64 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk |
---|
65 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs |
---|
66 | make install \ |
---|
67 | BINDIR=$RPM_BUILD_ROOT%{_bindir} \ |
---|
68 | INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/labltk \ |
---|
69 | STUBLIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs |
---|
70 | # The *.o files are not installed by the Makefile. AIUI |
---|
71 | # that prevents linking with native code programs. |
---|
72 | install -m 0644 camltk/*.o $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk |
---|
73 | |
---|
74 | |
---|
75 | %files |
---|
76 | %doc Changes README.mlTk |
---|
77 | %dir %{_libdir}/ocaml/labltk |
---|
78 | %{_libdir}/ocaml/labltk/*.cmi |
---|
79 | %{_libdir}/ocaml/labltk/*.cma |
---|
80 | %{_libdir}/ocaml/labltk/*.cmo |
---|
81 | %{_libdir}/ocaml/stublibs/dlllabltk.so |
---|
82 | |
---|
83 | |
---|
84 | %files devel |
---|
85 | %doc README.mlTk |
---|
86 | %doc examples_camltk |
---|
87 | %doc examples_labltk |
---|
88 | %{_bindir}/labltk |
---|
89 | %{_bindir}/ocamlbrowser |
---|
90 | %{_libdir}/ocaml/labltk/labltktop |
---|
91 | %{_libdir}/ocaml/labltk/pp |
---|
92 | %{_libdir}/ocaml/labltk/tkcompiler |
---|
93 | %{_libdir}/ocaml/labltk/*.a |
---|
94 | #if %{native_compiler} |
---|
95 | %{_libdir}/ocaml/labltk/*.cmxa |
---|
96 | %{_libdir}/ocaml/labltk/*.cmx |
---|
97 | %{_libdir}/ocaml/labltk/*.o |
---|
98 | #endif |
---|
99 | %{_libdir}/ocaml/labltk/*.mli |
---|
100 | |
---|
101 | |
---|
102 | %changelog |
---|
103 | * Mon Jan 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 8.06.0-2 |
---|
104 | - moved to System Environment/Libraries Group |
---|
105 | |
---|
106 | * Mon Jan 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 8.06.0-1 |
---|
107 | - Initial build for Vine Linux (splitted from ocaml package) |
---|
108 | |
---|
109 | * Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.7.beta1 |
---|
110 | - ocaml-4.02.0 final rebuild. |
---|
111 | |
---|
112 | * Fri Aug 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.6.beta1 |
---|
113 | - ocaml-4.02.0+rc1 rebuild. |
---|
114 | |
---|
115 | * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.02-0.5.beta1 |
---|
116 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
117 | |
---|
118 | * Fri Aug 01 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.4.beta1 |
---|
119 | - ocaml-4.02.0-0.8.git10e45753.fc22 rebuild. |
---|
120 | |
---|
121 | * Tue Jul 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.3.beta1 |
---|
122 | - OCaml 4.02.0 beta rebuild. |
---|
123 | |
---|
124 | * Tue Jul 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.2.beta1 |
---|
125 | - Enable debugging. |
---|
126 | - Move labltk to -devel package. |
---|
127 | - Enable _smp_flags. |
---|
128 | |
---|
129 | * Tue Jul 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02-0.1.beta1 |
---|
130 | - Initial packaging of new out-of-tree ocaml-labltk. |
---|