-
Notifications
You must be signed in to change notification settings - Fork 35
/
accfg-test.spec.in
94 lines (75 loc) · 2.21 KB
/
accfg-test.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
Name: accel-config
Version: VERSION
Release: 2%{?dist}
Summary: Configure accelerator subsystem devices
License: GPL-2.0
Group: System Environment/Base
Source0: %{name}-%{version}.tar.gz
Requires: LNAME%{?_isa} = %{version}-%{release}
BuildRequires: autoconf
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(json-c)
BuildRequires: systemd
%description
Utility library for configuring the accelerator subsystem.
%package -n DNAME
Summary: Development files for libaccfg
License: LGPL-2.1-only
Group: Development/Libraries
Requires: LNAME%{?_isa} = %{version}-%{release}
%description -n DNAME
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n LNAME
Summary: Configuration library for accelerator subsystem devices
License: LGPL-2.1-only
Group: System Environment/Libraries
%description -n LNAME
Libraries for %{name}.
%package -n %{name}-test
Summary: Unit tests for %{name}.
License: GPL-2.0
Group: Unspecified
%description -n %{name}-test
Unit tests for %{name}
%prep
%setup -q accel-config-%{version}
%build
echo %{version} > version
./autogen.sh
%configure --disable-static --disable-silent-rules --enable-test
make %{?_smp_mflags}
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%post -n LNAME -p /sbin/ldconfig
%postun -n LNAME -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
%license licenses/accel-config-licenses LICENSE_GPL_2_0
%{_bindir}/accel-config
%{_mandir}/man1/accel-config*
%{_sysconfdir}/accel-config/contrib/configs/*
%files -n LNAME
%defattr(-,root,root)
%doc README.md
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
%license licenses/libaccel-config-licenses accfg/lib/LICENSE_LGPL_2_1
%{_libdir}/libaccel-config.so.*
%files -n DNAME
%defattr(-,root,root)
%license Documentation/COPYING
%{_includedir}/accel-config/
%{_libdir}/libaccel-config.so
%{_libdir}/pkgconfig/libaccel-config.pc
%files -n %{name}-test
%defattr(-,root,root)
%license Documentation/COPYING LICENSE_GPL_2_0
%{_prefix}/libexec/accel-config/test/*
%changelog