smc-tools/smc-tools.spec

58 lines
1.3 KiB
RPMSpec
Raw Normal View History

2018-01-16 11:41:05 +00:00
Name: smc-tools
Version: 1.0.0
Release: 2%{?dist}
Summary: Shared Memory Communication Tools
License: EPL
URL: https://www.ibm.com/developerworks/linux/linux390/smc-tools.html
Source0: https://public.dhe.ibm.com/software/dw/linux390/ht_src/%{name}-%{version}.tar.gz
# don't strip binaries
Patch0: %{name}-1.0.0-no-strip.patch
# treat armv7 as 32-bit
Patch1: %{name}-1.0.0-arm.patch
# use distro LDFLAGS
Patch2: %{name}-1.0.0-ldflags.patch
# let glibc define libc SO
Patch3: %{name}-1.0.0-glibc.patch
BuildRequires: libnl3-devel
%description
The Shared Memory Communication Tools (smc-tools) package enables usage of SMC
sockets in Linux.
%prep
%autosetup
%build
%make_build CFLAGS="-Iinclude %{optflags}" LDFLAGS="%{__global_ldflags}"
%install
%make_install
%files
%license LICENSE
%doc README.smctools
%{_bindir}/smc_pnet
%{_bindir}/smc_run
%{_bindir}/smcss
%{_libdir}/ld_pre_smc.so
%{_mandir}/man7/af_smc.7*
%{_mandir}/man8/smc_pnet.8*
%{_mandir}/man8/smc_run.8*
%{_mandir}/man8/smcss.8*
%changelog
* Wed Jan 10 2018 Dan Horák <dan@danny.cz> - 1.0.0-2
- use make macro
- comment patches
- use distro LDFLAGS in build
* Mon Jan 8 2018 Dan Horák <dan@danny.cz> - 1.0.0-1
- initial Fedora version