File apparmor-profile-editor.spec of Package apparmor-profile-editor

#
# spec file for package apparmor-profile-editor (Version 0.9.1)
#
# 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:           apparmor-profile-editor
Url:            http://forge.novell.com/modules/xfmod/project/?apparmor
BuildRequires:  gcc-c++ update-desktop-files wxGTK-devel
Version:        0.9.1
Release:        268
License:        GPL v2 or later
Summary:        AppArmor profile editor
Group:          Productivity/Editors/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}.png
Patch0:         apparmor-profile-editor-0.9.1-wxwin-compatibility.patch
Patch1:         apparmor-profile-editor-gcc43.patch
Patch2:         apparmor-profile-editor-0.9.1-optflags.patch

%description
A syntax highlighting editor for AppArmor profiles.



Authors:
--------
    Matt Barringer <mbarringer@suse.de>

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1
%patch2

%build
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DSCI_LEXER -DLINK_LEXERS -DWX_PRECOMP -DNO_GCC_PRAGMA -D__WX"
export CXXFLAGS="$RPM_OPT_FLAGS -DSCI_LEXER -DLINK_LEXERS -DWX_PRECOMP -DNO_GCC_PRAGMA -D__WX" 
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -i %{name} Utility TextEditor

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%{_prefix}/share/applications/%{name}.desktop
%{_prefix}/share/pixmaps/%{name}.png
%{_prefix}/bin/profileeditor
%{_prefix}/share/doc/profileeditor/AppArmorProfileEditor.htb
%dir %{_prefix}/share/doc/profileeditor
%doc AUTHORS COPYING ChangeLog NEWS README TODO

%changelog
* Mon Jun 23 2008 crrodriguez@suse.de
- Use RPM_OPT_FLAGS everywhere [FATE #300498]
* Mon Nov 12 2007 ro@suse.de
- fix build with gcc-4.3
* Wed Jun 06 2007 sbrabec@suse.cz
- Removed invalid desktop Category "Application" (#254654).
* Mon Mar 12 2007 ssommer@suse.de
- fixed duplicated case value
* Sun Aug 06 2006 mbarringer@suse.de
- Initial checkin to autobuild
openSUSE Build Service is sponsored by