File gphpedit.spec of Package gphpedit

#
# spec file for package gphpedit
#
# Copyright (c) 2011 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/
#

Name:           gphpedit
Version:        0.9.98
Release:        1
License:        GPLv3
Summary:        Lightweight UTF-8 text editor for Gnome desktop
Url:            http://www.gphpedit.org/
Group:          Productivity/Text/Editors
Source:         http://www.gphpedit.org/sites/default/files/gphpedit-0.9.98RC1.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  intltool
BuildRequires:  libwebkit-devel
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  update-desktop-files
Recommends:     php-doc
Recommends:     php5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The gPHPedit package contains a lightweight UTF-8 text editor based in
scintilla component for the GNOME desktop.
gPHPEdit support PHP/HTML/CSS files and also support C/C++, Python and
Perl Files.

%prep
%setup -q -n anoopjohn-gphpedit-fe8a12c

%build
./autogen.sh --prefix=$(pkg-config --variable=prefix ORBit-2.0)
make

%install
%make_install
sed -e '/Version=/d' -i %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -e '/Encoding=/d' -i %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -e 's/Icon=gphpedit.png/Icon=gphpedit/' -i %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}

%clean
%{?buildroot:rm -rf %{buildroot}}

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/css.api
%{_datadir}/%{name}/php-gphpedit.api
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/locale/de/LC_MESSAGES/%{name}.mo
%{_datadir}/locale/es/LC_MESSAGES/%{name}.mo
%{_datadir}/pixmaps/classbrowser.png
%{_datadir}/pixmaps/folderbrowser.png
%{_datadir}/pixmaps/%{name}.png


%changelog
openSUSE Build Service is sponsored by