forked from COVESA/capicxx-core-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commonapi.spec.in
123 lines (102 loc) · 5.01 KB
/
commonapi.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Name: @PROJECT_NAME@
Version: @COMPONENT_VERSION@
Release: @RPM_PACKAGE_VERSION@
Summary: CommonAPI
Group: libs
License: @LICENSE@
Vendor: BMW Group
URL: http://www.bmw.de
Source: @PROJECT_NAME@-@[email protected]
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
#Requires: libcommonapi
%description
CAPI middleware for IPC
%package dev
Summary: CommonAPI header files
Group: Development/Libraries
Requires: libcommonapi3
%package staticdev
Summary: CommonAPI header files
Group: Development/Libraries
Requires: libcommonapi3
%description dev
CAPI middleware headers for IPC development
%prep
mkdir -p %{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI
%setup
%build
mkdir -p build
cd build
cmake ..
make
%install
rm -rf $RPM_BUILD_ROOT
cd build
cmake ..
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p %{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/libCommonAPI.so.@LIBCOMMONAPI_MAJOR_VERSION@
%{_libdir}/libCommonAPI.so.@LIBCOMMONAPI_MAJOR_VERSION@.@LIBCOMMONAPI_MINOR_VERSION@.@LIBCOMMONAPI_PATCH_VERSION@
%{_libdir}/libCommonAPI.so
%files staticdev
#%{_libdir}/libCommonAPI.la
%files dev
%defattr(-,root,root,-)
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Address.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Attribute.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/AttributeExtension.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/ByteBuffer.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/CommonAPI.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/ContainerUtils.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Deployable.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Deployment.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Enumeration.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Event.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Factory.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/IniFileReader.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/InputStream.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Logger.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/MainLoopContext.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/OutputStream.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Proxy.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/ProxyManager.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Runtime.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/SelectiveEvent.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/SerializableArguments.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Struct.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Stub.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/TypeOutputStream.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Types.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Utils.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Variant.hpp
%{_includedir}/CommonAPI-@COMMONAPI_API_HEADER_VERSION@/CommonAPI/Version.hpp
%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPIConfig.cmake
%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPIConfigVersion.cmake
%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPITargets.cmake
%{_libdir}/cmake/CommonAPI-@COMPONENT_VERSION@/CommonAPITargets-@[email protected]
%changelog dev
* Fri Mar 20 2015 Markus Freutsmiedl <[email protected]> @GENIVI_PROJECT_VERSION@
- LIB_MAJOR_VERSION changed to LIBCOMMONAPI_MAJOR_VERSION
- LIB_MINOR_VERSION changed to LIBCOMMONAPI_MINOR_VERSION
- LIB_PATCH_VERSION changed to LIBCOMMONAPI_PATCH_VERSION
- files dev reworked
%changelog dev
* Tue Sep 2 2014 Markus Freutsmiedl <[email protected]> @GENIVI_PROJECT_VERSION@
- files dev reworked
%changelog dev
* Tue July 1 2014 Markus Freutsmiedl <[email protected]> @GENIVI_PROJECT_VERSION@
- LIB_MAJOR_VERSION, LIB_MINOR_VERSION and LIB_PATCH_VERSION introduced
%changelog dev
* Wed Jan 29 2014 Gernot Wirschal <[email protected]> @GENIVI_PROJECT_VERSION@
- Add dev packet configuration
%changelog
* Wed Jan 29 2014 Gernot Wirschal <[email protected]> @GENIVI_PROJECT_VERSION@
- Add dev packet configuration
* Mon Jan 27 2014 Gernot Wirschal <[email protected]> @GENIVI_PROJECT_VERSION@
- Initial packaging for GPT