File novell-addon-manager.spec of Package novell-addon-manager

#
# spec file for package novell-addon-manager (Version 0.3.3)
#
# 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:           novell-addon-manager
BuildRequires:  gtk2-devel libglade2-devel libgnome-devel perl-XML-Parser update-desktop-files
%if %suse_version < 1020
BuildRequires:  gnome-icon-theme
#%define prefix /opt/gnome
#%define sysconfdir /etc/opt/gnome
%else
#%define prefix %{_prefix}
#%define sysconfdir %{_sysconfdir}
%endif
Url:            http://www.novell.com
License:        GPL v2 or later
Group:          System/GUI/GNOME
Requires:       gtk2 curl
AutoReqProv:    on
Version:        0.3.3
Release:        103
Summary:        novell-addon-manager is a a GUI for installing add-on packages
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-po.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
novell-addon-manager is a GUI for installing add-on packages



Authors:
--------
    James Willcox  <snorp@novell.com>

%prep
%setup -q -a1

%build
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
            --sysconfdir=%{_sysconfdir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr
# hack to work around brp_desktop script
%if %suse_version < 1020
mkdir $RPM_BUILD_ROOT/%{_datadir}/pixmaps
#mkdir -p $RPM_BUILD_ROOT/opt/gnome/share/icons/hicolor/scalable/apps
cp $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg $RPM_BUILD_ROOT/%{_datadir}/pixmaps
#mv $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg $RPM_BUILD_ROOT/opt/gnome/share/icons/hicolor/scalable/apps/%{name}.svg
%endif
%suse_update_desktop_file %name -G "Addon installation manager"

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/novell-addon-manager
%{_sbindir}/squash-merge
%{_sbindir}/addon-install
%{_sbindir}/addon-remove
%{_datadir}/icons/hicolor/scalable/apps/novell-addon-manager.svg
%{_datadir}/applications/novell-addon-manager.desktop
%dir %{_datadir}/novell-addon-manager
%{_datadir}/novell-addon-manager/*.glade
%if %suse_version < 1020
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/pixmaps/%{name}.svg
#/opt/gnome/share/icons/hicolor/scalable/apps/%{name}.svg
%endif

%changelog
* Sat Dec 06 2008 mauro@suse.de
- Translation update.
* Wed Jan 09 2008 gekker@suse.de
- Initial import into autobuild
openSUSE Build Service is sponsored by