File kxmleditor.spec of Package kxmleditor
#
# spec file for package kxmleditor (Version 1.1.4)
#
# 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: kxmleditor
BuildRequires: kdebase3-devel
%if %suse_version < 1010
BuildRequires: update-desktop-files
%endif
Summary: A Tool for Browsing and Editing XML Documents
Version: 1.1.4
Release: 310
License: GPL-2.0-or-later
Url: http://kxmleditor.sourceforge.net/
Group: Productivity/Publishing/XML
Source: kxmleditor-%{version}.tar.bz2
Source1: kxmleditor-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: kxmleditor-deprecate-update-desktop-files.patch
%description
KXML Editor is a tool for browsing and editing XML documents. It
contains a split view, with the XML document structure in one panel and
a list of element attributes and their values in the other panel.
Authors:
--------
Lumir Vanek <lvanek@eanet.cz>
Olaf Hartig <olaf@punkbands.de>
%prep
%setup
sed -i 's|lib_LTLIBRARIES =|kde_module_LTLIBRARIES =|g' Makefile.am
%patch -P 0 -p1
. /etc/opt/kde3/common_options
update_admin
%build
. /etc/opt/kde3/common_options
export CXXFLAGS="$RPM_OPT_FLAGS -fpermissive"
export CFLAGS="$RPM_OPT_FLAGS -fpermissive"
./configure $configkde --disable-final
make
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%install
. /etc/opt/kde3/common_options
make $INSTALL_TARGET DESTDIR=$RPM_BUILD_ROOT
# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/Applications/kxmleditor.desktop %{buildroot}/opt/kde3/share/applications/kde/kxmleditor.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%dir /opt/kde3/share/apps/kxmleditor
%dir /opt/kde3/share/doc/HTML/en/kxmleditor
/opt/kde3/bin/kxmleditor
/opt/kde3/%_lib/libkxmleditorpart.la
/opt/kde3/%_lib/libkxmleditorpart.so
/opt/kde3/%_lib/libkxmleditorpart.so.1
/opt/kde3/%_lib/libkxmleditorpart.so.1.0.0
/opt/kde3/share/applications/kde/kxmleditor.desktop
/opt/kde3/share/apps/kxmleditor/icons/hicolor/16x16/actions/*
/opt/kde3/share/apps/kxmleditor/icons/hicolor/22x22/actions/*
/opt/kde3/share/apps/kxmleditor/icons/hicolor/32x32/actions/*
/opt/kde3/share/apps/kxmleditor/icons/locolor/16x16/actions/*
/opt/kde3/share/apps/kxmleditor/*
/opt/kde3/share/apps/kxmleditor/pics/*
/opt/kde3/share/doc/HTML/en/kxmleditor/*
/opt/kde3/share/icons/hicolor/32x32/apps/kxmleditor.png
/opt/kde3/share/icons/hicolor/48x48/apps/kxmleditor.png
/opt/kde3/share/icons/locolor/16x16/apps/kxmleditor.png
/opt/kde3/share/icons/locolor/32x32/apps/kxmleditor.png
/opt/kde3/share/locale/de/LC_MESSAGES/kxmleditor.mo
/opt/kde3/share/locale/fr/LC_MESSAGES/kxmleditor.mo
/opt/kde3/share/locale/pl/LC_MESSAGES/kxmleditor.mo
/opt/kde3/share/services/kxmleditorpart.desktop
%changelog
* Wed Oct 24 2007 dmueller@suse.de
- do not build with --enable-final, code uses clashing
[#]define's
* Tue May 30 2006 adrian@suse.de
- fix build for < 10.1
* Fri Feb 17 2006 coolo@suse.de
- don't configure in %%setup
* Wed Feb 15 2006 stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Feb 17 2005 adrian@suse.de
- update to version 1.1.4
- moved menu entry to xdg
* Thu Dec 16 2004 coolo@suse.de
- fix unsermake install
* Wed Sep 15 2004 nashif@suse.de
- Bug fix release 1.1.3:
* Wed Sep 01 2004 nashif@suse.de
- Update to 1.1.2
* Thu Aug 05 2004 nashif@suse.de
- Update to 1.1.0
* Sun Feb 15 2004 adrian@suse.de
- remove multiple menu entries
* Sun Feb 01 2004 nashif@suse.de
- Update to version 1.0.0
* Fri Jan 09 2004 nashif@suse.de
- Update to version 0.9.1
* Thu Dec 04 2003 nashif@suse.de
- Update to version 0.8.4
* Wed Nov 12 2003 nashif@suse.de
- Updated to version 0.8.3
* Sun Sep 14 2003 adrian@suse.de
- add Editor Category
* Sun Aug 10 2003 adrian@suse.de
- add Categories
* Sat Feb 15 2003 nashif@suse.de
- Update to version 0.8.1
* Sun Feb 09 2003 nashif@suse.de
- fixed for x86_64 and lib64 usage
* Sat Feb 08 2003 nashif@suse.de
- Initial Release (0.8)