forked from fmidev/smartmet-library-newbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smartmet-library-newbase.spec.in
122 lines (94 loc) · 2.88 KB
/
smartmet-library-newbase.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
BuildRoot: %_topdir/@CPACK_PACKAGE_FILE_NAME@@CPACK_RPM_PACKAGE_COMPONENT_PART_PATH@
Summary: @CPACK_RPM_PACKAGE_SUMMARY@
Name: @CPACK_RPM_PACKAGE_NAME@
Version: @CPACK_RPM_PACKAGE_VERSION@
Release: @CPACK_RPM_PACKAGE_RELEASE@%{?dist}.fmi
License: @CPACK_RPM_PACKAGE_LICENSE@
Group: @CPACK_RPM_PACKAGE_GROUP@
Vendor: @CPACK_RPM_PACKAGE_VENDOR@
URL: @CPACK_RPM_PACKAGE_URL@
%description
@CPACK_RPM_PACKAGE_DESCRIPTION@
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: boost-devel >= 1.65.0
BuildRequires: bzip2-devel
%if @DISABLE_GDAL@ == OFF
BuildRequires: geos-devel >= 3.5.0
BuildRequires: gdal-devel
%endif
%if @BUILD_SHARED_LIBS@ == ON
BuildRequires: fmt-devel
%else
BuildRequires: fmt-static
%endif
Requires: boost-date-time >= 1.65.0
Requires: boost-regex >= 1.65.0
Requires: boost-filesystem >= 1.65.0
Requires: boost-iostreams >= 1.65.0
Requires: boost-system >= 1.65.0
%if @DISABLE_GDAL@ == OFF
Requires: gdal
Requires: geos >= 3.5.0
%endif
%if @BUILD_SHARED_LIBS@ == ON
Requires: fmt
%endif
Requires: postgis < 2.1
%define _rpmdir %_topdir/RPMS
%define _srcrpmdir %_topdir/SRPMS
@FILE_NAME_DEFINE@
%define _unpackaged_files_terminate_build 0
%prep
mv $RPM_BUILD_ROOT %_topdir/tmpBBroot
%install
if [ -e $RPM_BUILD_ROOT ];
then
rm -rf $RPM_BUILD_ROOT
fi
mv %_topdir/tmpBBroot $RPM_BUILD_ROOT
%clean
%post
@RPM_SYMLINK_POSTINSTALL@
@CPACK_RPM_SPEC_POSTINSTALL@
%postun
@CPACK_RPM_SPEC_POSTUNINSTALL@
%pre
@CPACK_RPM_SPEC_PREINSTALL@
%preun
@CPACK_RPM_SPEC_PREUNINSTALL@
%package -n @CPACK_PACKAGE_FILE_NAME@-devel
Summary: FMI newbase development files
Provides: @CPACK_PACKAGE_FILE_NAME@-devel
%if @BUILD_SHARED_LIBS@ == ON
Requires: @CPACK_PACKAGE_FILE_NAME@
%else
Requires: @CPACK_PACKAGE_FILE_NAME@-static
%endif
Obsoletes: libsmartmet-newbase-devel < 16.12.19
%description -n @CPACK_PACKAGE_FILE_NAME@-devel
FMI newbase development files
%files -n @CPACK_PACKAGE_FILE_NAME@-devel
%defattr(0664,root,root,0775)
@CPACK_PACKAGING_INSTALL_PREFIX@/include/newbase/*.h
@CPACK_PACKAGING_INSTALL_PREFIX@/lib/cmake/newbase/NewbaseConfig.cmake
%if @BUILD_SHARED_LIBS@ == ON
%package -n @CPACK_PACKAGE_FILE_NAME@
Summary: FMI newbase shared library
Provides: @CPACK_PACKAGE_FILE_NAME@
%description -n @CPACK_PACKAGE_FILE_NAME@
FMI newbase shared library
%files -n @CPACK_PACKAGE_FILE_NAME@
%defattr(0664,root,root,0775)
@CPACK_PACKAGING_INSTALL_PREFIX@/lib/@CMAKE_SHARED_LIBRARY_PREFIX@@PROJECT_NAME@@CMAKE_SHARED_LIBRARY_SUFFIX@
%else
%package -n @CPACK_PACKAGE_FILE_NAME@-static
Summary: FMI newbase static library
Provides: @CPACK_PACKAGE_FILE_NAME@-static
%description -n @CPACK_PACKAGE_FILE_NAME@-static
FMI newbase static library
%files -n @CPACK_PACKAGE_FILE_NAME@-static
%defattr(0664,root,root,0775)
@CPACK_PACKAGING_INSTALL_PREFIX@/lib/@CMAKE_STATIC_LIBRARY_PREFIX@@PROJECT_NAME@@CMAKE_STATIC_LIBRARY_SUFFIX@
%endif
%changelog