Skip to content

Commit

Permalink
Merge pull request #22 from jhiemstrawisc/add-rpm-specfile
Browse files Browse the repository at this point in the history
Move rpm specfile into repo and bump version
  • Loading branch information
jhiemstrawisc authored Sep 18, 2024
2 parents c1819a0 + 89a36bd commit c28cee0
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions rpm/lotman.spec
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.

0 comments on commit c28cee0

Please sign in to comment.