]> git.pld-linux.org Git - packages/attr.git/blame - attr.spec
- md5
[packages/attr.git] / attr.spec
CommitLineData
04b1e72a 1Summary: Utility for managing filesystem extended attributes
37b23957 2Summary(pl.UTF-8): Narzędzia do zarządzania rozszerzonymi atrybutami systemu plików
b872caee 3Name: attr
645c7b5e
AM
4Version: 2.4.43
5Release: 1
c82a75af 6License: LGPL v2+ (library), GPL v2+ (utilities)
b872caee 7Group: Applications/System
d71cc18f 8Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}_%{version}-1.tar.gz
bd040e25 9# Source0-md5: 91583a14bcbd637adaa9b07ea49c5d4b
b872caee 10Patch0: %{name}-miscfix.patch
2f11546d 11Patch1: %{name}-lt.patch
be8c44c7 12Patch2: %{name}-LDFLAGS.patch
04b1e72a 13URL: http://oss.sgi.com/projects/xfs/
14BuildRequires: autoconf
59210996 15BuildRequires: automake
5ef64972 16BuildRequires: gettext-devel
e526bc4c 17BuildRequires: libtool
6c922c1c 18BuildRequires: rpmbuild(macros) >= 1.402
78538942 19Obsoletes: libattr
b872caee
AM
20BuildRoot: %{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 27An experimental attr command to manipulate extended attributes under
28Linux.
b872caee 29
31937581
JR
30%description -l pl.UTF-8
31Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi
b872caee
AM
32atrybutami pod systemem Linux.
33
34%package devel
04b1e72a 35Summary: Header files and libraries to use extended attributes
37b23957 36Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów
04b1e72a 37Group: Development/Libraries
3028a6a0 38Requires: %{name} = %{version}-%{release}
b872caee
AM
39
40%description devel
c633e14d 41Header files to develop software which manipulate extended attributes.
b872caee 42
31937581
JR
43%description devel -l pl.UTF-8
44Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego
c633e14d 45rozszerzonymi atrybutami.
b872caee 46
88806164 47%package static
48Summary: Static libraries for extended attributes
37b23957 49Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
88806164 50Group: Development/Libraries
3028a6a0 51Requires: %{name}-devel = %{version}-%{release}
88806164 52
53%description static
54Static libraries for extended attributes.
55
31937581
JR
56%description static -l pl.UTF-8
57Biblioteki 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 65rm -f aclocal.m4
a93799ff
JB
66
67%build
645c7b5e 68mv install-sh install-custom-sh
a93799ff 69%{__libtoolize}
59210996 70%{__aclocal} -I m4
87e55f9f 71%{__autoconf}
396126e7 72install %{_datadir}/automake/config.* .
645c7b5e 73mv 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
83rm -rf $RPM_BUILD_ROOT
84
54dead86 85DIST_ROOT=$RPM_BUILD_ROOT
b872caee
AM
86DIST_INSTALL=`pwd`/install.manifest
87DIST_INSTALL_DEV=`pwd`/install-dev.manifest
d2c1ecfd 88DIST_INSTALL_LIB=`pwd`/install-lib.manifest
89export 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 98ln -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
104rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
105
80bc3dc5 106%find_lang %{name}
107
43bbcdad
ER
108rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
109
3bdc5010
JB
110# already in /usr
111rm -f $RPM_BUILD_ROOT%{_libdir}/libattr.{so,la,a}
112
b872caee
AM
113%clean
114rm -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
This page took 0.090619 seconds and 4 git commands to generate.