forked from accre/lstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lstore.spec
76 lines (62 loc) · 1.54 KB
/
lstore.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
67
68
69
70
71
72
73
74
75
# -*- rpm-spec -*-
%define _basename lstore
%define _version 0.5.1
%define _release 1
%define _prefix /usr
URL: http://www.lstore.org
Name: %{_basename}
Version: %{_version}
Release: %{_release}
Summary: LStore - Logistical Storage
License: Apache2
BuildRoot: %{_builddir}/%{_basename}-root
Source: https://github.com/accre/lstore-release/archive/LStore-%{_version}.tar.gz
%description
LStore - Logistical Storage.
%prep
%setup -n LStore-%{_version}
%build
CFLAGS="-I%{_prefix}/include $RPM_OPT_FLAGS"
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=%{_prefix}"
CMAKE_FLAGS="$CMAKE_FLAGS -DINSTALL_YUM_RELEASE:BOOL=ON"
CMAKE_FLAGS="$CMAKE_FLAGS -DINSTALL_META:BOOL=ON"
cmake $CMAKE_FLAGS .
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
/usr/bin
/usr/lib64
%changelog
* Sat Apr 23 2016 Andrew Melo <[email protected]> 0.5.1-1
- Several bug fixed.
%package devel
Summary: Development files for LStore
Group: Development/System
Requires: lstore
%description devel
Development files for LStore
%files devel
/usr/include
%package meta
Summary: Default LStore configuration
Group: Development/System
Requires: lstore
%description meta
Default LStore configuration
%files meta
%config(noreplace) /etc/lio
%config(noreplace) /etc/logrotate.d/lstore
%package release
Version: 1.0.0
Summary: LStore repository meta-package
Group: Development/System
%description release
Installs LStore yum repository
%files release
%config /etc/yum.repos.d/lstore.repo