]> git.pld-linux.org Git - packages/attr.git/blob - attr.spec
- added missing attr(5) manual
[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.8
5 Release:        2
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 Eksperymentalna 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 to develop software which manipulate extended attributes.
34
35 %description devel -l pl
36 Pliki nag³ówkowe potrzebne do tworzenia oprogramowania manipuluj±cego
37 rozszerzonymi atrybutami.
38
39 %package static
40 Summary:        Static libraries for extended attributes
41 Summary(pl):    Biblioteki statyczne attr
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}
44
45 %description static
46 Static libraries for extended attributes.
47
48 %description static -l pl
49 Biblioteki statyczne attr.
50
51 %prep
52 %setup  -q
53 %patch0 -p1
54
55 %build
56 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
57 %{__autoconf}
58 %configure
59
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 DIST_ROOT="$RPM_BUILD_ROOT"
66 DIST_INSTALL=`pwd`/install.manifest
67 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
68 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
69 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
70
71 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
72 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
73 %{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
74
75 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
76 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
77
78 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
79 ln -sf /lib/libattr.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libattr.so
80
81 echo ".so attr_get.3"   > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
82 echo ".so attr_list.3"  > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
83 echo ".so attr_multi.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
84 echo ".so attr_remove.3" > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
85 echo ".so attr_set.3"   > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 %doc doc/CHANGES
96 %attr(755,root,root) %{_bindir}/*
97 %attr(755,root,root) /lib/lib*.so.*.*
98 %{_mandir}/man[18]/*
99
100 %files devel
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/lib*.la
103 %attr(755,root,root) %{_libdir}/lib*.so
104 %{_includedir}/attr
105 %{_mandir}/man[235]/*
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/lib*.a
This page took 0.078809 seconds and 4 git commands to generate.