]> git.pld-linux.org Git - packages/attr.git/blame - attr.spec
- up to 2.4.39
[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
5c73089c 4Version: 2.4.39
a93799ff 5Release: 1
c82a75af 6License: LGPL v2+ (library), GPL v2+ (utilities)
b872caee 7Group: Applications/System
b87ab971 8Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
5c73089c 9# Source0-md5: 6015feba42b18307de90bb6be9909f7d
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
78538942 18Obsoletes: libattr
b872caee
AM
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
04b1e72a 21%define _bindir /bin
ff930c76
JK
22%define _libdir /%{_lib}
23%define _libexecdir /usr/%{_lib}
04b1e72a 24
b872caee 25%description
88806164 26An experimental attr command to manipulate extended attributes under
27Linux.
b872caee 28
31937581
JR
29%description -l pl.UTF-8
30Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi
b872caee
AM
31atrybutami pod systemem Linux.
32
33%package devel
04b1e72a 34Summary: Header files and libraries to use extended attributes
37b23957 35Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów
04b1e72a 36Group: Development/Libraries
3028a6a0 37Requires: %{name} = %{version}-%{release}
b872caee
AM
38
39%description devel
c633e14d 40Header files to develop software which manipulate extended attributes.
b872caee 41
31937581
JR
42%description devel -l pl.UTF-8
43Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego
c633e14d 44rozszerzonymi atrybutami.
b872caee 45
88806164 46%package static
47Summary: Static libraries for extended attributes
37b23957 48Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
88806164 49Group: Development/Libraries
3028a6a0 50Requires: %{name}-devel = %{version}-%{release}
88806164 51
52%description static
53Static libraries for extended attributes.
54
31937581
JR
55%description static -l pl.UTF-8
56Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
88806164 57
b872caee 58%prep
59210996 59%setup -q
b872caee 60%patch0 -p1
3028a6a0 61%patch1 -p1
be8c44c7 62%patch2 -p1
5aa2c191 63
59210996 64rm -f aclocal.m4
a93799ff
JB
65
66%build
67%{__libtoolize}
59210996 68%{__aclocal} -I m4
87e55f9f 69%{__autoconf}
59210996
JB
70%configure \
71 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
5aa2c191 72 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
b872caee 73
7e20532a 74%{__make} \
75 LLDFLAGS="%{rpmldflags}"
b872caee
AM
76
77%install
78rm -rf $RPM_BUILD_ROOT
79
54dead86 80DIST_ROOT=$RPM_BUILD_ROOT
b872caee
AM
81DIST_INSTALL=`pwd`/install.manifest
82DIST_INSTALL_DEV=`pwd`/install-dev.manifest
d2c1ecfd 83DIST_INSTALL_LIB=`pwd`/install-lib.manifest
84export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
88806164 85
54dead86
PG
86%{__make} install \
87 DIST_MANIFEST=$DIST_INSTALL
88%{__make} install-dev \
89 DIST_MANIFEST=$DIST_INSTALL_DEV
90%{__make} install-lib \
91 DIST_MANIFEST=$DIST_INSTALL_LIB
b872caee
AM
92
93rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
94rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
9a272c12 95rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
a00b41ef 96
59210996 97ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
878e91df 98 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
3231ce9b 99
1a42fb58 100%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
101 $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
102
e3016bb6 103echo ".so attr_get.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
104echo ".so attr_list.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
105echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
106echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
107echo ".so attr_set.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
b872caee 108
80bc3dc5 109%find_lang %{name}
110
b872caee
AM
111%clean
112rm -rf $RPM_BUILD_ROOT
113
11830642 114%post -p /sbin/ldconfig
115%postun -p /sbin/ldconfig
aaf9152c 116
80bc3dc5 117%files -f %{name}.lang
b872caee 118%defattr(644,root,root,755)
878e91df 119%doc README doc/CHANGES
04b1e72a 120%attr(755,root,root) %{_bindir}/*
a93799ff 121%attr(755,root,root) %{_libdir}/libattr.so.*.*
6f2fdfea 122%{_mandir}/man[158]/*
b872caee
AM
123
124%files devel
125%defattr(644,root,root,755)
a93799ff
JB
126%attr(755,root,root) %{_libexecdir}/libattr.so
127%{_libexecdir}/libattr.la
b872caee 128%{_includedir}/attr
6f2fdfea 129%{_mandir}/man3/*
88806164 130
131%files static
132%defattr(644,root,root,755)
a93799ff 133%{_libexecdir}/libattr.a
This page took 0.07278 seconds and 4 git commands to generate.