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