]>
Commit | Line | Data |
---|---|---|
ff9c0a4e | 1 | # Conditional build: |
bdace69b | 2 | %bcond_with dynamic_exe # link executables dynamically with xfs libs |
ff9c0a4e | 3 | # |
80ded214 | 4 | Summary: Tools for the XFS filesystem |
809af116 | 5 | Summary(pl.UTF-8): Narzędzia do systemu plików XFS |
80ded214 | 6 | Name: xfsprogs |
4a531bcb AM |
7 | Version: 2.9.5 |
8 | Release: 1 | |
636af8bd | 9 | License: LGPL v2.1 (libhandle), GPL v2 (the rest) |
80ded214 | 10 | Group: Applications/System |
632730c2 | 11 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz |
4a531bcb | 12 | # Source0-md5: d9079d9a8dbc7cc983ed518842ca909f |
bc92c0b0 | 13 | Patch0: %{name}-miscfix-v2.patch |
cb58e4a3 | 14 | Patch1: %{name}-install-sh.patch |
6ad71900 | 15 | Patch2: %{name}-sharedlibs.patch |
21a3d2af JB |
16 | Patch3: %{name}-pl.po-update.patch |
17 | Patch4: %{name}-dynamic_exe.patch | |
2528905a | 18 | Patch5: %{name}-LDFLAGS.patch |
7bc0b880 | 19 | Patch6: %{name}-libtool.patch |
353bc53d | 20 | Patch7: %{name}-gettext.patch |
ff9c0a4e | 21 | URL: http://oss.sgi.com/projects/xfs/ |
80ded214 | 22 | BuildRequires: autoconf |
1c0f6863 | 23 | BuildRequires: automake |
cb58e4a3 | 24 | BuildRequires: bash |
8c56223e | 25 | BuildRequires: gettext-devel |
92a53cbb | 26 | BuildRequires: libtool |
a5769371 | 27 | BuildRequires: libuuid-devel |
9656c3b9 | 28 | BuildRequires: rpmbuild(macros) >= 1.402 |
e243294d | 29 | Obsoletes: libxfs1 |
c826f244 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80ded214 | 31 | |
b087bbdd JR |
32 | %define _sbindir /sbin |
33 | %define _bindir /usr/sbin | |
a19d7677 JK |
34 | %define _libdir /%{_lib} |
35 | %define _libexecdir /usr/%{_lib} | |
b087bbdd | 36 | |
80ded214 AM |
37 | %description |
38 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
39 | ||
40 | XFS is a high performance journaling filesystem which originated on | |
41 | the SGI IRIX platform. It is completely multi-threaded, can support | |
42 | large files and large filesystems, extended attributes, variable block | |
43 | sizes, is extent based, and makes extensive use of Btrees | |
44 | (directories, extents, free space) to aid both performance and | |
45 | scalability. | |
46 | ||
47 | This implementation is on-disk compatible with the IRIX version of | |
48 | XFS. | |
49 | ||
ddc220a9 JR |
50 | %description -l pl.UTF-8 |
51 | Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. | |
80ded214 | 52 | |
ddc220a9 JR |
53 | XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie |
54 | był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy, | |
55 | obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych | |
56 | atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący | |
57 | B-drzewa by uzyskać wysoką wydajność oraz skalowalność. | |
80ded214 AM |
58 | |
59 | %package devel | |
60 | Summary: Header files and libraries to develop XFS software | |
809af116 | 61 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki |
80ded214 | 62 | Group: Development/Libraries |
8b4647b2 | 63 | Requires: %{name} = %{version}-%{release} |
2528905a | 64 | Requires: libuuid-devel |
e243294d | 65 | Obsoletes: libxfs1-devel |
80ded214 AM |
66 | |
67 | %description devel | |
68 | Header files and libraries to develop software which operates on XFS | |
69 | filesystems. | |
70 | ||
ddc220a9 JR |
71 | %description devel -l pl.UTF-8 |
72 | Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania | |
73 | operującego na systemie plików XFS. | |
80ded214 | 74 | |
1c0f6863 | 75 | %package static |
76 | Summary: Static XFS software libraries | |
809af116 | 77 | Summary(pl.UTF-8): Biblioteki statyczne do XFS |
1c0f6863 | 78 | Group: Development/Libraries |
8b4647b2 | 79 | Requires: %{name}-devel = %{version}-%{release} |
1c0f6863 | 80 | |
81 | %description static | |
82 | Static XFS software libraries. | |
83 | ||
ddc220a9 | 84 | %description static -l pl.UTF-8 |
1c0f6863 | 85 | Biblioteki statyczne do XFS. |
86 | ||
80ded214 | 87 | %prep |
600886d5 | 88 | %setup -q |
80ded214 | 89 | %patch0 -p1 |
cb58e4a3 | 90 | %patch1 -p1 |
6ad71900 | 91 | %patch2 -p1 |
21a3d2af JB |
92 | %patch3 -p1 |
93 | %{?with_dynamic_exe:%patch4 -p1} | |
2528905a | 94 | %patch5 -p1 |
7bc0b880 | 95 | %patch6 -p1 |
353bc53d | 96 | %patch7 -p1 |
80ded214 AM |
97 | |
98 | %build | |
ff9c0a4e | 99 | %{__aclocal} -I m4 |
551b0d1f | 100 | %{__autoconf} |
1c0f6863 | 101 | %configure \ |
9656c3b9 ER |
102 | --enable-gettext=yes \ |
103 | --enable-shared=yes | |
104 | %{__make} | |
80ded214 AM |
105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
9656c3b9 ER |
109 | DIST_ROOT=$RPM_BUILD_ROOT |
110 | DIST_INSTALL=$(pwd)/install.manifest | |
111 | DIST_INSTALL_DEV=$(pwd)/install-dev.manifest | |
59aa30e8 | 112 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV |
ff9c0a4e JB |
113 | |
114 | %{__make} install \ | |
115 | DIST_MANIFEST="$DIST_INSTALL" | |
116 | %{__make} install-dev \ | |
117 | DIST_MANIFEST="$DIST_INSTALL_DEV" | |
80ded214 | 118 | |
9656c3b9 | 119 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \ |
ff9c0a4e | 120 | $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so |
9656c3b9 | 121 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libdisk.so.*.*.*) \ |
ff9c0a4e | 122 | $RPM_BUILD_ROOT%{_libexecdir}/libdisk.so |
9656c3b9 | 123 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxfs.so.*.*.*) \ |
ff9c0a4e | 124 | $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so |
9656c3b9 | 125 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxlog.so.*.*.*) \ |
ff9c0a4e | 126 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so |
cb190f67 | 127 | |
b756248b JB |
128 | %{__sed} -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
129 | $RPM_BUILD_ROOT%{_libexecdir}/lib{disk,handle,xfs,xlog}.la | |
130 | ||
01483858 JB |
131 | %find_lang %{name} |
132 | ||
5e040522 ER |
133 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
134 | ||
9656c3b9 ER |
135 | # already in /usr |
136 | rm -f $RPM_BUILD_ROOT%{_libdir}/libdisk.{a,la,so} | |
137 | rm -f $RPM_BUILD_ROOT%{_libdir}/libhandle.{a,la,so} | |
138 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxfs.{a,la,so} | |
139 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxfslog.{a,la,so} | |
140 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxlog.{a,la,so} | |
141 | ||
80ded214 AM |
142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
c5b3782d | 145 | %post -p /sbin/ldconfig |
c7083593 JR |
146 | %postun -p /sbin/ldconfig |
147 | ||
01483858 | 148 | %files -f %{name}.lang |
80ded214 | 149 | %defattr(644,root,root,755) |
636af8bd | 150 | %doc README doc/{CHANGES,CREDITS} |
29ca2e4b | 151 | %attr(755,root,root) %{_sbindir}/* |
b087bbdd | 152 | %attr(755,root,root) %{_bindir}/* |
9656c3b9 ER |
153 | %attr(755,root,root) %{_libdir}/libdisk.so.*.* |
154 | %attr(755,root,root) %{_libdir}/libhandle.so.*.* | |
155 | %attr(755,root,root) %{_libdir}/libxfs.so.*.* | |
156 | %attr(755,root,root) %{_libdir}/libxlog.so.*.* | |
157 | %attr(755,root,root) %ghost %{_libdir}/libdisk.so.0 | |
158 | %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1 | |
159 | %attr(755,root,root) %ghost %{_libdir}/libxfs.so.0 | |
160 | %attr(755,root,root) %ghost %{_libdir}/libxlog.so.0 | |
5144e5a5 | 161 | %{_mandir}/man[185]/* |
80ded214 AM |
162 | |
163 | %files devel | |
164 | %defattr(644,root,root,755) | |
353bc53d JB |
165 | %attr(755,root,root) %{_libexecdir}/lib*.so |
166 | %{_libexecdir}/lib*.la | |
353bc53d JB |
167 | %{_includedir}/disk |
168 | %{_includedir}/xfs | |
169 | %{_mandir}/man3/* | |
1c0f6863 | 170 | |
171 | %files static | |
172 | %defattr(644,root,root,755) | |
353bc53d | 173 | %{_libexecdir}/lib*.a |