Initial commit.
[todo.git] / todo.spec.in
1 %global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2
3 Name:            @PACKAGE_NAME@
4 Version:         @PACKAGE_VERSION@
5 Release:         @RPM_RELEASE@%{?dist}
6 Summary:         To do list management
7 License:         GPLv2+
8
9 #URL:
10 Source0:         %{name}-%{version}.tar.gz
11
12 BuildRequires:   ocaml >= 3.12.0
13 BuildRequires:   ocaml-findlib-devel
14 BuildRequires:   ocaml-sqlite-devel
15
16 # For building manual pages.
17 BuildRequires:   perl-podlators
18
19
20 %description
21
22
23 %prep
24 %setup -q
25
26
27 %build
28 %configure
29 make %{?_smp_mflags}
30
31
32 %install
33 make DESTDIR=$RPM_BUILD_ROOT install
34
35 %if %opt
36 # Remove bytecode library.
37 rm $RPM_BUILD_ROOT%{_libdir}/ocaml/todo/todo.cma
38 %endif
39
40
41 %files
42 %doc COPYING README
43
44
45 %changelog
46 * Thu Nov 10 2016 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
47 - Initial release.
48
49 # Local variables:
50 # mode: shell-script
51 # sh-shell: rpm
52 # end: