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