source: projects/specs/trunk/o/ocaml-labltk/ocaml-labltk-vl.spec @ 9297

Revision 9297, 3.6 KB checked in by inagaki, 9 years ago (diff)

2015-01-26 Ryoichi INAGAKI <ryo1@…>

  • ocaml-camlp5, ocaml-labltk: fixed spec


Line 
1#%ifarch %{ocaml_native_compiler}
2#%global native_compiler 1
3#%else
4#%global native_compiler 0
5#%endif
6
7Name:          ocaml-labltk
8Version:       8.06.0
9Release:       2%{?_dist_release}
10Summary:       Tcl/Tk interface for OCaml
11Summary(ja):   OCaml の Tk インターフェース
12
13License:       LGPLv2+ with exceptions
14Group:         System Environment/Libraries
15URL:           https://forge.ocamlcore.org/projects/labltk/
16
17Source0:       https://forge.ocamlcore.org/frs/download.php/1455/labltk-%{version}.tar.gz
18
19Buildroot:     %{_tmppath}/%{name}-%{version}-root
20BuildRequires: ocaml
21BuildRequires: tcl-devel
22BuildRequires: tk-devel
23
24
25%description
26labltk or mlTk is a library for interfacing OCaml with the scripting
27language Tcl/Tk (all versions since 8.0.3, but no betas).
28
29
30%package devel
31Summary:       Development files for %{name}
32Summary(ja):   %{name} の開発用ファイル
33Group:         Development/Libraries
34Requires:      %{name} = %{version}-%{release}
35
36%description devel
37labltk or mlTk is a library for interfacing OCaml with the scripting
38language Tcl/Tk (all versions since 8.0.3, but no betas).
39
40This 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.
49find -name .gitignore -delete
50
51
52%build
53./configure
54#%if !%{native_compiler}
55#make %{?_smp_mflags} byte
56#%else
57make %{?_smp_mflags} all
58make %{?_smp_mflags} opt
59#%endif
60
61
62%install
63mkdir -p $RPM_BUILD_ROOT%{_bindir}
64mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk
65mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
66make 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.
72install -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.
Note: See TracBrowser for help on using the repository browser.