-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathveosinfo.spec
72 lines (59 loc) · 1.68 KB
/
veosinfo.spec
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
%define _prefix /opt/nec/ve/veos
%define _localstatedir /var/opt/nec/ve/veos
%define _sysconfdir /etc/opt/nec
%define _ve_prefix /opt/nec/ve
Name: veosinfo3
Version: 3.3.0
Release: 1%{?dist}
Summary: RPM library to interact with VEOS and VE specific 'sysfs'
Group: System Environment/Libraries
License: LGPL
Source: %{name}-%{version}.tar.gz
Vendor: NEC Corporation
BuildArch: x86_64
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: veos
Requires: libyaml
BuildRequires: log4c-devel
BuildRequires: systemd-devel
BuildRequires: veos >= 2.11
BuildRequires: veos-devel >= 2.11
BuildRequires: libtool
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: protobuf-c
BuildRequires: protobuf-c-devel
BuildRequires: libyaml
BuildRequires: libyaml-devel
BuildRequires: libgudev1
%description
This library is responsible for interacting with
VEOS and VE specific 'sysfs' to retrieve command
specific information.
%package devel
Summary: Development files for RPM library
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Provides: %{_prefix}/include/veosinfo.h
Conflicts: veosinfo-devel
%description devel
Header files for the RPM Library.
%prep
%setup -q -n %{name}-%{version}
%build
./autogen.sh
%configure --prefix=%{_prefix} --localstatedir=%{_localstatedir} --sysconfdir=%{_sysconfdir} --with-ve-prefix=%{_ve_prefix}
make CFLAGS="%{optflags} $CFLAGS"
%install
make DESTDIR=%{buildroot} install
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/libveosinfo.so.*
%files devel
%{_libdir}/lib*.so
%{_includedir}/*