LFS-RPM/SPECS/firmware-realtek.spec
2019-05-24 08:27:40 -04:00

43 lines
1.6 KiB
RPMSpec

#MD5SUM: ca0739ca20bd48a6bbfb31c1778e2469;SOURCES/firmware-realtek-1.00.tar.gz
#-----------------------------------------------------------------------------
Summary: Firmware for realtek network cards
Name: firmware-realtek
Version: 1.00
Release: 1
License: Any
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source: %{name}-%{version}.tar.gz
Requires: filesystem
%description
Firmware for realtek network cards
#-----------------------------------------------------------------------------
%prep
%build
cd %{_builddir}
tar xzf %{_sourcedir}/%{name}-%{version}.tar.gz
%install
install -vdm 755 %{buildroot}/lib/firmware/rtl_nic
cp -var %{_builddir}/rtl_nic/* %{buildroot}/lib/firmware/rtl_nic
#-----------------------------------------------------------------------------
# Copy license/copying file
# install -D -m644 %{_builddir}/LICENSE.realtek %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
# rm %{buildroot}%{_infodir}/dir
# find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
# sed -i '/man\/man/d' filelist.rpm
# sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
# %%{_infodir}/*.gz
# %%{_mandir}/man1/*.gz
#-----------------------------------------------------------------------------
%changelog
* Sun Jul 29 2018 baho-utot <baho-utot@columbus.rr.com> 1.00-1
- Initial build. First version