File limal-apparmor-notifications.spec of Package limal-apparmor-notifications
#
# spec file for package limal-apparmor-notifications (Version 1.0.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: limal-apparmor-notifications
Url: http://forge.novell.com/modules/xfmod/project/?apparmor
Version: 1.0.0
Release: 151
License: GPL v2 or later
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: curl gcc-c++ limal-devel limal-devtools limal-perl perl-gettext sgml-skel
Requires: apparmor-parser
Source0: limal-apparmor-notifications-1.0.0.tar.bz2
Patch1: limal-apparmor-notifications.patch
Patch2: limal-apparmor-notifications-swig-typemaps.patch
Prefix: /usr
%define swiglibdir %(swig -swiglib)
Summary: Limal pluglib for AppArmor notifications configuration files
%description
Limal pluglib for AppArmor that provides an API for working with
AppArmor's notification configuration file, notify.cfg.
Authors:
--------
mbarringer@suse.de
%package devel
License: GPL v2 or later
Requires: limal-apparmor-notifications = %version
Requires: limal-devel, libstdc++-devel, blocxx-devel, pcre-devel
Group: Development/Libraries/C and C++
Summary: Development libraries and header files for apparmor-notifications limal
%description devel
Development libraries and header files for the apparmor-notifications
limal pluglib.
Authors:
--------
mbarringer@suse.de
%package perl
License: GPL v2 or later
Requires: limal-perl
Group: Development/Libraries/Perl
Summary: Perl bindings for the apparmor-notifications limal pluglib.
%description perl
Perl bindings for the apparmor-notifications limal pluglib.
Authors:
--------
mbarringer@suse.de
%prep
%setup -n limal-apparmor-notifications-1.0.0
%patch1
%patch2
%build
%{prefix}/bin/limaltool limalautoconf
%{prefix}/bin/limaltool limalautomake
autoreconf --force --install --verbose
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} \
--sysconfdir=/etc --localstatedir=/var
make %{?jobs:-j%jobs}
%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/limal/devtools/NO_MAKE_CHECK" ] || \
LIMALDATADIR="$RPM_BUILD_ROOT/usr/share/limal" \
# required for perl test cases
export LD_LIBRARY_PATH="$RPM_BUILD_ROOT/usr/lib/limal"
make check DESTDIR="$RPM_BUILD_ROOT"
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%dir %{_libdir}/limal
%{_libdir}/limal/lib*.so.*
%files devel
%defattr(-,root,root)
%dir %{_libdir}/limal
%{_libdir}/limal/lib*.so
%{_libdir}/limal/lib*.la
%dir %{_includedir}/limal/apparmor-notifications
%{_includedir}/limal/apparmor-notifications/*
%{_libdir}/pkgconfig/limal-apparmor-notifications.pc
%doc %{_prefix}/share/doc/packages/limal-apparmor-notifications
%files perl
%defattr(-,root,root)
%dir %{perl_vendorarch}/LIMAL
%dir %{perl_vendorarch}/auto/LIMAL
%dir %{perl_vendorarch}/auto/LIMAL/ApparmorNotifications/
%{perl_vendorarch}/auto/LIMAL/ApparmorNotifications/*
%{perl_vendorarch}/LIMAL/*.pm
%changelog
* Wed Nov 19 2008 jjohansen@suse.de
- make testsuite pass again bnc#392572
* Tue Apr 22 2008 mt@suse.de
- Adopted swig flags in swig/perl5/Makefile.am to search
for limal typemaps in ${limaldatadir}/typemaps.
* Fri Feb 29 2008 ro@suse.de
- make testsuite pass again
* Wed Jan 10 2007 mbarringer@suse.de
- Initial checkin of version 1.0.0