forked from openSUSE/barrel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
barrel.spec.in
94 lines (77 loc) · 2.34 KB
/
barrel.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#
# spec file for package barrel
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: barrel
Version: @VERSION@
Release: 0
Summary: Tool for storage management
License: GPL-2.0-only
Group: System/Packages
URL: https://github.com/openSUSE/barrel
Source: barrel-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: libstorage-ng-devel >= 4.5.101
BuildRequires: libtool
BuildRequires: libxslt
BuildRequires: readline-devel
Requires: libstorage-ng1 >= 4.5.101
Recommends: %{name}-lang
Recommends: logrotate
%if 0%{?fedora_version}
BuildRequires: boost-devel
BuildRequires: docbook-style-xsl
BuildRequires: json-c-devel
%else
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libboost_headers-devel
BuildRequires: libboost_test-devel
BuildRequires: libjson-c-devel
%endif
%description
barrel is a command line tool for storage management.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -DNDEBUG"
export CXXFLAGS="%{optflags} -DNDEBUG"
autoreconf -fvi
%configure \
--docdir="%{_docdir}/%{name}"
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check VERBOSE=1
%install
%make_install
%fdupes -s %{buildroot}
%find_lang barrel
%files
%defattr(-,root,root)
%{_sbindir}/barrel
%dir %{_sysconfdir}/barrel
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_mandir}/*/barrel.8*
%config(noreplace) %{_sysconfdir}/logrotate.d/barrel
%license %{_docdir}/%{name}/LICENSE
%package lang
Summary: Languages for package %{name}
Group: System/Localization
Supplements: %{name}
Provides: %{name}-lang-all = %{version}
BuildArch: noarch
%description lang
Provides translations to the package %{name}
%files lang -f barrel.lang
%changelog