Adding GUI subpackage

This commit is contained in:
Jochen Schmitt 2009-04-20 19:46:40 +00:00
parent 6b08daf246
commit 740211fef2

View File

@ -1,7 +1,7 @@
Name: highlight
Summary: Universal source code to formatted text converter
Version: 2.8
Release: 1%{?dist}
Release: 3%{?dist}
Group: Development/Tools
License: GPLv2
@ -10,7 +10,8 @@ URL: http://www.andre-simon.de/
Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.gz
Patch1: highlight-2.6.11-makefile.patch
BuildRequires: wxGTK-devel
BuildRequires: qt-devel >= 4.4
BuildRequires: desktop-file-utils
Buildroot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
@ -22,6 +23,13 @@ Language descriptions are configurable and support regular expressions.
The utility offers indentation and reformatting capabilities.
It is easily possible to create new language definitions and colour themes.
%package gui
Summary: GUI for the hihghlight source code formatter
Requires: %{name} = %{version}-%{release}
%description gui
A Qt-based GUI for the highlight source code formatter source.
%prep
%setup -q
%patch1 -p1 -b .mak
@ -42,15 +50,25 @@ __EOF__
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-perl.req
chmod +x %{__perl_requires}
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
make gui %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
make install-gui DESTDIR=$RPM_BUILD_ROOT
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
highlight.desktop
# Packaging this example causes lots of incorrect perl provides and
# requires. Since it isn't going to work out of the box, I'm nuking it.
rm -rf examples/plugins/movabletype
@ -60,7 +78,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/highlight
%{_datadir}/highlight/
%{_mandir}/man1/highlight.1*
@ -69,7 +86,16 @@ rm -rf $RPM_BUILD_ROOT
%doc ChangeLog AUTHORS README* COPYING TODO examples/
%files gui
%defattr(-,root,root,-)
%{_bindir}/highlight-gui
%{_datadir}/applications/highlight.desktop
%{_datadir}/pixmaps/highlight.xpm
%changelog
* Mon Apr 20 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.8-3
- Adding GUI subpackage
* Mon Apr 20 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.8-1
- New upstream release