File limal-apparmor-reporting.spec of Package limal-apparmor-reporting

#
# spec file for package limal-apparmor-reporting (Version 1.1.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           limal-apparmor-reporting
Url:            http://forge.novell.com/modules/xfmod/project/?apparmor
Version:        1.1.0
Release:        115
License:        GPL v2 or later
Requires:       libxml2
Group:          Development/Libraries/C and C++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  curl gcc-c++ libxml2-devel limal-devel limal-devtools limal-perl perl-gettext sgml-skel
Source0:        %{name}-%{version}.tar.bz2
Patch1:         limal-apparmor-reporting-stringcompare.patch
Patch2:         limal-apparmor-reporting-swig-typemaps.patch
Prefix:         /usr
%define		swiglibdir %(swig -swiglib)
Summary:        Limal pluglib for working with AppArmor's notification configuration.

%description
Limal pluglib for working with AppArmor's notification configuration.



Authors:
--------
    mbarringer@suse.de

%package devel
License:        GPL v2 or later
Requires:       limal-apparmor-reporting = %version
Requires:       limal-devel, libstdc++-devel, blocxx-devel, pcre-devel, libxml2-devel
Group:          Development/Libraries/C and C++
Summary:        Development libraries and header files for apparmor-reporting limal

%description devel
Development libraries and header files for the apparmor-reporting limal
pluglib.



Authors:
--------
    mbarringer@suse.de

%package perl
License:        GPL v2 or later
Requires:       limal-perl
Group:          Development/Libraries/Perl
Summary:        Perl interface to the apparmor-reporting limal pluglib.

%description perl
Perl interface to the apparmor-reporting limal pluglib.



Authors:
--------
    mbarringer@suse.de

%prep
%setup -n %{name}-%{version}
%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.*
#%{_prefix}/share/locale/*/LC_MESSAGES/*

%files devel
%defattr(-,root,root)
%dir %{_libdir}/limal
%{_libdir}/limal/lib*.so
%{_libdir}/limal/lib*.la
%dir %{_includedir}/limal/apparmor-reporting
%{_includedir}/limal/apparmor-reporting/*
%{_libdir}/pkgconfig/limal-apparmor-reporting.pc
%doc %{_prefix}/share/doc/packages/limal-apparmor-reporting

%files perl
%defattr(-,root,root)
%dir %{perl_vendorarch}/LIMAL
%dir %{perl_vendorarch}/auto/LIMAL
%dir %{perl_vendorarch}/auto/LIMAL/ApparmorReportingConfig/
%{perl_vendorarch}/auto/LIMAL/ApparmorReportingConfig/*
%{perl_vendorarch}/LIMAL/*.pm

%changelog
* Tue Apr 22 2008 mt@suse.de
- Adopted swig flags in swig/perl5/Makefile.am to search
  for limal typemaps in ${limaldatadir}/typemaps.
* Fri Jun 15 2007 ro@suse.de
- silence gcc warning about comparing string to char literal
- adapt Testsuite, "Run Day" should be "-1" for "*" in crontab
* Tue Jan 30 2007 mbarringer@suse.de
- Modified the library to use libxml2 rather than xerces-c.
* Fri Jan 19 2007 mbarringer@suse.de
- Initial checkin of version 1.0 (fate #300903)
openSUSE Build Service is sponsored by