This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 735
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 #12 from hyperledger/master
Merging master from hyperledger
- Loading branch information
Showing
24 changed files
with
664 additions
and
416 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,73 @@ | ||
%global commit @commit@ | ||
|
||
Summary: Official SDK for Hyperledger Indy | ||
Name: indy-sdk | ||
Version: @version@.%{commit} | ||
Release: 1%{?dist} | ||
License: Apache License 2.0 | ||
Group: System Environment/Libraries | ||
Source: https://github.com/hyperledger/indy-sdk/archive/%{commit}.tar.gz | ||
URL: https://github.com/hyperledger/indy-sdk/ | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
Requires: sqlite openssl libsodium | ||
BuildRequires: sqlite-devel openssl-devel libsodium-devel | ||
|
||
%description | ||
This is the official SDK for Hyperledger Indy, which provides a | ||
distributed-ledger-based foundation for self-sovereign identity. | ||
The major artifact of the SDK is a c-callable library; there are | ||
also convenience wrappers for various programming languages. | ||
|
||
All bugs, stories, and backlog for this project are managed through | ||
Hyperledger's Jira in project IS (note that regular Indy tickets are | ||
in the INDY project instead...). Also, join us on Jira's Rocket.Chat | ||
at #indy-sdk to discuss. | ||
|
||
%package devel | ||
Summary: Development files for Hyperledger Indy | ||
Group: Development/Libraries | ||
Requires: %{name} = %{version}-%{release} | ||
|
||
%description devel | ||
This is the official SDK for Hyperledger Indy, which provides a | ||
distributed-ledger-based foundation for self-sovereign identity. | ||
The major artifact of the SDK is a c-callable library; there are | ||
also convenience wrappers for various programming languages. | ||
|
||
All bugs, stories, and backlog for this project are managed through | ||
Hyperledger's Jira in project IS (note that regular Indy tickets are | ||
in the INDY project instead...). Also, join us on Jira's Rocket.Chat | ||
at #indy-sdk to discuss. | ||
|
||
%prep | ||
%autosetup -n %{name}-%{commit} | ||
|
||
%build | ||
cargo build --release | ||
|
||
%install | ||
rm -rf ${RPM_BUILD_ROOT} | ||
|
||
install -dm0755 $RPM_BUILD_ROOT/%{_includedir}/sovrin | ||
install -dm0755 $RPM_BUILD_ROOT/%{_libdir} | ||
cp -a include/*.h $RPM_BUILD_ROOT/%{_includedir}/sovrin/ | ||
install -Dm0644 target/release/libsovrin.a $RPM_BUILD_ROOT/%{_libdir}/libsovrin.a | ||
install -Dm0644 target/release/libsovrin.so $RPM_BUILD_ROOT/%{_libdir}/libsovrin.so | ||
|
||
%clean | ||
rm -rf ${RPM_BUILD_ROOT} | ||
|
||
%post -p /sbin/ldconfig | ||
|
||
%postun -p /sbin/ldconfig | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%{_libdir}/libsovrin.so* | ||
|
||
%files devel | ||
%defattr(-,root,root) | ||
%{_libdir}/libsovrin.a | ||
%{_includedir}/sovrin/*.h | ||
|
||
%changelog |
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,15 @@ | ||
#!/bin/bash | ||
|
||
commit=$1 | ||
version=$(wget -q https://raw.githubusercontent.com/hyperledger/indy-sdk/$commit/Cargo.toml -O - | grep -E '^version =' | head -n1 | cut -f2 -d= | tr -d '" ') | ||
|
||
[ -z $version ] && exit 1 | ||
[ -z $commit ] && exit 2 | ||
|
||
sed \ | ||
-e "s|@commit@|$commit|g" \ | ||
-e "s|@version@|$version.$commit|g" \ | ||
indy-sdk.spec.in >indy-sdk.spec | ||
|
||
spectool -g -R indy-sdk.spec || exit 3 | ||
rpmbuild -ba indy-sdk.spec || exit 4 |
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
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
Oops, something went wrong.