-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvelayout.spec.in
79 lines (65 loc) · 1.91 KB
/
velayout.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
#
# VE log4c layout library
#
# Copyright (C) 2017-2018 NEC Corporation
# This file is part of the VE log4c layout library.
#
# The VE log4c layout library is free software; you can redistribute it
# and/or modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either version
# 2.1 of the License, or (at your option) any later version.
#
# The VE log4c layout library is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with the VE log4c layout library; if not, see
# <http://www.gnu.org/licenses/>.
#
Name: @PACKAGE@
Version: @VERSION@
Release: @RELEASE@%{?dist}
Summary: log4c layout library for VEOS
Group: System Environment/Libraries
License: LGPL
Source0: @PACKAGE@-@VERSION@.tar.gz
Vendor: NEC Corporation
Packager: NEC Corporation
BuildArch: x86_64
Requires: log4c
%description
libvelayout is a library for printing special layout of log4c.
%package devel
Summary: Headers for building apps that use velayout library
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains header required to build applications that
use velayout library
%define _prefix @prefix@
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%{__rm} -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
sh -c "rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib*.a \
${RPM_BUILD_ROOT}%{_libdir}/lib*.la"
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc
%{_includedir}/*.h
%{_libdir}/*.so
%changelog