]>
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 |
645c7b5e AM |
4 | Version: 2.4.43 |
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 |
bd040e25 | 9 | # Source0-md5: 91583a14bcbd637adaa9b07ea49c5d4b |
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 | |
645c7b5e | 68 | mv install-sh install-custom-sh |
a93799ff | 69 | %{__libtoolize} |
59210996 | 70 | %{__aclocal} -I m4 |
87e55f9f | 71 | %{__autoconf} |
396126e7 | 72 | install %{_datadir}/automake/config.* . |
645c7b5e | 73 | mv install-custom-sh install-sh |
396126e7 | 74 | |
59210996 JB |
75 | %configure \ |
76 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ | |
5aa2c191 | 77 | OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT" |
b872caee | 78 | |
7e20532a | 79 | %{__make} \ |
80 | LLDFLAGS="%{rpmldflags}" | |
b872caee AM |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
54dead86 | 85 | DIST_ROOT=$RPM_BUILD_ROOT |
b872caee AM |
86 | DIST_INSTALL=`pwd`/install.manifest |
87 | DIST_INSTALL_DEV=`pwd`/install-dev.manifest | |
d2c1ecfd | 88 | DIST_INSTALL_LIB=`pwd`/install-lib.manifest |
89 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB | |
88806164 | 90 | |
54dead86 PG |
91 | %{__make} install \ |
92 | DIST_MANIFEST=$DIST_INSTALL | |
93 | %{__make} install-dev \ | |
94 | DIST_MANIFEST=$DIST_INSTALL_DEV | |
95 | %{__make} install-lib \ | |
96 | DIST_MANIFEST=$DIST_INSTALL_LIB | |
b872caee | 97 | |
3bdc5010 | 98 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \ |
878e91df | 99 | $RPM_BUILD_ROOT%{_libexecdir}/libattr.so |
3231ce9b | 100 | |
1a42fb58 | 101 | %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
102 | $RPM_BUILD_ROOT%{_libexecdir}/libattr.la | |
103 | ||
3bdc5010 JB |
104 | rm -rf $RPM_BUILD_ROOT%{_mandir}/man2 |
105 | ||
80bc3dc5 | 106 | %find_lang %{name} |
107 | ||
43bbcdad ER |
108 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
109 | ||
3bdc5010 JB |
110 | # already in /usr |
111 | rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{so,la,a} | |
112 | ||
b872caee AM |
113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
11830642 | 116 | %post -p /sbin/ldconfig |
117 | %postun -p /sbin/ldconfig | |
aaf9152c | 118 | |
80bc3dc5 | 119 | %files -f %{name}.lang |
b872caee | 120 | %defattr(644,root,root,755) |
878e91df | 121 | %doc README doc/CHANGES |
3bdc5010 JB |
122 | %attr(755,root,root) %{_bindir}/attr |
123 | %attr(755,root,root) %{_bindir}/getfattr | |
124 | %attr(755,root,root) %{_bindir}/setfattr | |
125 | %attr(755,root,root) %{_libdir}/libattr.so.*.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libattr.so.1 | |
127 | %{_mandir}/man1/attr.1* | |
128 | %{_mandir}/man1/getfattr.1* | |
129 | %{_mandir}/man1/setfattr.1* | |
130 | %{_mandir}/man5/attr.5* | |
b872caee AM |
131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
a93799ff JB |
134 | %attr(755,root,root) %{_libexecdir}/libattr.so |
135 | %{_libexecdir}/libattr.la | |
b872caee | 136 | %{_includedir}/attr |
3bdc5010 | 137 | %{_mandir}/man3/attr_*.3* |
88806164 | 138 | |
139 | %files static | |
140 | %defattr(644,root,root,755) | |
a93799ff | 141 | %{_libexecdir}/libattr.a |