/[packages]/cauldron/supermin/current/SPECS/supermin.spec
ViewVC logotype

Contents of /cauldron/supermin/current/SPECS/supermin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1301243 - (show annotations) (download)
Sun Sep 23 16:30:47 2018 UTC (5 years, 7 months ago) by umeabot
File size: 2701 byte(s)
Mageia 7 Mass Rebuild
1 Summary: Tool for creating supermin appliances
2 Name: supermin
3 Version: 5.1.19
4 Release: %mkrel 4
5 License: GPLv2+
6 Group: Development/Tools
7 URL: http://people.redhat.com/~rjones/supermin/
8 Source0: http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz
9 # Upstream patch which fixes byte/string problems.
10 Patch1: 0001-Fix-Bytes-String-for-OCaml-4.06.patch
11
12 BuildRequires: perl
13 BuildRequires: rpm
14 BuildRequires: rpm-devel
15 BuildRequires: e2fsprogs
16 BuildRequires: e2fsprogs-devel
17 BuildRequires: findutils
18 BuildRequires: glibc-static-devel
19 BuildRequires: ocaml
20 BuildRequires: ocaml-findlib-devel
21
22 # (ngompa): These are urpmi-specific dependencies
23 BuildRequires: fakeroot
24 BuildRequires: urpmi
25
26 # These are required only to run the tests. We could patch out the
27 # tests to not require these packages.
28 BuildRequires: augeas hivex kernel tar
29
30 Requires: rpm
31 Requires: urpmi
32 Requires: dnf-plugins-core
33 Requires: util-linux-ng
34 Requires: cpio
35 Requires: tar
36 # RHBZ#771310
37 Requires: e2fsprogs >= 1.42
38
39 # (ngompa): These are urpmi-specific dependencies
40 Requires: fakeroot
41 Requires: urpmi
42
43 # For automatic RPM dependency generation.
44 # See: http://www.rpm.org/wiki/PackagerDocs/DependencyGenerator
45 Source1: supermin.attr
46 Source2: supermin-find-requires
47
48
49 %description
50 Supermin is a tool for building supermin appliances. These are tiny
51 appliances (similar to virtual machines), usually around 100KB in
52 size, which get fully instantiated on-the-fly in a fraction of a
53 second when you need to boot one of them.
54
55 %package devel
56 Summary: Development tools for %{name}
57 Requires: %{name}%{?_isa} = %{version}-%{release}
58 Requires: rpm-build
59
60
61 %description devel
62 %{name}-devel contains development tools for %{name}.
63
64 It just contains tools for automatic RPM dependency generation
65 from supermin appliances.
66
67
68 %prep
69 %autosetup -p1
70
71 %build
72 %configure2_5x --disable-network-tests
73 # make is not multithread
74 %__make
75
76 %install
77 %make_install
78
79 mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs/
80 install -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/fileattrs/
81 install -m 0755 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/
82
83 %check
84
85 # Disable failing test for now
86 # Fedora seems to have it passing since f21 but their package is very
87 # different, and for example uses dietlibc
88 %ifarch %{arm}
89 export SKIP_TEST_EXECSTACK=1
90 %endif
91
92 make check || {
93 cat tests/test-suite.log
94 exit 1
95 }
96
97 %files
98 %license COPYING
99 %doc README examples/build-basic-vm.sh
100 %{_bindir}/supermin
101 %{_mandir}/man1/supermin.1*
102
103 %files devel
104 %{_rpmconfigdir}/fileattrs/supermin.attr
105 %{_rpmconfigdir}/supermin-find-requires

  ViewVC Help
Powered by ViewVC 1.1.30