support clang build

Signed-off-by: luofeng14 <luofeng13@huawei.com>
(cherry picked from commit 6670eb096847e40245655019aba52adbba8b3ff9)
This commit is contained in:
luofeng14 2024-03-25 14:24:42 +00:00 committed by openeuler-sync-bot
parent 35f67f4469
commit 35335f5454

View File

@ -1,6 +1,6 @@
Name: fxload
Version: 2008_10_13
Release: 19
Release: 20
Summary: A program which downloads firmware to USB devices
License: GPLv2+
URL: http://linux-hotplug.sourceforge.net/
@ -26,7 +26,7 @@ This contains man files for the using of fxload.
%autosetup -n %{name}-%{version} -p1
%build
make CC=gcc CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
make CC=%{__cc} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%install
install -D -m 755 fxload %{buildroot}/sbin/fxload
@ -41,6 +41,9 @@ install -D -m 644 fxload.8 %{buildroot}/%{_mandir}/man8/fxload.8
%{_mandir}/*/*
%changelog
* Fri Mar 1 2024 luofeng <luofeng13@huawei.com> - 2008_10_13-20
- support clang build
* Thu May 19 2022 chengwenzhe <chengwenzhe@uniontech.com> - 2008_10_13-19
- fix spec changelog date time