Skip to content

Commit

Permalink
add scitokens-* binaries to the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDaveD committed Sep 15, 2021
1 parent 2a2b4ef commit f536ea2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ install(
FILES src/scitokens.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/scitokens )

install(
DIRECTORY build/
DESTINATION ${CMAKE_INSTALL_BINDIR}
FILES_MATCHING
PATTERN "CMakeFiles" EXCLUDE
PATTERN "scitokens-*"
PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE
OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
)

set_target_properties(
SciTokens
PROPERTIES
Expand Down
1 change: 1 addition & 0 deletions debian/libscitokens0.install
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
debian/tmp/usr/lib/*/libSciTokens.so.*
debian/tmp/usr/bin/scitokens-*
4 changes: 2 additions & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
dh $@
dh $@ --builddirectory=build

override_dh_auto_configure:
dh_auto_configure -- -DLIB_INSTALL_DIR=lib/$(DEB_HOST_MULTIARCH)
dh_auto_configure -- -S .. -DLIB_INSTALL_DIR=lib/$(DEB_HOST_MULTIARCH)
9 changes: 9 additions & 0 deletions rpm/scitokens-cpp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,24 @@ Requires: %{name}%{?_isa} = %{version}
%setup -q

%build
mkdir -p build
cd build
%undefine __cmake3_in_source_build
%define __cmake3_srcdir ..
%define __cmake3_builddir .
%cmake3
%cmake3_build

%install
cd build
%cmake3_install

# Run the ldconfig
%ldconfig_scriptlets

%files
%{_libdir}/libSciTokens.so.0*
%{_bindir}/scitokens-*
%license LICENSE
%doc README.md

Expand All @@ -65,6 +72,8 @@ Requires: %{name}%{?_isa} = %{version}
%dir %{_includedir}/scitokens

%changelog
#- Add scitokens-* binaries to the package

* Fri Sep 03 2021 Dave Dykstra <dwd@fnal.gov> - 0.6.3-1
- Add support for building Debian packages on the OpenSUSE Build System
- Add patch to jwt-cpp to update its picojson dependency in order to
Expand Down

0 comments on commit f536ea2

Please sign in to comment.