]>
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 |
76fcd0d3 JB |
4 | Version: 2.5.1 |
5 | Release: 1 | |
c82a75af | 6 | License: LGPL v2+ (library), GPL v2+ (utilities) |
b872caee | 7 | Group: Applications/System |
76fcd0d3 JB |
8 | Source0: http://download.savannah.nongnu.org/releases/attr/%{name}-%{version}.tar.xz |
9 | # Source0-md5: e459262266bbd82b3dd348fc8cc68a6d | |
5a005279 | 10 | URL: http://savannah.nongnu.org/projects/attr/ |
8a4692db JB |
11 | BuildRequires: autoconf >= 2.50 |
12 | BuildRequires: automake >= 1:1.11 | |
13 | BuildRequires: gettext-tools >= 0.18.2 | |
14 | BuildRequires: libtool >= 2:2 | |
6c922c1c | 15 | BuildRequires: rpmbuild(macros) >= 1.402 |
8a4692db | 16 | BuildRequires: sed >= 4.0 |
76fcd0d3 JB |
17 | BuildRequires: tar >= 1:1.22 |
18 | BuildRequires: xz | |
19 | Obsoletes: libattr < 2.5 | |
b872caee AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
04b1e72a | 22 | %define _bindir /bin |
23 | ||
b872caee | 24 | %description |
88806164 | 25 | An experimental attr command to manipulate extended attributes under |
26 | Linux. | |
b872caee | 27 | |
31937581 JR |
28 | %description -l pl.UTF-8 |
29 | Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi | |
b872caee AM |
30 | atrybutami pod systemem Linux. |
31 | ||
32 | %package devel | |
04b1e72a | 33 | Summary: Header files and libraries to use extended attributes |
37b23957 | 34 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów |
04b1e72a | 35 | Group: Development/Libraries |
3028a6a0 | 36 | Requires: %{name} = %{version}-%{release} |
b872caee AM |
37 | |
38 | %description devel | |
c633e14d | 39 | Header files to develop software which manipulate extended attributes. |
b872caee | 40 | |
31937581 JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego | |
c633e14d | 43 | rozszerzonymi atrybutami. |
b872caee | 44 | |
88806164 | 45 | %package static |
46 | Summary: Static libraries for extended attributes | |
37b23957 | 47 | Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów |
88806164 | 48 | Group: Development/Libraries |
3028a6a0 | 49 | Requires: %{name}-devel = %{version}-%{release} |
88806164 | 50 | |
51 | %description static | |
52 | Static libraries for extended attributes. | |
53 | ||
31937581 JR |
54 | %description static -l pl.UTF-8 |
55 | Biblioteki statyczne do korzystania z rozszerzonych atrybutów. | |
88806164 | 56 | |
b872caee | 57 | %prep |
59210996 | 58 | %setup -q |
a93799ff JB |
59 | |
60 | %build | |
8a4692db | 61 | %{__gettextize} |
a93799ff | 62 | %{__libtoolize} |
59210996 | 63 | %{__aclocal} -I m4 |
87e55f9f | 64 | %{__autoconf} |
8a4692db JB |
65 | %{__autoheader} |
66 | %{__automake} | |
59210996 | 67 | %configure \ |
8a4692db JB |
68 | %{?debug:--enable-debug} \ |
69 | --disable-silent-rules | |
b872caee | 70 | |
8a4692db | 71 | %{__make} |
b872caee AM |
72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
8a4692db | 75 | install -d $RPM_BUILD_ROOT/%{_lib} |
88806164 | 76 | |
54dead86 | 77 | %{__make} install \ |
8a4692db | 78 | DESTDIR=$RPM_BUILD_ROOT |
784798fc | 79 | |
8a4692db JB |
80 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libattr.so.* \ |
81 | $RPM_BUILD_ROOT/%{_lib} | |
3231ce9b | 82 | |
8a4692db JB |
83 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libattr.so.*.*.*) \ |
84 | $RPM_BUILD_ROOT%{_libdir}/libattr.so | |
80bc3dc5 | 85 | |
72904c42 | 86 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
43bbcdad | 87 | |
8a4692db | 88 | %find_lang %{name} |
3bdc5010 | 89 | |
b872caee AM |
90 | %clean |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
11830642 | 93 | %post -p /sbin/ldconfig |
94 | %postun -p /sbin/ldconfig | |
aaf9152c | 95 | |
80bc3dc5 | 96 | %files -f %{name}.lang |
b872caee | 97 | %defattr(644,root,root,755) |
878e91df | 98 | %doc README doc/CHANGES |
3bdc5010 JB |
99 | %attr(755,root,root) %{_bindir}/attr |
100 | %attr(755,root,root) %{_bindir}/getfattr | |
101 | %attr(755,root,root) %{_bindir}/setfattr | |
8a4692db JB |
102 | %attr(755,root,root) /%{_lib}/libattr.so.*.*.* |
103 | %attr(755,root,root) %ghost /%{_lib}/libattr.so.1 | |
104 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xattr.conf | |
3bdc5010 JB |
105 | %{_mandir}/man1/attr.1* |
106 | %{_mandir}/man1/getfattr.1* | |
107 | %{_mandir}/man1/setfattr.1* | |
b872caee AM |
108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
8a4692db JB |
111 | %attr(755,root,root) %{_libdir}/libattr.so |
112 | %{_libdir}/libattr.la | |
b872caee | 113 | %{_includedir}/attr |
8a4692db | 114 | %{_pkgconfigdir}/libattr.pc |
3bdc5010 | 115 | %{_mandir}/man3/attr_*.3* |
88806164 | 116 | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
8a4692db | 119 | %{_libdir}/libattr.a |