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