]> git.pld-linux.org Git - projects/template-specs.git/blame - ocaml.spec
- update
[projects/template-specs.git] / ocaml.spec
CommitLineData
9e120d3c 1Summary: TEMPLATE binding for OCaml
ce39d734 2Summary(pl.UTF-8): Wiązania TEMPLATE dla OCamla
9e120d3c 3Name: ocaml-template
d954f2a4 4Version:
9e120d3c 5Release: 1
d954f2a4 6License:
9e120d3c 7Group: Libraries
d954f2a4 8Vendor:
9e120d3c
MM
9Source0: template-%{version}.tar.gz
10BuildRequires: -devel
11BuildRequires: ocaml >= 3.04-7
12%requires_eq ocaml-runtime
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
d954f2a4 16This package contains files needed to run bytecode executables using
9e120d3c
MM
17this library.
18
9be49f18
JR
19%description -l pl.UTF-8
20Pakiet ten zawiera binaria potrzebne do uruchamiania programów
21używających tej biblioteki.
9e120d3c
MM
22
23%package devel
24Summary: TEMPLATE binding for OCaml - development part
ce39d734 25Summary(pl.UTF-8): Wiązania TEMPLATE dla OCamla - cześć programistyczna
9e120d3c
MM
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28%requires_eq ocaml
29
30%description devel
d954f2a4 31This package contains files needed to develop OCaml programs using
9e120d3c
MM
32this library.
33
9be49f18
JR
34%description devel -l pl.UTF-8
35Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
9e120d3c
MM
36tej biblioteki.
37
38%prep
39%setup -q -n template-%{version}
40
41%build
42%{__make} CC="%{__cc} %{rpmcflags} -fPIC" all opt
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{template,stublibs}
48install *.cm[ixa]* *.a dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/template
49install dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
50
51install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52cp -r foo bar $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53
54install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/template
55cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/template/META <<EOF
56requires = ""
57version = "%{version}"
58directory = "+template"
59archive(byte) = "template.cma"
60archive(native) = "template.cmxa"
61linkopts = ""
62EOF
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
70
71%files devel
72%defattr(644,root,root,755)
d954f2a4 73%doc LICENSE *.mli
9e120d3c
MM
74%dir %{_libdir}/ocaml/template
75%{_libdir}/ocaml/template/*.cm[ixa]*
76%{_libdir}/ocaml/template/*.a
77%{_examplesdir}/%{name}-%{version}
78%{_libdir}/ocaml/site-lib/template
This page took 0.032081 seconds and 4 git commands to generate.