Skip to content

Commit 9707d5d

Browse files
author
Chris Rhodes
committed
update spec for autotools changes
1 parent cdad08f commit 9707d5d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

dist/rpm/libxjwt.spec

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: libxjwt
2-
Version: 1.0.1
2+
Version: 1.0.2
33
Release: 1%{?dist}
44

55
Summary: Minimal C library for validation of real-world JWTs
@@ -14,11 +14,13 @@ BuildRequires: scons
1414
BuildRequires: openssl-devel
1515
BuildRequires: jansson-devel
1616

17+
Prefix: %{_prefix}
18+
1719
%description
1820
libxjwt seeks to provide a minimal c89-style library and API surface for validating a compact-form JWT against a set of JWKs. This is not meant to be a general purpose JOSE library. If you are looking for a more general purpose C library, consider cjose.
1921

2022
%files
21-
/usr/lib/%{name}.so
23+
%{_prefix}/lib/%{name}.*
2224
%license $RPM_BUILD_DIR/%{name}-%{version}/LICENSE
2325
%doc $RPM_BUILD_DIR/%{name}-%{version}/README.md
2426

@@ -32,18 +34,18 @@ Provides: %{name}-devel = %{version}-%{release}
3234
%{name} development files.
3335

3436
%files -n %{name}-devel
35-
/usr/include/xjwt/*.h
37+
%{_prefix}/include/xjwt/*.h
3638

3739
%prep
3840
rm -Rf $RPM_BUILD_DIR/%{name}-%{version}
3941
tar xvfz $RPM_SOURCE_DIR/v%{version}.tar.gz -C $RPM_BUILD_DIR/
4042

4143
%build
4244
cd %{name}-%{version}
43-
scons build
45+
./configure --prefix=%{_prefix}
46+
make
4447

4548
%install
49+
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
4650
cd %{name}-%{version}
47-
scons install --install-sandbox="$RPM_BUILD_ROOT" prefix=/usr
48-
49-
%post -p /sbin/ldconfig
51+
make DESTDIR=$RPM_BUILD_ROOT install

0 commit comments

Comments
 (0)