]> git.pld-linux.org Git - packages/attr.git/blob - attr.spec
- added Requires %%{name} = %%{version} to devel package
[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:        1.0.3
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
11 Patch0:         %{name}-miscfix.patch
12 URL:            http://oss.sgi.com/projects/xfs/
13 BuildRequires:  autoconf
14 BuildRequires:  e2fsprogs-devel
15 BuildRequires:  xfsprogs-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _bindir         /bin
19
20 %description
21 An *experimental* command (attr) to manipulate extended attributes
22 under Linux.
23
24 %description -l pl
25 *Eksperymentalna* komenda (attr) to zarz±dzania rozszerzonymi
26 atrybutami pod systemem Linux.
27
28 %package devel
29 Summary:        Header files and libraries to use extended attributes
30 Summary(pl):    Pliki nag³ówkowe i biblioteki
31 Group:          Development/Libraries
32 Group(de):      Entwicklung/Libraries
33 Group(fr):      Development/Librairies
34 Group(pl):      Programowanie/Biblioteki
35 Requires:       %{name} = %{version}
36
37 %description devel
38 Header files and libraries to develop software which manipulate
39 extended attributes.
40
41 %description -l pl devel
42 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
43 manipuluj±cego rozszerzonymi atrybutami.
44
45 %prep
46 %setup  -q
47 %patch0 -p1
48
49 %build
50 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
51 autoconf
52 %configure 
53
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 DIST_ROOT="$RPM_BUILD_ROOT"
60 DIST_INSTALL=`pwd`/install.manifest
61 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
62 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV 
63 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
64 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
65
66 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{attr_getf,attr_listf}.3
67 rm -f   $RPM_BUILD_ROOT%{_mandir}/man3/{attr_multif,attr_removef,attr_setf}.3
68
69 echo ".so man3/attr_get.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/attr_getf.3
70 echo ".so man3/attr_list.3"     > $RPM_BUILD_ROOT%{_mandir}/man3/attr_listf.3
71 echo ".so man3/attr_multi.3"    > $RPM_BUILD_ROOT%{_mandir}/man3/attr_multif.3
72 echo ".so man3/attr_remove.3"   > $RPM_BUILD_ROOT%{_mandir}/man3/attr_removef.3
73 echo ".so man3/attr_set.3"      > $RPM_BUILD_ROOT%{_mandir}/man3/attr_setf.3
74
75 gzip -9nf doc/CHANGES
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc doc/*.gz
83 %attr(755,root,root) %{_bindir}/*
84 %{_mandir}/man[18]/*
85
86 %files devel
87 %defattr(644,root,root,755)
88 %{_libdir}/lib*.a
89 %{_includedir}/attr
90 %{_mandir}/man[23]/*
This page took 0.0458229999999999 seconds and 4 git commands to generate.