From b7b630d73bd20bbd230591aebf72dfe80bb6010e Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 01:07:11 -0400 Subject: [PATCH] Auto sync2gitlab import of chan-0.0.4-3.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - chan.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 chan.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..baad5a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/chan-0.0.4.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/chan.spec b/chan.spec new file mode 100644 index 0000000..3895f63 --- /dev/null +++ b/chan.spec @@ -0,0 +1,69 @@ +Name: chan +Version: 0.0.4 +Release: 3%{?dist} +Summary: Pure C implementation of Go channels +License: ASL 2.0 +URL: https://github.com/tylertreat/%{name} +Source0: https://github.com/tylertreat/%{name}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc autoconf automake libtool +#Requires: + +%description +Pure C implementation of Go channels. Unbuffered, buffered +and closing channels are available. + +%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 +./autogen.sh +%configure --disable-static +%make_build + +%check +%make_build src/chan_test +./src/chan_test + +%install +rm -rf $RPM_BUILD_ROOT +%make_install +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +%ldconfig_post + +%ldconfig_postun + + +%files +%license LICENSE +%doc README.md +%{_libdir}/lib%{name}.so.0.0.0 +%{_libdir}/lib%{name}.so.0 + +%files devel +%dir %{_includedir}/%{name} +%{_includedir}/%{name}/queue.h +%{_includedir}/%{name}/%{name}.h +%{_libdir}/lib%{name}.so + + +%changelog +* Wed May 20 2020 Mark Goodwin - 0.0.4-3 +- Initial version for RHEL-8, rebuild for CI/gating + +* Tue Jan 28 2020 Fedora Release Engineering - 0.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Aug 14 2019 Lukáš Zapletal 0.0.4-1 +- Initial package version diff --git a/sources b/sources new file mode 100644 index 0000000..cb409ec --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (chan-0.0.4.tar.gz) = 0e4c9791c7eecd2ba9aad564c2fe4e9102ad2ec61b87bd2f23f0e191cecfe57ea82d72adeb770bbc087814630c1a05840d93f787e05c5d239a380083f0ed6555