]>
Commit | Line | Data |
---|---|---|
04b1e72a | 1 | Summary: Utility for managing filesystem extended attributes |
37b23957 | 2 | Summary(pl.UTF-8): Narzędzia do zarządzania rozszerzonymi atrybutami systemu plików |
b872caee | 3 | Name: attr |
3bdc5010 JB |
4 | Version: 2.4.41 |
5 | Release: 1 | |
c82a75af | 6 | License: LGPL v2+ (library), GPL v2+ (utilities) |
b872caee | 7 | Group: Applications/System |
d71cc18f | 8 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}_%{version}-1.tar.gz |
3bdc5010 | 9 | # Source0-md5: 867eb6e8863e39900382d77e2b538696 |
b872caee | 10 | Patch0: %{name}-miscfix.patch |
2f11546d | 11 | Patch1: %{name}-lt.patch |
be8c44c7 | 12 | Patch2: %{name}-LDFLAGS.patch |
04b1e72a | 13 | URL: http://oss.sgi.com/projects/xfs/ |
14 | BuildRequires: autoconf | |
59210996 | 15 | BuildRequires: automake |
5ef64972 | 16 | BuildRequires: gettext-devel |
e526bc4c | 17 | BuildRequires: libtool |
6c922c1c | 18 | BuildRequires: rpmbuild(macros) >= 1.402 |
78538942 | 19 | Obsoletes: libattr |
b872caee AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
04b1e72a | 22 | %define _bindir /bin |
ff930c76 JK |
23 | %define _libdir /%{_lib} |
24 | %define _libexecdir /usr/%{_lib} | |
04b1e72a | 25 | |
b872caee | 26 | %description |
88806164 | 27 | An experimental attr command to manipulate extended attributes under |
28 | Linux. | |
b872caee | 29 | |
31937581 JR |
30 | %description -l pl.UTF-8 |
31 | Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi | |
b872caee AM |
32 | atrybutami pod systemem Linux. |
33 | ||
34 | %package devel | |
04b1e72a | 35 | Summary: Header files and libraries to use extended attributes |
37b23957 | 36 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów |
04b1e72a | 37 | Group: Development/Libraries |
3028a6a0 | 38 | Requires: %{name} = %{version}-%{release} |
b872caee AM |
39 | |
40 | %description devel | |
c633e14d | 41 | Header files to develop software which manipulate extended attributes. |
b872caee | 42 | |
31937581 JR |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego | |
c633e14d | 45 | rozszerzonymi atrybutami. |
b872caee | 46 | |
88806164 | 47 | %package static |
48 | Summary: Static libraries for extended attributes | |
37b23957 | 49 | Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów |
88806164 | 50 | Group: Development/Libraries |
3028a6a0 | 51 | Requires: %{name}-devel = %{version}-%{release} |
88806164 | 52 | |
53 | %description static | |
54 | Static libraries for extended attributes. | |
55 | ||
31937581 JR |
56 | %description static -l pl.UTF-8 |
57 | Biblioteki statyczne do korzystania z rozszerzonych atrybutów. | |
88806164 | 58 | |
b872caee | 59 | %prep |
59210996 | 60 | %setup -q |
b872caee | 61 | %patch0 -p1 |
3028a6a0 | 62 | %patch1 -p1 |
be8c44c7 | 63 | %patch2 -p1 |
5aa2c191 | 64 | |
59210996 | 65 | rm -f aclocal.m4 |
a93799ff JB |
66 | |
67 | %build | |
68 | %{__libtoolize} | |
59210996 | 69 | %{__aclocal} -I m4 |
87e55f9f | 70 | %{__autoconf} |
59210996 JB |
71 | %configure \ |
72 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ | |
5aa2c191 | 73 | OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT" |
b872caee | 74 | |
7e20532a | 75 | %{__make} \ |
76 | LLDFLAGS="%{rpmldflags}" | |
b872caee AM |
77 | |
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
54dead86 | 81 | DIST_ROOT=$RPM_BUILD_ROOT |
b872caee AM |
82 | DIST_INSTALL=`pwd`/install.manifest |
83 | DIST_INSTALL_DEV=`pwd`/install-dev.manifest | |
d2c1ecfd | 84 | DIST_INSTALL_LIB=`pwd`/install-lib.manifest |
85 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB | |
88806164 | 86 | |
54dead86 PG |
87 | %{__make} install \ |
88 | DIST_MANIFEST=$DIST_INSTALL | |
89 | %{__make} install-dev \ | |
90 | DIST_MANIFEST=$DIST_INSTALL_DEV | |
91 | %{__make} install-lib \ | |
92 | DIST_MANIFEST=$DIST_INSTALL_LIB | |
b872caee | 93 | |
3bdc5010 | 94 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \ |
878e91df | 95 | $RPM_BUILD_ROOT%{_libexecdir}/libattr.so |
3231ce9b | 96 | |
1a42fb58 | 97 | %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
98 | $RPM_BUILD_ROOT%{_libexecdir}/libattr.la | |
99 | ||
3bdc5010 JB |
100 | rm -rf $RPM_BUILD_ROOT%{_mandir}/man2 |
101 | ||
80bc3dc5 | 102 | %find_lang %{name} |
103 | ||
43bbcdad ER |
104 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
105 | ||
3bdc5010 JB |
106 | # already in /usr |
107 | rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{so,la,a} | |
108 | ||
b872caee AM |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
11830642 | 112 | %post -p /sbin/ldconfig |
113 | %postun -p /sbin/ldconfig | |
aaf9152c | 114 | |
80bc3dc5 | 115 | %files -f %{name}.lang |
b872caee | 116 | %defattr(644,root,root,755) |
878e91df | 117 | %doc README doc/CHANGES |
3bdc5010 JB |
118 | %attr(755,root,root) %{_bindir}/attr |
119 | %attr(755,root,root) %{_bindir}/getfattr | |
120 | %attr(755,root,root) %{_bindir}/setfattr | |
121 | %attr(755,root,root) %{_libdir}/libattr.so.*.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libattr.so.1 | |
123 | %{_mandir}/man1/attr.1* | |
124 | %{_mandir}/man1/getfattr.1* | |
125 | %{_mandir}/man1/setfattr.1* | |
126 | %{_mandir}/man5/attr.5* | |
b872caee AM |
127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
a93799ff JB |
130 | %attr(755,root,root) %{_libexecdir}/libattr.so |
131 | %{_libexecdir}/libattr.la | |
b872caee | 132 | %{_includedir}/attr |
3bdc5010 | 133 | %{_mandir}/man3/attr_*.3* |
88806164 | 134 | |
135 | %files static | |
136 | %defattr(644,root,root,755) | |
a93799ff | 137 | %{_libexecdir}/libattr.a |