diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..719abbb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cjose-0.5.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 1600bc4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# cjose - -The cjose package \ No newline at end of file diff --git a/cjose.spec b/cjose.spec new file mode 100644 index 0000000..558e74b --- /dev/null +++ b/cjose.spec @@ -0,0 +1,67 @@ +Name: cjose +Version: 0.5.1 +Release: 1%{?dist} +Summary: C library implementing the Javascript Object Signing and Encryption (JOSE) + +License: MIT +URL: https://github.com/cisco/cjose +Source0: https://github.com/cisco/%{name}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: doxygen +BuildRequires: openssl-devel +BuildRequires: jansson-devel +BuildRequires: check-devel + +%description +Implementation of JOSE for C/C++ + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -n %{name}-%{version} + + +%build +%configure +%make_build + + +%install +%make_install +find %{buildroot} -name '*.a' -exec rm -f {} ';' +find %{buildroot} -name '*.la' -exec rm -f {} ';' + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%check +make check + + +%files +%license LICENSE +%doc CHANGELOG.md README.md +%doc /usr/share/doc/cjose +%{_libdir}/*.so.* + + +%files devel +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/cjose.pc + + +%changelog +* Fri Jan 26 2018 Patrick Uiterwijk - 0.5.1-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..72d8f4b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cjose-0.5.1.tar.gz) = 54e46c29111fa4589d8af7b249308809deb9f94803b8fd1fa7a48924a0efc55e2cc094610d5579ab1ae8c3524fa52c4c8b61e15d3ffeb87a8e20fbe2ad09c775