/[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 516 - (show annotations) (download)
Sat Jan 8 12:44:24 2011 UTC (13 years, 10 months ago) by blino
File size: 2880 byte(s)
remove obsolete postun
1 %define name attr
2 %define version 2.4.44
3 %define minor_version 1
4 %define release %mkrel 3
5
6 %define lib_name_orig lib%{name}
7 %define lib_major 1
8 %define lib_name %mklibname %{name} %{lib_major}
9
10 Summary: Utility for managing filesystem extended attributes
11 Name: %{name}
12 Version: %{version}
13 Release: %{release}
14 Source0: http://mirrors.aixtools.net/sv/%{name}/%{name}-%{version}.src.tar.gz
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 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: %{lib_name} = %{version}
39 Provides: %{lib_name_orig}-devel = %{version}-%{release}
40 Provides: attr-devel = %{version}-%{release}
41 Obsoletes: attr-devel
42
43 %description -n %{lib_name}-devel
44 This package contains the libraries and header files needed to
45 develop programs which make use of extended attributes.
46 For Linux programs, the documented system call API is the
47 recommended interface, but an SGI IRIX compatibility interface
48 is also provided.
49
50 Currently only ext2, ext3, JFS and XFS support extended attributes.
51 The SGI IRIX compatibility API built above the Linux system calls is
52 used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).
53
54 You should install libattr-devel if you want to develop programs
55 which make use of extended attributes. If you install libattr-devel
56 then you'll also want to install attr.
57
58 %prep
59 %setup -q
60
61 %build
62 %configure2_5x --libdir=/%{_lib}
63 %make
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 make install DIST_ROOT=%{buildroot}/
68 make install-dev DIST_ROOT=%{buildroot}/
69 make install-lib DIST_ROOT=%{buildroot}/
70 # fix conflict with man-pages-1.56
71 rm -fr $RPM_BUILD_ROOT{%_mandir/man2,%_datadir/doc}
72
73 # Remove unpackaged symlinks
74 rm -fr $RPM_BUILD_ROOT/%{_lib}/libattr.{a,la} \
75 $RPM_BUILD_ROOT/%{_libdir}/libattr.la
76
77 %find_lang %{name}
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
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 /%{_lib}/*.so.*
92
93 %files -n %{lib_name}-devel
94 %defattr(-,root,root)
95 %doc doc/CHANGES.gz doc/COPYING README
96 /%{_lib}/*.so
97 %{_libdir}/*.so
98 %{_libdir}/*a
99 %{_mandir}/man3/*
100 %{_mandir}/man5/*
101 %dir %{_includedir}/%{name}
102 %{_includedir}/%{name}/*
103
104
105
106

  ViewVC Help
Powered by ViewVC 1.1.30