2020-09-11 17:22:47 +08:00
|
|
|
Name: libfastcommon
|
|
|
|
|
Version: 1.0.43
|
2021-07-06 10:22:20 +08:00
|
|
|
Release: 3
|
2020-09-11 17:22:47 +08:00
|
|
|
Summary: c common functions library extracted from my open source projects FastDFS
|
|
|
|
|
License: LGPL
|
|
|
|
|
Group: Arch/Tech
|
|
|
|
|
URL: https://github.com/happyfish100/libfastcommon
|
|
|
|
|
Source: https://github.com/happyfish100/libfastcommon/archive/V%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake gcc
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
c common functions library extracted from my open source projects FastDFS.
|
|
|
|
|
this library is very simple and stable. functions including: string, logger,
|
|
|
|
|
chain, hash, socket, ini file reader, base64 encode / decode,
|
|
|
|
|
url encode / decode, fasttimer etc.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development header file
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package provides the header files of libfastcommon
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./make.sh clean && ./make.sh
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT ./make.sh install
|
|
|
|
|
ln -sf /usr/lib64/libfastcommon.so %{buildroot}/usr/lib/libfastcommon.so
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_usr}/lib64/libfastcommon.so*
|
|
|
|
|
%{_usr}/lib/libfastcommon.so*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_usr}/include/fastcommon/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-07-06 10:22:20 +08:00
|
|
|
* Mon Jul 5 2021 sunligang <sunligang@kylinos.cn> - 1.0.43-3
|
|
|
|
|
- Remove useless readme files
|
|
|
|
|
|
2021-06-23 11:59:50 +08:00
|
|
|
* Wed Jun 23 2021 wangxiaomeng <wangxiaomeng@kylinos.cn> - 1.0.43-2
|
|
|
|
|
- Fix version in changelog of spec
|
|
|
|
|
|
|
|
|
|
* Fri Sep 11 2020 huyan90325 <huyan90325@talkweb.com.cn> - 1.0.43-1
|
2020-09-11 17:22:47 +08:00
|
|
|
- Package init
|