File glabels.spec of Package glabels
#
# spec file for package glabels (Version 2.2.5)
#
# Copyright (c) 2009 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: glabels
Url: http://glabels.sourceforge.net/
License: GPL v2 or later
Group: Productivity/Office/Other
Version: 2.2.5
Release: 2
Summary: A Label Editing and Printing Tool
Source: glabels-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: glib2-devel
BuildRequires: libglade2-devel
BuildRequires: libgnomeui-devel
BuildRequires: scrollkeeper
BuildRequires: update-desktop-files
BuildRequires: intltool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version}
%description
Labels is a powerful tool for editing and printing all kinds of labels.
It comes with a lot of templates of standard labels.
%lang_package
%prep
%setup -q
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: Build as root modifies system!
%configure\
--disable-static \
--disable-update-mimedb\
--disable-update-desktopdb
make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
# delete scrollkeeper directory. configure does not understand --disable-scrollkeeper.
rm -rf %{buildroot}%{_localstatedir}/scrollkeeper
%suse_update_desktop_file glabels WordProcessor
%find_lang %{name}
rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info $RPM_BUILD_ROOT%{_datadir}/application-registry
%fdupes -s %{buildroot}
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database /usr/share/mime >/dev/null
fi
%postun
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database /usr/share/mime >/dev/null
fi
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
%{_datadir}/gtk-doc/html/libglabels
%{_bindir}/*
%{_includedir}/libglabels
%{_libdir}/*.so
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/libglabels.pc
%{_datadir}/applications/*.desktop
%{_datadir}/glabels
%{_datadir}/mime/packages/glabels.xml
%{_datadir}/omf/glabels
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/glabels
%doc %{_mandir}/man?/*.*
%files lang -f %{name}.lang
%changelog