-
Notifications
You must be signed in to change notification settings - Fork 2
/
libdiskallocator.spec
63 lines (45 loc) · 1.25 KB
/
libdiskallocator.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
%define LibDiskallocatorDevel libdiskallocator-devel
%define CommitVersion %(echo $COMMIT_VERSION)
Name: libdiskallocator
Version: 1.1.9
Release: 1%{?dist}
Summary: rapid disk allocator
License: AGPL
Group: Arch/Tech
URL: http://github.com/happyfish100/libdiskallocator/
Source: http://github.com/happyfish100/libdiskallocator/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libserverframe-devel >= 1.2.5
Requires: libserverframe >= 1.2.5
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
%description
rapid disk allocator
commit version: %{CommitVersion}
%package devel
Summary: Development header file
Requires: libserverframe-devel >= 1.2.5
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the header files of libdiskallocator
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/libdiskallocator.so*
%files devel
%defattr(-,root,root,-)
/usr/include/diskallocator/*
%changelog
* Wed Dec 22 2021 YuQing <384681@qq.com>
- first RPM release (1.0)