diff --git a/management/applets/apparmorapplet-gnome/AppArmor_Monitor_Factory.server.in b/management/applets/apparmorapplet-gnome/AppArmor_Monitor_Factory.server.in index ea4f1426d..81bc27400 100644 --- a/management/applets/apparmorapplet-gnome/AppArmor_Monitor_Factory.server.in +++ b/management/applets/apparmorapplet-gnome/AppArmor_Monitor_Factory.server.in @@ -1,6 +1,6 @@ + location="@LIBEXECDIR@/apparmorapplet"> diff --git a/management/applets/apparmorapplet-gnome/Makefile.am b/management/applets/apparmorapplet-gnome/Makefile.am index 59315a1d5..2a1dfad2f 100644 --- a/management/applets/apparmorapplet-gnome/Makefile.am +++ b/management/applets/apparmorapplet-gnome/Makefile.am @@ -33,5 +33,5 @@ serverdir = $(libdir)/bonobo/servers server_in_files = AppArmor_Monitor_Factory.server.in server_DATA = AppArmor_Monitor_Factory.server AppArmor_Monitor_Factory.server: - sed -e "s|\@BINDIR\@|$(bindir)|" < AppArmor_Monitor_Factory.server.in > AppArmor_Monitor_Factory.server + sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" < AppArmor_Monitor_Factory.server.in > AppArmor_Monitor_Factory.server diff --git a/management/applets/apparmorapplet-gnome/apparmorapplet-gnome.spec b/management/applets/apparmorapplet-gnome/apparmorapplet-gnome.spec new file mode 100644 index 000000000..f84fe30ef --- /dev/null +++ b/management/applets/apparmorapplet-gnome/apparmorapplet-gnome.spec @@ -0,0 +1,37 @@ +# norootforbuild + +Name: apparmorapplet-gnome +Version: 0.6 +Release: 1 +URL: http://forge.novell.com/modules/xfmod/project/?apparmor +BuildRequires: gnome-common gnome-desktop-devel gnome-panel-devel +%if %suse_version > 1010 +BuildRequires: dbus-1-glib-devel +%else +BuildRequires: dbus-1-devel dbus-1-glib +%endif +Group: System/GUI/Gnome +Requires: apparmor-dbus +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +- + +%prep +%setup -q + +%build +autoreconf -f -i + +%configure --libexecdir=%{_prefix}/lib/apparmorapplet +make %{?jobs:-j%jobs} + +%install +%makeinstall + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%run_ldconfig +