Skip to content

Commit bff8175

Browse files
committed
Updating spec file from OSG
1 parent 0edd9a2 commit bff8175

File tree

1 file changed

+42
-11
lines changed

1 file changed

+42
-11
lines changed

rpm/scitokens-cpp.spec

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,30 @@ License: Apache 2.0
66
URL: https://github.com/scitokens/scitokens-cpp
77

88
# Generated from:
9-
# git_archive_all.py --prefix=scitokens-cpp-0.3.1/ -9 ~/rpmbuild/SOURCES/scitokens-cpp-0.3.1.tar.gz
9+
# git_archive_all.py --prefix=scitokens-cpp-0.3.2/ --force-submodules -9 scitokens-cpp-0.3.2.tar.gz
1010
# Where git_archive_all.py is from https://github.com/Kentzo/git-archive-all.git
1111
Source0: %{name}-%{version}.tar.gz
1212

1313
BuildRequires: gcc-c++
1414
BuildRequires: cmake
1515
BuildRequires: sqlite-devel
1616
BuildRequires: openssl-devel
17+
BuildRequires: libcurl-devel
18+
BuildRequires: libuuid-devel
19+
20+
# Needed for C++11
21+
%if 0%{?el6}
22+
BuildRequires: devtoolset-8-toolchain
23+
BuildRequires: scl-utils
24+
%endif
1725

1826
%description
1927
%{summary}
2028

2129
%package devel
2230
Summary: Header files for the scitokens-cpp public interfaces.
2331

24-
Requires: %{name}-%{version}
32+
Requires: %{name} = %{version}
2533

2634
%description devel
2735
%{summary}
@@ -30,21 +38,25 @@ Requires: %{name}-%{version}
3038
%setup -q
3139

3240
%build
33-
mkdir build
34-
cd build
35-
%cmake ..
36-
make
41+
do_build () {
42+
set -ex
43+
mkdir build
44+
cd build
45+
%cmake ..
46+
make
47+
}
48+
export -f do_build
49+
%if 0%{?el6}
50+
scl enable devtoolset-8 do_build
51+
%else
52+
do_build
53+
%endif
3754

3855
%install
3956
pushd build
40-
rm -rf $RPM_BUILD_ROOT
41-
echo $RPM_BUILD_ROOT
4257
make install DESTDIR=$RPM_BUILD_ROOT
4358
popd
4459

45-
%clean
46-
rm -rf $RPM_BUILD_ROOT
47-
4860
%post
4961
/sbin/ldconfig
5062

@@ -60,12 +72,31 @@ rm -rf $RPM_BUILD_ROOT
6072
%defattr(-,root,root,-)
6173

6274
%changelog
75+
* Thu Jul 25 2019 Mátyás Selmeci <matyas@cs.wisc.edu> - 0.3.2-1.osg
76+
- Merge OSG changes
77+
- Use a newer, still supported version of devtoolset
78+
6379
* Thu Jul 25 2019 Derek Weitzel <dweitzel@unl.edu> - 0.3.2-1
6480
- Update RPM to v0.3.2 of the packaging.
6581
- Fix downloading public key bug #12
6682

6783
* Thu Jun 20 2019 Brian Bockelman <brian.bockelman@cern.ch> - 0.3.1-1
6884
- Update RPM to v0.3.1 of the packaging.
6985

86+
* Wed May 29 2019 Mátyás Selmeci <matyas@cs.wisc.edu> - 0.3.0-4
87+
- Use double layer of const for deserialize
88+
(patch from https://github.com/scitokens/scitokens-cpp/commit/ac0b2f0679488fa91c14ed781268efbcdb69ed3c)
89+
90+
* Mon May 13 2019 Mátyás Selmeci <matyas@cs.wisc.edu> - 0.3.0-3
91+
- Add Force-aud-test-in-the-validator.patch from
92+
https://github.com/scitokens/scitokens-cpp/pull/8
93+
94+
* Fri May 03 2019 Mátyás Selmeci <matyas@cs.wisc.edu> - 0.3.0-2
95+
- Fix requirements
96+
97+
* Thu May 02 2019 Mátyás Selmeci <matyas@cs.wisc.edu> - 0.3.0-1
98+
- Update to v0.3.0
99+
- Add dependencies on libcurl-devel, libuuid-devel
100+
70101
* Thu Jan 03 2019 Brian Bockelman <bbockelm@cse.unl.edu> - 0.1.0-1
71102
- Initial version of the SciTokens C++ RPM.

0 commit comments

Comments
 (0)