-
Notifications
You must be signed in to change notification settings - Fork 529
/
libfastcommon.spec
66 lines (48 loc) · 1.45 KB
/
libfastcommon.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%define LibFastcommonDevel libfastcommon-devel
%define CommitVersion %(echo $COMMIT_VERSION)
Name: libfastcommon
Version: 1.0.75
Release: 1%{?dist}
Summary: c common functions library extracted from my open source projects FastDFS
License: LGPL
Group: Arch/Tech
URL: http://github.com/happyfish100/libfastcommon/
Source: http://github.com/happyfish100/libfastcommon/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libcurl-devel
Requires: libcurl
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
%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.
commit version: %{CommitVersion}
%package devel
Summary: Development header file
Requires: libcurl-devel
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the header files of libfastcommon
commit version: %{CommitVersion}
%prep
%setup -q
%build
./make.sh clean && ./make.sh
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT ./make.sh install
%post
%preun
%postun
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
/usr/lib64/libfastcommon.so*
%files devel
%defattr(-,root,root,-)
/usr/include/fastcommon/*
%changelog
* Mon Jun 23 2014 Zaixue Liao
- first RPM release (1.0)