-
Notifications
You must be signed in to change notification settings - Fork 12
/
cudatemplates.spec.in
48 lines (41 loc) · 1.08 KB
/
cudatemplates.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
Summary: CUDA template library
Name: ${CPACK_PACKAGE_NAME}
Version: ${CPACK_PACKAGE_VERSION}
Release: 1
License: GPL v3 or later
Group: Development/Libraries
Source: %{name}-%{version}.tar.bz2
Vendor: Institute for Computer Graphics and Vision, Graz University of Technology, Austria
URL: http://www.icg.tugraz.at
Packager: Institute for Computer Graphics and Vision, Graz University of Technology, Austria
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/buildroot-%{name}-%{version}
BuildArch: noarch
Requires: boost
BuildRequires: cmake boost-devel doxygen graphviz
#%define build_type Debug
%define build_type MinSizeRel
%description
...
%prep
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%setup
%build
cmake \
-DCMAKE_BUILD_TYPE:STRING=%{build_type} \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
.
#make doc
mkdir -p doc/html
%install
DESTDIR=$RPM_BUILD_ROOT make install
find -type f -exec chmod ugo-w {} \;
%clean
make clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc doc/html
%doc LICENSE
%{_includedir}/%{name}
%{_datadir}/CudaTemplates