File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed
Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,18 @@ if (NOT DEFINED LIB_INSTALL_DIR)
4444 SET (LIB_INSTALL_DIR "lib" )
4545endif ()
4646
47+ if (NOT DEFINED INCLUDE_INSTALL_DIR)
48+ SET (INCLUDE_INSTALL_DIR "include" )
49+ endif ()
50+
4751install (
4852 TARGETS SciTokens
4953 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
5054
55+ install (
56+ FILES src/scitokens.h
57+ DESTINATION ${INCLUDE_INSTALL_DIR} /scitokens )
58+
5159set_target_properties (
5260 SciTokens
5361 PROPERTIES
Original file line number Diff line number Diff line change 1+ Name: scitokens-cpp
2+ Version: 0.1.0
3+ Release: 1%{?dist }
4+ Summary: C++ Implementation of the SciTokens Library
5+ License: Apache 2.0
6+ URL: https://github.com/scitokens/scitokens-cpp
7+
8+ # Generated from:
9+ # git_archive_all.py --prefix=scitokens-cpp-0.1.0/ -9 ~/rpmbuild/SOURCES/scitokens-cpp-0.1.0.tar.gz
10+ # Where git_archive_all.py is from https://github.com/Kentzo/git-archive-all.git
11+ Source0: %{name }-%{version }.tar.gz
12+
13+ BuildRequires: gcc-c++
14+ BuildRequires: cmake
15+ BuildRequires: sqlite-devel
16+ BuildRequires: openssl-devel
17+
18+ %description
19+ %{summary }
20+
21+ %package devel
22+ Summary: Header files for the scitokens-cpp public interfaces.
23+
24+ Requires: %{name }-%{version }
25+
26+ %description devel
27+ %{summary }
28+
29+ %prep
30+ %setup -q
31+
32+ %build
33+ mkdir build
34+ cd build
35+ %cmake ..
36+ make
37+
38+ %install
39+ pushd build
40+ rm -rf $RPM_BUILD_ROOT
41+ echo $RPM_BUILD_ROOT
42+ make install DESTDIR=$RPM_BUILD_ROOT
43+ popd
44+
45+ %clean
46+ rm -rf $RPM_BUILD_ROOT
47+
48+ %post
49+ /sbin/ldconfig
50+
51+ %postun
52+ /sbin/ldconfig
53+
54+ %files
55+ %{_libdir }/libSciTokens.so*
56+
57+ %files devel
58+ %{_includedir }/scitokens/scitokens.h
59+
60+ %defattr(-,root,root,-)
61+
62+ %changelog
63+ * Thu Jan 03 2019 Brian Bockelman <bbockelm@cse.unl.edu> - 0.1.0-1
64+ - Initial version of the SciTokens C++ RPM.
You can’t perform that action at this time.
0 commit comments