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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 337577 - (show annotations) (download)
Wed Jan 2 09:35:46 2013 UTC (11 years, 2 months ago) by pterjan
File size: 2637 byte(s)
- Fix for _libdir != _libexecdir
1 %define name acl
2 %define version 2.2.51
3 %define release %mkrel 5
4
5 %define libname_orig lib%{name}
6 %define lib_major 1
7 %define libname %mklibname %{name} %{lib_major}
8 %define develname %mklibname -d %{name}
9
10 Name: %{name}
11 Version: %{version}
12 Release: %{release}
13 Summary: Command for manipulating access control lists
14 License: GPLv2+ and LGPLv2
15 Group: System/Kernel and hardware
16 URL: http://savannah.nongnu.org/projects/acl
17 Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.src.tar.gz
18 Patch0: acl-2.2.51-libexec.patch
19 BuildRequires: attr-devel
20 BuildRequires: libtool
21
22 %description
23 This package contains the getfacl and setfacl utilities needed for
24 manipulating access control lists.
25
26 %package -n %{libname}
27 Summary: Main library for %{libname_orig}
28 Group: System/Libraries
29 Requires(pre): filesystem >= 2.1.9-18
30 Provides: %{libname_orig} = %{version}-%{release}
31
32 %description -n %{libname}
33 This package contains the %{libname_orig} dynamic library which contains
34 the POSIX 1003.1e draft standard 17 functions for manipulating access
35 control lists.
36
37 %package -n %{develname}
38 Summary: Access control list static libraries and headers
39 Group: Development/C
40 Requires(pre): filesystem >= 2.1.9-18
41 Requires: %{libname} = %{version}-%{release}
42 Provides: acl-devel = %{version}-%{release}
43 Provides: libacl-devel = %{version}-%{release}
44 Obsoletes: %mklibname -d acl 0
45 Obsoletes: %mklibname -d acl 1
46
47 %description -n %{develname}
48 This package contains static libraries and header files needed to develop
49 programs which make use of the access control list programming interface
50 defined in POSIX 1003.1e draft standard 17.
51
52 You should install %{develname} if you want to develop programs
53 which make use of ACLs. If you install %{develname}, you will
54 also want to install %{libname}.
55
56 %prep
57 %setup -q
58 %apply_patches
59
60 %build
61 %configure2_5x --sbindir=%{_bindir}
62 %make
63
64 %install
65 rm -rf %{buildroot}
66 make install DIST_ROOT=%{buildroot}/
67 make install-dev DIST_ROOT=%{buildroot}/
68 make install-lib DIST_ROOT=%{buildroot}/
69
70 find %{buildroot} -name *.la | xargs rm
71
72 rm -rf %{buildroot}%{_docdir}/acl
73
74 %find_lang %{name}
75
76 %clean
77 rm -rf %{buildroot}
78
79 %files -f %{name}.lang
80 %defattr(-,root,root)
81 %doc doc/CHANGES.gz doc/COPYING README
82 %{_bindir}/*
83 %{_mandir}/man1/*
84 %{_mandir}/man5/*
85
86 %files -n %{libname}
87 %defattr(-,root,root)
88 %doc doc/COPYING
89 %{_libdir}/*.so.%{lib_major}
90 %{_libdir}/*.so.%{lib_major}.*
91
92 %files -n %{develname}
93 %defattr(-,root,root)
94 %doc doc/extensions.txt doc/COPYING doc/libacl.txt
95 %{_libdir}/*.so
96 %{_libdir}/*.a
97 %{_mandir}/man3/*
98 %dir %{_includedir}/acl
99 %{_includedir}/acl/libacl.h
100 %{_includedir}/sys/acl.h

  ViewVC Help
Powered by ViewVC 1.1.30