1 |
%define name attr |
2 |
%define version 2.4.44 |
3 |
%define minor_version 1 |
4 |
%define release %mkrel 2 |
5 |
|
6 |
%define lib_name_orig lib%{name} |
7 |
%define lib_major 1 |
8 |
%define lib_name %mklibname %{name} %{lib_major} |
9 |
|
10 |
Summary: Utility for managing filesystem extended attributes |
11 |
Name: %{name} |
12 |
Version: %{version} |
13 |
Release: %{release} |
14 |
Source0: http://mirrors.aixtools.net/sv/%{name}/%{name}-%{version}.src.tar.gz |
15 |
License: GPLv2 |
16 |
Group: System/Kernel and hardware |
17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
18 |
URL: http://savannah.nongnu.org/projects/attr |
19 |
|
20 |
%description |
21 |
A set of tools for manipulating extended attributes on filesystem |
22 |
objects, in particular getfattr(1) and setfattr(1). |
23 |
An attr(1) command is also provided which is largely compatible |
24 |
with the SGI IRIX tool of the same name. |
25 |
|
26 |
%package -n %{lib_name} |
27 |
Summary: Main library for %{lib_name_orig} |
28 |
Group: System/Libraries |
29 |
Provides: %{lib_name_orig} = %{version}-%{release} |
30 |
|
31 |
%description -n %{lib_name} |
32 |
This package contains the library needed to run programs dynamically |
33 |
linked with %{lib_name_orig}. |
34 |
|
35 |
%package -n %{lib_name}-devel |
36 |
Summary: Extended attribute static libraries and headers |
37 |
Group: Development/C |
38 |
Requires: %{lib_name} = %{version} |
39 |
Provides: %{lib_name_orig}-devel = %{version}-%{release} |
40 |
Provides: attr-devel = %{version}-%{release} |
41 |
Obsoletes: attr-devel |
42 |
|
43 |
%description -n %{lib_name}-devel |
44 |
This package contains the libraries and header files needed to |
45 |
develop programs which make use of extended attributes. |
46 |
For Linux programs, the documented system call API is the |
47 |
recommended interface, but an SGI IRIX compatibility interface |
48 |
is also provided. |
49 |
|
50 |
Currently only ext2, ext3, JFS and XFS support extended attributes. |
51 |
The SGI IRIX compatibility API built above the Linux system calls is |
52 |
used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8). |
53 |
|
54 |
You should install libattr-devel if you want to develop programs |
55 |
which make use of extended attributes. If you install libattr-devel |
56 |
then you'll also want to install attr. |
57 |
|
58 |
%prep |
59 |
%setup -q |
60 |
|
61 |
%build |
62 |
%configure2_5x --libdir=/%{_lib} |
63 |
%make |
64 |
|
65 |
%install |
66 |
rm -rf $RPM_BUILD_ROOT |
67 |
make install DIST_ROOT=%{buildroot}/ |
68 |
make install-dev DIST_ROOT=%{buildroot}/ |
69 |
make install-lib DIST_ROOT=%{buildroot}/ |
70 |
# fix conflict with man-pages-1.56 |
71 |
rm -fr $RPM_BUILD_ROOT{%_mandir/man2,%_datadir/doc} |
72 |
|
73 |
# Remove unpackaged symlinks |
74 |
rm -fr $RPM_BUILD_ROOT/%{_lib}/libattr.{a,la} \ |
75 |
$RPM_BUILD_ROOT/%{_libdir}/libattr.la |
76 |
|
77 |
%find_lang %{name} |
78 |
|
79 |
%clean |
80 |
rm -rf $RPM_BUILD_ROOT |
81 |
|
82 |
%if %mdkversion < 200900 |
83 |
%post -n %{lib_name} -p /sbin/ldconfig |
84 |
%endif |
85 |
%if %mdkversion < 200900 |
86 |
%postun -n %{lib_name} -p /sbin/ldconfig |
87 |
%endif |
88 |
|
89 |
%files -f %{name}.lang |
90 |
%defattr(-,root,root) |
91 |
%doc doc/CHANGES.gz README |
92 |
%{_bindir}/* |
93 |
%{_mandir}/man1/* |
94 |
|
95 |
%files -n %{lib_name} |
96 |
%defattr(-,root,root) |
97 |
%doc doc/COPYING |
98 |
/%{_lib}/*.so.* |
99 |
|
100 |
%files -n %{lib_name}-devel |
101 |
%defattr(-,root,root) |
102 |
%doc doc/CHANGES.gz doc/COPYING README |
103 |
/%{_lib}/*.so |
104 |
%{_libdir}/*.so |
105 |
%{_libdir}/*a |
106 |
%{_mandir}/man3/* |
107 |
%{_mandir}/man5/* |
108 |
%dir %{_includedir}/%{name} |
109 |
%{_includedir}/%{name}/* |
110 |
|
111 |
|
112 |
|
113 |
|