Initial version - 0.0.4-1

This commit is contained in:
Lukas Zapletal 2019-08-19 16:06:37 +02:00
parent 696e0ecb52
commit 1e635d9017
3 changed files with 65 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/chan-0.0.4.tar.gz

63
chan.spec Normal file
View File

@ -0,0 +1,63 @@
Name: chan
Version: 0.0.4
Release: 1%{?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 Aug 14 2019 Lukáš Zapletal 0.0.4-1
- Initial package version

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (chan-0.0.4.tar.gz) = 0e4c9791c7eecd2ba9aad564c2fe4e9102ad2ec61b87bd2f23f0e191cecfe57ea82d72adeb770bbc087814630c1a05840d93f787e05c5d239a380083f0ed6555