This repository has been archived by the owner on Oct 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathxfsprogs.spec
99 lines (79 loc) · 2.32 KB
/
xfsprogs.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Summary: Tools for the XFS filesystem
Name: xfsprogs
Version: 3.2.1
Release: 1
License: LGPL v2.1 (libhandle), GPL v2 (the rest)
Group: Applications/System
Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz
# Source0-md5: 5c6905932029c8f9207fe5a0a8aac24b
URL: http://oss.sgi.com/projects/xfs/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bash
BuildRequires: gettext-devel
BuildRequires: libtool
BuildRequires: libuuid-devel
BuildRequires: readline-devel
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define skip_post_check_so libxlog.so.* libxcmd.so.*
%description
A set of commands to use the XFS filesystem, including mkfs.xfs.
%package libs
Summary: XFS libraries
Group: Libraries
%description libs
XFS libraries.
%package devel
Summary: Header files and libraries to develop XFS software
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
Requires: libuuid-devel
%description devel
Header files and libraries to develop software which operates on XFS
filesystems.
%prep
%setup -q
%build
export DEBUG="-DNDEBUG"
export OPTIMIZER="%{rpmcflags}"
%{__aclocal} -I m4
%{__autoconf}
%configure
%{__make} -j1 V=1
%install
rm -rf $RPM_BUILD_ROOT
DIST_ROOT=$RPM_BUILD_ROOT
DIST_INSTALL=$(pwd)/install.manifest
DIST_INSTALL_DEV=$(pwd)/install-dev.manifest
export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
%{__make} -j1 install \
DIST_MANIFEST="$DIST_INSTALL"
%{__make} -j1 install-dev \
DIST_MANIFEST="$DIST_INSTALL_DEV"
mv $RPM_BUILD_ROOT{/%{_lib}/*,%{_libdir}}
mv $RPM_BUILD_ROOT{/sbin/*,%{_sbindir}}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
%find_lang %{name}
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /usr/sbin/ldconfig
%postun libs -p /usr/sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README doc/{CHANGES,CREDITS}
%attr(755,root,root) %{_sbindir}/fsck.xfs
%attr(755,root,root) %{_sbindir}/mkfs.xfs
%attr(755,root,root) %{_sbindir}/xfs_*
%{_mandir}/man5/*.5*
%{_mandir}/man8/*.8*
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %ghost %{_libdir}/libhandle.so.?
%attr(755,root,root) %{_libdir}/libhandle.so.*.*.*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libhandle.so
%{_includedir}/xfs
%{_mandir}/man3/*.3*