]> git.pld-linux.org Git - packages/attr.git/blob - attr.spec
-update to 2.0.7,STBR
[packages/attr.git] / attr.spec
1 Summary:        Utility for managing filesystem extended attributes
2 Summary(pl):    Narzêdzia do zarz±dzania rozszerzonymi atrybutami fs
3 Name:           attr
4 Version:        2.0.7
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
9 Patch0:         %{name}-miscfix.patch
10 URL:            http://oss.sgi.com/projects/xfs/
11 BuildRequires:  autoconf
12 BuildRequires:  e2fsprogs-devel
13 BuildRequires:  xfsprogs-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _bindir         /bin
17
18 %description
19 An experimental attr command to manipulate extended attributes under
20 Linux.
21
22 %description -l pl
23 Eksperymentalne wersja polecenia attr to zarz±dzania rozszerzonymi
24 atrybutami pod systemem Linux.
25
26 %package devel
27 Summary:        Header files and libraries to use extended attributes
28 Summary(pl):    Pliki nag³ówkowe i biblioteki
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}
31
32 %description devel
33 Header files and libraries to develop software which manipulate
34 extended attributes.
35
36 %description devel -l pl
37 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
38 manipuluj±cego rozszerzonymi atrybutami.
39
40 %package static
41 Summary:        Static libraries for extended attributes
42 Summary(pl):    Biblioteki statyczne attr
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{version}
45
46 %description static
47 Static libraries for extended attributes.
48
49 %description static -l pl
50 Biblioteki statyczne attr.
51
52 %prep
53 %setup  -q
54 %patch0 -p1
55
56 %build
57 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
58 autoconf
59 %configure
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 DIST_ROOT="$RPM_BUILD_ROOT"
67 DIST_INSTALL=`pwd`/install.manifest
68 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
69 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
70 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
71
72 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
73 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
74 %{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
75
76 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
77 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
78
79 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
80 ln -sf /lib/libattr.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libattr.so
81
82 echo ".so attr_get.3"   > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
83 echo ".so attr_list.3"  > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
84 echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
85 echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
86 echo ".so attr_set.3"   > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
87
88 gzip -9nf doc/CHANGES
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %doc doc/*.gz
99 %attr(755,root,root) %{_bindir}/*
100 %attr(755,root,root) /lib/lib*.so.*.*
101 %{_mandir}/man[18]/*
102
103 %files devel
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/lib*.la
106 %attr(755,root,root) %{_libdir}/lib*.so
107 %{_includedir}/attr
108 %{_mandir}/man[23]/*
109
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/lib*.a
This page took 0.058134 seconds and 4 git commands to generate.