]>
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 |
784798fc | 4 | Version: 2.4.47 |
645c7b5e | 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 |
94ee6d9d | 9 | # Source0-md5: 4ee36c16eb7e58a1b38345d4dbbddd88 |
b872caee | 10 | Patch0: %{name}-miscfix.patch |
2f11546d | 11 | Patch1: %{name}-lt.patch |
be8c44c7 | 12 | Patch2: %{name}-LDFLAGS.patch |
5a005279 | 13 | URL: http://savannah.nongnu.org/projects/attr/ |
04b1e72a | 14 | BuildRequires: autoconf |
59210996 | 15 | BuildRequires: automake |
5d8a1474 | 16 | BuildRequires: gettext-tools |
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 | |
784798fc | 65 | %{__rm} -f aclocal.m4 |
a93799ff JB |
66 | |
67 | %build | |
68 | %{__libtoolize} | |
59210996 | 69 | %{__aclocal} -I m4 |
87e55f9f | 70 | %{__autoconf} |
396126e7 | 71 | install %{_datadir}/automake/config.* . |
784798fc | 72 | install include/install-sh . |
396126e7 | 73 | |
59210996 JB |
74 | %configure \ |
75 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ | |
5aa2c191 | 76 | OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT" |
b872caee | 77 | |
7e20532a | 78 | %{__make} \ |
79 | LLDFLAGS="%{rpmldflags}" | |
b872caee AM |
80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
784798fc AM |
84 | install -d $RPM_BUILD_ROOT%{_libexecdir} |
85 | ||
54dead86 | 86 | DIST_ROOT=$RPM_BUILD_ROOT |
b872caee AM |
87 | DIST_INSTALL=`pwd`/install.manifest |
88 | DIST_INSTALL_DEV=`pwd`/install-dev.manifest | |
d2c1ecfd | 89 | DIST_INSTALL_LIB=`pwd`/install-lib.manifest |
90 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB | |
88806164 | 91 | |
54dead86 PG |
92 | %{__make} install \ |
93 | DIST_MANIFEST=$DIST_INSTALL | |
94 | %{__make} install-dev \ | |
95 | DIST_MANIFEST=$DIST_INSTALL_DEV | |
96 | %{__make} install-lib \ | |
97 | DIST_MANIFEST=$DIST_INSTALL_LIB | |
b872caee | 98 | |
784798fc AM |
99 | mv $RPM_BUILD_ROOT%{_libdir}/libattr.{la,a} \ |
100 | $RPM_BUILD_ROOT%{_libexecdir} | |
101 | ||
3bdc5010 | 102 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libattr.so.*.*.*) \ |
784798fc | 103 | $RPM_BUILD_ROOT%{_libexecdir}/libattr.so |
3231ce9b | 104 | |
1a42fb58 | 105 | %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
106 | $RPM_BUILD_ROOT%{_libexecdir}/libattr.la | |
107 | ||
72904c42 | 108 | %{__rm} -r $RPM_BUILD_ROOT%{_mandir}/man2 |
3bdc5010 | 109 | |
80bc3dc5 | 110 | %find_lang %{name} |
111 | ||
72904c42 | 112 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
43bbcdad | 113 | |
3bdc5010 | 114 | # already in /usr |
784798fc | 115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libattr.so |
3bdc5010 | 116 | |
b872caee AM |
117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
11830642 | 120 | %post -p /sbin/ldconfig |
121 | %postun -p /sbin/ldconfig | |
aaf9152c | 122 | |
80bc3dc5 | 123 | %files -f %{name}.lang |
b872caee | 124 | %defattr(644,root,root,755) |
878e91df | 125 | %doc README doc/CHANGES |
3bdc5010 JB |
126 | %attr(755,root,root) %{_bindir}/attr |
127 | %attr(755,root,root) %{_bindir}/getfattr | |
128 | %attr(755,root,root) %{_bindir}/setfattr | |
129 | %attr(755,root,root) %{_libdir}/libattr.so.*.*.* | |
130 | %attr(755,root,root) %ghost %{_libdir}/libattr.so.1 | |
131 | %{_mandir}/man1/attr.1* | |
132 | %{_mandir}/man1/getfattr.1* | |
133 | %{_mandir}/man1/setfattr.1* | |
134 | %{_mandir}/man5/attr.5* | |
b872caee AM |
135 | |
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
a93799ff JB |
138 | %attr(755,root,root) %{_libexecdir}/libattr.so |
139 | %{_libexecdir}/libattr.la | |
b872caee | 140 | %{_includedir}/attr |
3bdc5010 | 141 | %{_mandir}/man3/attr_*.3* |
88806164 | 142 | |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
a93799ff | 145 | %{_libexecdir}/libattr.a |