]> git.pld-linux.org Git - packages/attr.git/blame_incremental - attr.spec
- up to 2.4.39
[packages/attr.git] / attr.spec
... / ...
CommitLineData
1Summary: Utility for managing filesystem extended attributes
2Summary(pl.UTF-8): Narzędzia do zarządzania rozszerzonymi atrybutami systemu plików
3Name: attr
4Version: 2.4.39
5Release: 1
6License: LGPL v2+ (library), GPL v2+ (utilities)
7Group: Applications/System
8Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
9# Source0-md5: 6015feba42b18307de90bb6be9909f7d
10Patch0: %{name}-miscfix.patch
11Patch1: %{name}-lt.patch
12Patch2: %{name}-LDFLAGS.patch
13URL: http://oss.sgi.com/projects/xfs/
14BuildRequires: autoconf
15BuildRequires: automake
16BuildRequires: gettext-devel
17BuildRequires: libtool
18Obsoletes: libattr
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _bindir /bin
22%define _libdir /%{_lib}
23%define _libexecdir /usr/%{_lib}
24
25%description
26An experimental attr command to manipulate extended attributes under
27Linux.
28
29%description -l pl.UTF-8
30Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi
31atrybutami pod systemem Linux.
32
33%package devel
34Summary: Header files and libraries to use extended attributes
35Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów
36Group: Development/Libraries
37Requires: %{name} = %{version}-%{release}
38
39%description devel
40Header files to develop software which manipulate extended attributes.
41
42%description devel -l pl.UTF-8
43Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego
44rozszerzonymi atrybutami.
45
46%package static
47Summary: Static libraries for extended attributes
48Summary(pl.UTF-8): Biblioteki statyczne do korzystania z rozszerzonych atrybutów
49Group: Development/Libraries
50Requires: %{name}-devel = %{version}-%{release}
51
52%description static
53Static libraries for extended attributes.
54
55%description static -l pl.UTF-8
56Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
57
58%prep
59%setup -q
60%patch0 -p1
61%patch1 -p1
62%patch2 -p1
63
64rm -f aclocal.m4
65
66%build
67%{__libtoolize}
68%{__aclocal} -I m4
69%{__autoconf}
70%configure \
71 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
72 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
73
74%{__make} \
75 LLDFLAGS="%{rpmldflags}"
76
77%install
78rm -rf $RPM_BUILD_ROOT
79
80DIST_ROOT=$RPM_BUILD_ROOT
81DIST_INSTALL=`pwd`/install.manifest
82DIST_INSTALL_DEV=`pwd`/install-dev.manifest
83DIST_INSTALL_LIB=`pwd`/install-lib.manifest
84export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
85
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
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
95rm -rf $RPM_BUILD_ROOT%{_mandir}/man2
96
97ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libattr.so.*.*.*) \
98 $RPM_BUILD_ROOT%{_libexecdir}/libattr.so
99
100%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
101 $RPM_BUILD_ROOT%{_libexecdir}/libattr.la
102
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
108
109%find_lang %{name}
110
111%clean
112rm -rf $RPM_BUILD_ROOT
113
114%post -p /sbin/ldconfig
115%postun -p /sbin/ldconfig
116
117%files -f %{name}.lang
118%defattr(644,root,root,755)
119%doc README doc/CHANGES
120%attr(755,root,root) %{_bindir}/*
121%attr(755,root,root) %{_libdir}/libattr.so.*.*
122%{_mandir}/man[158]/*
123
124%files devel
125%defattr(644,root,root,755)
126%attr(755,root,root) %{_libexecdir}/libattr.so
127%{_libexecdir}/libattr.la
128%{_includedir}/attr
129%{_mandir}/man3/*
130
131%files static
132%defattr(644,root,root,755)
133%{_libexecdir}/libattr.a
This page took 0.04834 seconds and 4 git commands to generate.