Browse code

Adding xfsprogs package

Change-Id: I5297640484e60cd89d53d215c5a92f008327fae4
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1942
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

DheerajSShetty authored on 2017/01/11 04:19:58
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,85 @@
0
+Summary:    Utilities for managing the XFS filesystem
1
+Name:       xfsprogs
2
+Version:    4.9.0
3
+Release:    1%{?dist}
4
+License:    GPL+ and LGPLv2+
5
+URL:        http://oss.sgi.com/projects/xfs/
6
+Group:      System Environment/Base
7
+Vendor:     VMware, Inc.
8
+Distribution: Photon
9
+Source0:    http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.gz
10
+%define sha1 xfsprogs=6d6dcf7f0bbf0e0104fb47af0cba1647817cf6e8
11
+BuildRequires:  gettext
12
+BuildRequires:  readline-devel
13
+
14
+%description
15
+The xfsprogs package contains administration and debugging tools for the
16
+XFS file system.
17
+
18
+%package devel
19
+Summary: XFS filesystem-specific static libraries and headers
20
+Group: Development/Libraries
21
+Requires: xfsprogs = %{version}-%{release}
22
+
23
+%description devel
24
+Libraries and header files needed to develop XFS filesystem-specific programs.
25
+
26
+%package lang
27
+Summary: Additional language files for xfsprogs
28
+Group: System Environment/Base
29
+Requires: %{name} = %{version}-%{release}
30
+%description lang
31
+These are the additional language files of xfsprogs.
32
+
33
+%prep
34
+%setup -q
35
+
36
+%build
37
+make DEBUG=-DNDEBUG     \
38
+     INSTALL_USER=root  \
39
+     INSTALL_GROUP=root \
40
+     LOCAL_CONFIGURE_OPTIONS="--enable-readline"
41
+
42
+%install
43
+make DESTDIR=%{buildroot} PKG_DOC_DIR=%{_usr}/share/doc/%{name}-%{version} install
44
+make DESTDIR=%{buildroot} PKG_DOC_DIR=%{_usr}/share/doc/%{name}-%{version} install-dev
45
+
46
+#find %{buildroot}/lib64/ -name '*.so' -delete
47
+find %{buildroot}/%{_lib64dir} -name '*.la' -delete
48
+find %{buildroot}/%{_lib64dir} -name '*.a' -delete
49
+
50
+%find_lang %{name}
51
+
52
+%check
53
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
54
+
55
+%clean
56
+rm -rf %{buildroot}/*
57
+
58
+%post -p /sbin/ldconfig
59
+
60
+%postun -p /sbin/ldconfig
61
+
62
+%files
63
+%defattr(-,root,root)
64
+%doc doc/CHANGES doc/COPYING doc/CREDITS README
65
+/sbin/*
66
+/lib64/*.so.*.*
67
+%{_mandir}/man8/*
68
+%{_mandir}/man5/*
69
+%{_sbindir}/*
70
+
71
+%files devel
72
+%defattr(-,root,root)
73
+%dir %{_includedir}/xfs
74
+%{_includedir}/xfs/*
75
+/lib64/*.so
76
+/lib64/*.so.1
77
+%{_mandir}/man3/*
78
+
79
+%files lang -f %{name}.lang
80
+%defattr(-,root,root)
81
+
82
+%changelog
83
+*   Fri Jan 6 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.9.0-1
84
+-   Initial build.  First version