-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from jhiemstrawisc/add-rpm-specfile
Move rpm specfile into repo and bump version
- Loading branch information
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
############################################# | ||
# Global macros that can be used throughout # | ||
############################################# | ||
%global srcname lotman | ||
|
||
Name: %srcname | ||
Version: 0.0.3 | ||
Release: 1%{?dist} | ||
Summary: C++ Implementation of the LotMan Library | ||
License: Apache-2.0 | ||
URL: https://github.com/PelicanPlatform/lotman | ||
|
||
Source0: https://github.com/PelicanPlatform/lotman/releases/download/v%{version}/lotman-%{version}.tar.gz | ||
|
||
############################################# | ||
# Build dependencies # | ||
############################################# | ||
BuildRequires: gcc-c++ | ||
BuildRequires: make | ||
BuildRequires: cmake3 >= 3.18.4 | ||
BuildRequires: cmake-rpm-macros | ||
BuildRequires: sqlite-devel | ||
BuildRequires: libuuid-devel | ||
BuildRequires: nlohmann-json-devel | ||
BuildRequires: json-schema-validator-devel | ||
|
||
%description | ||
Public headers for the LotMan library, which tracks data usage in dHTC environments over the "lot" object. | ||
|
||
############################################# | ||
# To suppress some of the debug outputs # | ||
############################################# | ||
%global debug_package %{nil} | ||
|
||
############################################# | ||
# RHEL 9 will try to build out of source, # | ||
# so that needs to be overridden. # | ||
############################################# | ||
%if 0%{?rhel} > 8 | ||
%global __cmake_in_source_build 1 | ||
%endif | ||
|
||
############################################# | ||
# Beginning of the build + make workflow # | ||
############################################# | ||
%prep | ||
%autosetup -n %{srcname}-%{version} | ||
|
||
%build | ||
mkdir -p build | ||
cd build | ||
%cmake .. | ||
%make_build | ||
|
||
%install | ||
cd build | ||
%make_install | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
#%{_libdir}/libLotMan.so.0* | ||
%{_libdir}/libLotMan.so | ||
#%{_bindir}/lotman-* | ||
%{_includedir}/lotman/lotman.h | ||
%dir %{_includedir}/lotman | ||
|
||
%changelog | ||
* Wed Sep 18 2024 Justin Hiemstra <[email protected]> - 0.0.3-1 | ||
- Fixes for paths JSON data structure. | ||
- Error message cleanups. | ||
- Various unit test upgrades. | ||
|
||
* Wed Oct 18 2023 Justin Hiemstra <[email protected]> - 0.0.2-1 | ||
- v0.0.2 release of LotMan -- adds the ability to set sqlite timeouts | ||
and enables WAL mode for better concurrency. | ||
|
||
* Tue Jun 27 2023 Justin Hiemstra <[email protected]> - 0.0.1-1 | ||
- Initial release of the LotMan C++ RPM. |