File glabels.spec of Package glabels
#
# spec file for package glabels (Version 2.0.4)
#
# Copyright (c) 2007 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: glabels
BuildRequires: aspell-devel fdupes gnutls-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libwnck-devel pcre-devel perl-XML-Parser scrollkeeper tidy update-desktop-files
Url: http://glabels.sourceforge.net/
License: GPL v2 or later
Group: Productivity/Office/Other
AutoReqProv: on
Version: 2.0.4
Release: 124
Summary: A Label Editing and Printing Tool
Source: glabels-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# For case of splitting of devel subpackage:
#Requires: glib2-devel libxml2-devel glibc-devel zlib-devel
Patch: %name-2.0.4.patch
%if %suse_version > 1020
Requires: %{name}-lang = %{version}
%endif
%description
Labels is a powerful tool for editing and printing all kinds of labels.
It comes with a lot of templates of standard labels.
Authors:
--------
James Willcox <jwillcox@cs.indiana.edu>
%lang_package
%prep
%setup -q
%patch -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: Build as root modifies system!
# glabels-2.0.4: --disable-scrollkeeper does not work properly.
%configure\
--disable-scrollkeeper\
--disable-update-mimedb\
--disable-update-desktopdb
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%suse_update_desktop_file glabels WordProcessor
%find_lang %{name}
rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info $RPM_BUILD_ROOT%{_datadir}/application-registry
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%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
%{_bindir}/*
%{_includedir}/libglabels
%{_libdir}/*.so
%{_libdir}/*.so.*
%{_libdir}/*.*a
%{_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
* Thu Oct 11 2007 - sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Thu Aug 09 2007 - maw@suse.de
- Fix up the lang subpackage.
- s#%%run_ldconfig#/sbin/ldconfig# in %%post and %%postun.
* Wed Aug 08 2007 - mauro@suse.de
- Split out a -lang subpackage
- Add %%fdupes stuff
* Mon Jan 15 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Mon Dec 04 2006 - sbrabec@suse.cz
- Do not overwrite global MIME database (#225657).
- Update MIME database correctly.
- Do not delete valid desktop file.
- Use correct mandir.
* Sat Sep 09 2006 - meissner@suse.de
- fixed warnings caused by new return; checks.
* Tue Sep 05 2006 - meissner@suse.de
- use rpm_opt_flags. fixed resulting warnings.
* Fri Sep 01 2006 - jhargadon@suse.de
- update to version 2.0.4
- Use filechooser for GnomeFileEntrys in merge properties dialog and
object editor image page
- New configure option to disable update-mime-database and
update-desktop-database
- Minor cleanup.
- New templates and fixes
- Added document merge tutorial to help documentation
- translation updates
- Fixed packing style of printer selection dialog
- New templates
* Thu Jul 27 2006 - sbrabec@suse.cz
- Call ldconfig, do not depend on devel packages (#192742).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 - snbarth@suse.de
- Fixed file list
* Mon Dec 19 2005 - ro@suse.de
- added library .so symlinks to filelist
* Tue Jan 25 2005 - snbarth@suse.de
- update to version 2.0.2
- added perl-XML-Parser to neededforbuild
- now contains glabels-application-x-glabels.png
* Fri Jan 21 2005 - snbarth@suse.de
- fixed 64bit build issue
* Thu Jan 20 2005 - snbarth@suse.de
- initial version (2.0.1)