/[packages]/cauldron/attr/current/SPECS/attr.spec
ViewVC logotype

Contents of /cauldron/attr/current/SPECS/attr.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273158 - (show annotations) (download)
Sat Jul 21 17:42:31 2012 UTC (11 years, 8 months ago) by colin
File size: 2868 byte(s)
Update for usrmove
1 %define name attr
2 %define version 2.4.46
3 %define release %mkrel 2
4
5 %define lib_name_orig lib%{name}
6 %define lib_major 1
7 %define lib_name %mklibname %{name} %{lib_major}
8
9 Summary: Utility for managing filesystem extended attributes
10 Name: %{name}
11 Version: %{version}
12 Release: %{release}
13 Source0: http://mirrors.aixtools.net/sv/%{name}/%{name}-%{version}.src.tar.gz
14 License: GPLv2
15 Group: System/Kernel and hardware
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
17 URL: http://savannah.nongnu.org/projects/attr
18
19 %description
20 A set of tools for manipulating extended attributes on filesystem
21 objects, in particular getfattr(1) and setfattr(1).
22 An attr(1) command is also provided which is largely compatible
23 with the SGI IRIX tool of the same name.
24
25 %package -n %{lib_name}
26 Summary: Main library for %{lib_name_orig}
27 Group: System/Libraries
28 Requires(pre): filesystem >= 2.1.9-18
29 Provides: %{lib_name_orig} = %{version}-%{release}
30
31 %description -n %{lib_name}
32 This package contains the library needed to run programs dynamically
33 linked with %{lib_name_orig}.
34
35 %package -n %{lib_name}-devel
36 Summary: Extended attribute static libraries and headers
37 Group: Development/C
38 Requires(pre): filesystem >= 2.1.9-18
39 Requires: %{lib_name} = %{version}
40 Provides: %{lib_name_orig}-devel = %{version}-%{release}
41 Provides: attr-devel = %{version}-%{release}
42 Obsoletes: attr-devel < %{version}-%{release}
43
44 %description -n %{lib_name}-devel
45 This package contains the libraries and header files needed to
46 develop programs which make use of extended attributes.
47 For Linux programs, the documented system call API is the
48 recommended interface, but an SGI IRIX compatibility interface
49 is also provided.
50
51 Currently only ext2, ext3, JFS and XFS support extended attributes.
52 The SGI IRIX compatibility API built above the Linux system calls is
53 used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).
54
55 You should install libattr-devel if you want to develop programs
56 which make use of extended attributes. If you install libattr-devel
57 then you'll also want to install attr.
58
59 %prep
60 %setup -q
61
62 %build
63 %configure2_5x
64 %make
65
66 %install
67 rm -rf %{buildroot}
68 make install DIST_ROOT=%{buildroot}/
69 make install-dev DIST_ROOT=%{buildroot}/
70 make install-lib DIST_ROOT=%{buildroot}/
71 # fix conflict with man-pages-1.56
72 rm -fr %{buildroot}{%_mandir/man2,%_datadir/doc}
73
74 # Remove unpackaged symlinks
75 rm -fr %{buildroot}%{_libdir}/libattr.la
76
77 %find_lang %{name}
78
79 %clean
80 rm -rf %{buildroot}
81
82 %files -f %{name}.lang
83 %defattr(-,root,root)
84 %doc doc/CHANGES.gz README
85 %{_bindir}/*
86 %{_mandir}/man1/*
87
88 %files -n %{lib_name}
89 %defattr(-,root,root)
90 %doc doc/COPYING
91 %{_libdir}/*.so.*
92
93 %files -n %{lib_name}-devel
94 %defattr(-,root,root)
95 %doc doc/CHANGES.gz doc/COPYING README
96 %{_libdir}/*.so
97 %{_libdir}/*a
98 %{_mandir}/man3/*
99 %{_mandir}/man5/*
100 %dir %{_includedir}/%{name}
101 %{_includedir}/%{name}/*
102

  ViewVC Help
Powered by ViewVC 1.1.30