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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 137457 - (hide annotations) (download)
Thu Sep 1 06:28:00 2011 UTC (12 years, 7 months ago) by ze
File size: 2868 byte(s)
- version 2.4.46
- remove unused macro
- avoid use of variables and macros,use just one and preferably native macros
- fix renaming
1 pterjan 295 %define name attr
2 ze 137457 %define version 2.4.46
3     %define release %mkrel 1
4 pterjan 295
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     Provides: %{lib_name_orig} = %{version}-%{release}
29    
30     %description -n %{lib_name}
31     This package contains the library needed to run programs dynamically
32     linked with %{lib_name_orig}.
33    
34     %package -n %{lib_name}-devel
35     Summary: Extended attribute static libraries and headers
36     Group: Development/C
37     Requires: %{lib_name} = %{version}
38     Provides: %{lib_name_orig}-devel = %{version}-%{release}
39     Provides: attr-devel = %{version}-%{release}
40 ze 137457 Obsoletes: attr-devel < %{version}-%{release}
41 pterjan 295
42     %description -n %{lib_name}-devel
43     This package contains the libraries and header files needed to
44     develop programs which make use of extended attributes.
45     For Linux programs, the documented system call API is the
46     recommended interface, but an SGI IRIX compatibility interface
47     is also provided.
48    
49     Currently only ext2, ext3, JFS and XFS support extended attributes.
50     The SGI IRIX compatibility API built above the Linux system calls is
51     used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).
52    
53     You should install libattr-devel if you want to develop programs
54     which make use of extended attributes. If you install libattr-devel
55     then you'll also want to install attr.
56    
57     %prep
58     %setup -q
59    
60     %build
61     %configure2_5x --libdir=/%{_lib}
62     %make
63    
64     %install
65 ze 137457 rm -rf %{buildroot}
66 pterjan 295 make install DIST_ROOT=%{buildroot}/
67     make install-dev DIST_ROOT=%{buildroot}/
68     make install-lib DIST_ROOT=%{buildroot}/
69     # fix conflict with man-pages-1.56
70 ze 137457 rm -fr %{buildroot}{%_mandir/man2,%_datadir/doc}
71 pterjan 295
72     # Remove unpackaged symlinks
73 ze 137457 rm -fr %{buildroot}/%{_lib}/libattr.{a,la} \
74     %{buildroot}%{_libdir}/libattr.la
75    
76 pterjan 295 %find_lang %{name}
77    
78     %clean
79 ze 137457 rm -rf %{buildroot}
80 pterjan 295
81     %files -f %{name}.lang
82     %defattr(-,root,root)
83     %doc doc/CHANGES.gz README
84     %{_bindir}/*
85     %{_mandir}/man1/*
86    
87     %files -n %{lib_name}
88     %defattr(-,root,root)
89     %doc doc/COPYING
90     /%{_lib}/*.so.*
91    
92     %files -n %{lib_name}-devel
93     %defattr(-,root,root)
94     %doc doc/CHANGES.gz doc/COPYING README
95     /%{_lib}/*.so
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