2013-07-19 21:33:20 +02:00
|
|
|
%define ocamlpck @pck_name_tail@
|
|
|
|
|
|
|
|
Name: @pck_name@
|
|
|
|
Version: @pck_version@
|
|
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
|
|
Summary: ...
|
|
|
|
Group: System/Libraries/OCaml
|
|
|
|
Vendor: @VENDOR@
|
|
|
|
Distribution: @DISTRO@
|
|
|
|
Packager: @packager_fullname@ <@packager_email@>
|
|
|
|
URL: ...
|
|
|
|
Source: ...
|
|
|
|
License: ...
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
|
|
## AUTOBUILDREQ-END
|
2022-05-23 13:18:31 +02:00
|
|
|
BuildRequires: dune
|
2013-07-19 21:33:20 +02:00
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
|
|
|
|
%description
|
2022-05-23 13:18:31 +02:00
|
|
|
%{summary}.
|
2013-07-19 21:33:20 +02:00
|
|
|
|
|
|
|
@if:pck_devel
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries/OCaml
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and signature files for developing applications that use %{name}.
|
|
|
|
@fi:pck_devel
|
|
|
|
|
2022-05-23 13:18:31 +02:00
|
|
|
%debug_package
|
|
|
|
|
2013-07-19 21:33:20 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2022-05-23 13:18:31 +02:00
|
|
|
dune build
|
2013-07-19 21:33:20 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2022-05-23 13:18:31 +02:00
|
|
|
DESTDIR=%{buildroot} dune install --prefix "/usr" --libdir "%{_lib}/ocaml"
|
2013-07-19 21:33:20 +02:00
|
|
|
|
2022-05-23 13:18:31 +02:00
|
|
|
rm -rf %{buildroot}/usr/doc
|
2013-07-19 21:33:20 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2022-05-23 13:18:31 +02:00
|
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so*
|
|
|
|
%doc LICENSE*
|
2013-07-19 21:33:20 +02:00
|
|
|
|
|
|
|
@if:pck_devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2022-05-23 13:18:31 +02:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.mli
|
|
|
|
%doc CHANGES* README.md
|
2013-07-19 21:33:20 +02:00
|
|
|
@fi:pck_devel
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|