-
Notifications
You must be signed in to change notification settings - Fork 0
/
errno.spec.in
59 lines (43 loc) · 1.38 KB
/
errno.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
Name: @CPACK_PACKAGE_NAME@
Version: @CPACK_PACKAGE_VERSION@
Release: @CPACK_RPM_PACKAGE_RELEASE@%{dist}
Summary: This repository contains some error handling modules used in the development of the libraries.
Vendor: @CPACK_PACKAGE_VENDOR@
Packager: @CPACK_PACKAGE_VENDOR@ <@CPACK_PACKAGE_CONTACT@>
License: MIT
URL: @CPACK_PACKAGE_URL@
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.0
BuildRequires: gcc, make
#Prefix: @CPACK_PACKAGING_INSTALL_PREFIX@
%description
%{name} This repository contains some error handling modules used in the development of the libraries.
%package development
Summary: Header files, libraries and development documentation for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description development
This package contains the header files for %{name}.
%package doc
Summary: Development documentation for %{name}
BuildArch: noarch
%prep
%setup -q
#%setup -q -n %{name}-%{version}
%build
%cmake . && \
ctest -V %{?_smp_mflags} && \
make %{?_smp_mflags} all
%install
make install DESTDIR=$RPM_BUILD_ROOT
%check
ctest -V %{?_smp_mflags}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license %{_licensedir}/lib%{name}/LICENSE
%{_libdir}/libscic-errno*.so.*
%files devel
%{_includedir}/%{name}/
%{_libdir}/libscic-errno.so
%files doc
%{_docdir}/lib%{name}/README.md