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