]> git.pld-linux.org Git - packages/libapparmor.git/blob - libapparmor.spec
- new, based on spec from package
[packages/libapparmor.git] / libapparmor.spec
1 %define         _ver 2.0
2 %define         _svnrel 6288
3 Summary:        Library to provide key AppArmor symbols
4 Name:           libapparmor
5 Version:        %{_ver}.%{_svnrel}
6 Release:        0.8
7 License:        LGPL
8 Group:          Libraries
9 Source0:        http://forge.novell.com/modules/xfcontent/private.php/apparmor/Development%20-%20April%20Snapshot/%{name}-%{_ver}-%{_svnrel}.tar.gz
10 # Source0-md5:  e7f5e6f8663919d5998469e842442509
11 URL:            http://forge.novell.com/modules/xfmod/project/?apparmor
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 This package provides the libapparmor library, which contains the
16 change_hat(2) symbol, used for sub-process confinement by AppArmor.
17 Applications that wish to make use of change_hat(2) need to link
18 against this library. This package is part of a suite of tools that
19 used to be named SubDomain.
20
21 %package devel
22 Summary:        Header files for libapparmor library
23 Summary(pl):    Pliki nag³ówkowe biblioteki libapparmor
24 Group:          Development/Libraries
25 Requires:       %{name} = %{version}-%{release}
26
27 %description devel
28 This is the package containing the header files for libapparmor
29 library.
30
31 %description devel -l pl
32 Ten pakiet zawiera pliki nag³ówkowe biblioteki libapparmor.
33
34 %package static
35 Summary:        Static libapparmor library
36 Summary(pl):    Statyczna biblioteka libapparmor
37 Group:          Development/Libraries
38 Requires:       %{name}-devel = %{version}-%{release}
39
40 %description static
41 Static libapparmor library.
42
43 %description static -l pl
44 Statyczna biblioteka libapparmor.
45
46 %prep
47 %setup -q -n %{name}-%{_ver}
48
49 %build
50 %{__make} \
51         CC="%{__cc}" \
52         CFLAGS="%{rpmcflags}"
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT \
58         LIB=%{_lib} \
59         VERSION=%{version} \
60         RELEASE=%{release}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post   -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
67
68 %files
69 %defattr(644,root,root,755)
70 %attr(755,root,root) /%{_lib}/lib*.so.*
71
72 %files devel
73 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_libdir}/lib*.so
75 %{_includedir}/sys/*.h
76
77 %files static
78 %defattr(644,root,root,755)
79 %{_libdir}/lib*.a
This page took 0.0357769999999999 seconds and 4 git commands to generate.