2
# spec file for package libapparmor
5
%define _unpackaged_files_terminate_build 0
11
Group: Development/Libraries/C and C++
12
BuildRoot: %{_tmppath}/%{name}-%{version}-build
13
Source0: %{name}-%{version}.tar.bz2
14
BuildRequires: swig gcc perl
17
Obsoletes: libapparmor
19
Summary: A utility library for AppArmor
21
%define aalibversion 1.0.2
26
%package -n libapparmor-devel
27
Requires: %{name} = %{version}-%{release}
28
Group: Development/Libraries/C and C++
29
Provides: libapparmor:/usr/include/sys/apparmor.h
32
%description -n libapparmor-devel
35
%post -n libapparmor-devel
38
%postun -n libapparmor-devel
41
%package -n perl-libapparmor
42
Requires: %{name} = %{version}
43
Requires: perl = %{perl_version}
44
Group: Development/Libraries/Perl
47
%description -n perl-libapparmor
54
./configure --prefix=%{_prefix} --libdir=%{_libdir} --with-perl
55
make CFLAGS="${RPM_OPT_FLAGS}"
58
make install DESTDIR="$RPM_BUILD_ROOT"
59
mkdir ${RPM_BUILD_ROOT}/%{_lib}
60
# this is really hacky
61
rm ${RPM_BUILD_ROOT}/%{_libdir}/libapparmor.so
62
rm ${RPM_BUILD_ROOT}/%{_libdir}/libimmunix.so
63
cp ${RPM_BUILD_ROOT}/%{_libdir}/libapparmor.so.%{aalibversion} ${RPM_BUILD_ROOT}/%{_lib}
64
cp ${RPM_BUILD_ROOT}/%{_libdir}/libimmunix.so.%{aalibversion} ${RPM_BUILD_ROOT}/%{_lib}
65
ln -s /%{_lib}/libapparmor.so.%{aalibversion} ${RPM_BUILD_ROOT}/%{_libdir}/libapparmor.so
67
find $RPM_BUILD_ROOT -name .packlist -exec rm -f {} \;
68
find $RPM_BUILD_ROOT -name perllocal.pod -exec rm -f {} \;
70
# create symlink for old change_hat(2) manpage
71
ln -s aa_change_hat.2 ${RPM_BUILD_ROOT}/%{_mandir}/man2/change_hat.2
73
rm -rf "$RPM_BUILD_ROOT"
83
/%{_lib}/libapparmor.so.*
84
/%{_lib}/libimmunix.so.*
86
%files -n libapparmor-devel
88
%{_libdir}/libapparmor.so
89
%{_libdir}/libapparmor.la
90
%{_libdir}/libapparmor.a
91
%{_libdir}/libimmunix.la
92
%{_libdir}/libimmunix.a
93
%doc %{_mandir}/man*/*
94
%dir %{_includedir}/aalogparse
95
%{_includedir}/sys/apparmor.h
96
%{_includedir}/aalogparse/*
98
%files -n perl-libapparmor
100
%dir %{perl_vendorarch}/auto/LibAppArmor
101
%{perl_vendorarch}/auto/LibAppArmor/*
102
%{perl_vendorarch}/LibAppArmor.pm
105
* Sun Sep 16 2007 - sbeattie@suse.de
106
- aalogparse: add support for type=15xx audit field
107
- aalogparse: add support for audit messages thru syslog
108
- aalogparse: reduce noise to stdout on syntax errors
109
- aalogparse: add support for more missing message types
110
- aalogparse: parse messages w/safe (hex) string encodings
111
* Fri Aug 17 2007 - sbeattie@suse.de
112
- Fix broken symlink for old change_hat(2) manpage
113
* Wed Aug 15 2007 - sbeattie@suse.de
114
- fix braindead symbol versioning issue with old version name
115
- re-enable CFLAGS=RPM_OPT_FLAGS for build
116
- convert change_hat(2) to aa_change_hat(2)
117
- use 64bit magic token
118
- add aa_change_profile(2) interface
119
* Sat Jul 28 2007 - mbarringer@suse.de
120
- Merged in libaalogparse to the library/package
121
* Tue Apr 7 2007 - sbeattie@suse.de
122
- Add change_hat manpage to package
123
* Thu Jan 18 2007 - sbeattie@suse.de
124
- Add a clean stage to remove buildroot to specfile
125
* Fri Feb 17 2006 Seth Arnold <seth.arnold@suse.de> 2.0-4.1
126
- use gettid() instead of /proc/self
127
* Fri Feb 10 2006 Steve Beattie <sbeattie@suse.de> 2.0-3.2
129
- Fix installed library version to match specfile version
130
* Wed Feb 1 2006 Steve Beattie <sbeattie@suse.de> 2.0-3.1
131
- Fix prototype to match change_hat(2) manpage
132
* Mon Jan 23 2006 Steve Beattie <sbeattie@suse.de> 2.0-3
133
- Rename to libapparmor.so and apparmor.h
134
* Thu Jan 5 2006 Steve Beattie <sbeattie@suse.de> 2.0-2
135
- Add svn repo number to tarball
136
* Wed Dec 7 2005 Steve Beattie <sbeattie@suse.de> 2.0-1
137
- Reset version for inclusion is SUSE autobuild
138
* Wed Dec 7 2005 Steve Beattie <sbeattie@suse.de> 1.99-8
139
- Disable 32bit builds on 64bit platforms for now
140
* Mon Dec 5 2005 Steve Beattie <sbeattie@suse.de> 1.99-7
141
- Rename package to libapparmor
142
* Wed Aug 10 2005 Steve Beattie <sbeattie@suse.de> 1.99-6_imnx
143
- Cleanup some of the deprecated exported symbols
144
* Thu Aug 4 2005 John Johansen <jjohansen@novell.com> 1.99-5_imnx
145
- and -m31 flag for s390
146
* Mon Jul 11 2005 Steve Beattie <sbeattie@novell.com> 1.99-4_imnx
147
- get rid of libimmunix_post_upgrade
150
* Fri May 27 2005 Steve Beattie <steve@immunix.com> 1.99-3_imnx
151
- Clear token buffer before freeing.
152
- Error handling cleanup.
153
* Fri Feb 18 2005 Steve Beattie <steve@immunix.com> 1.99-2_imnx
154
- Use the right command for the 32bit env on 64bit platforms
155
- Support for 64bit builds on systems with combined 32/64 support
156
* Fri Feb 4 2005 Seth Arnold <sarnold@immunix.com> 1.99-1_imnx
158
* Mon Nov 8 2004 Steve Beattie <steve@immunix.com> 1.2-3_imnx
159
- Finish conversion to slack-capable infrastructure.
160
* Thu Oct 28 2004 Steve Beattie <steve@immunix.com> 1.2-2_imnx
161
- Added a 'make install' target for prelim slack support
162
* Tue Oct 12 2004 Steve Beattie <steve@immunix.com> 1.2-1_imnx
163
- Bump version after shass-1.1 branched off
164
* Thu Sep 23 2004 Steve Beattie <steve@immunix.com> 1.0-13_imnx
165
- Vastly simplify the string handling in change_hat().
166
* Thu Sep 9 2004 Steve Beattie <steve@immunix.com> 1.0-12_imnx
167
- Conditionalize group the package shows up in.
168
* Thu Sep 9 2004 Steve Beattie <steve@immunix.com> 1.0-11_imnx
169
- Fix so change_hat functions correctly even when the token is zero.
170
* Thu Sep 2 2004 Steve Beattie <steve@immunix.com> 1.0-10_imnx
171
- Added that it provides %{_prefix}/sbin/libimmunix_post_upgrade, this
172
was somehow breaking yast.
173
* Mon Aug 30 2004 Steve Beattie <steve@immunix.com> 1.0-9_imnx
174
- Copyright cleanups.
175
* Wed Jul 21 2004 Steve Beattie <steve@immunix.com> 1.0-8_imnx
176
- add basis for conditional distro support
177
* Thu May 28 2004 Tony Jones <tony@immunix.com> 1.0-7_imnx
178
- Add "changehat" command word to start of string written to /proc/pid/attr