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

  ViewVC Help
Powered by ViewVC 1.1.30