Adding GUI subpackage
This commit is contained in:
parent
6b08daf246
commit
740211fef2
@ -1,7 +1,7 @@
|
|||||||
Name: highlight
|
Name: highlight
|
||||||
Summary: Universal source code to formatted text converter
|
Summary: Universal source code to formatted text converter
|
||||||
Version: 2.8
|
Version: 2.8
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -10,7 +10,8 @@ URL: http://www.andre-simon.de/
|
|||||||
Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.gz
|
Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.gz
|
||||||
Patch1: highlight-2.6.11-makefile.patch
|
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)
|
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.
|
The utility offers indentation and reformatting capabilities.
|
||||||
It is easily possible to create new language definitions and colour themes.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .mak
|
%patch1 -p1 -b .mak
|
||||||
@ -42,15 +50,25 @@ __EOF__
|
|||||||
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-perl.req
|
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-perl.req
|
||||||
chmod +x %{__perl_requires}
|
chmod +x %{__perl_requires}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
|
||||||
|
make gui %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
make install DESTDIR=$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
|
# 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.
|
# requires. Since it isn't going to work out of the box, I'm nuking it.
|
||||||
rm -rf examples/plugins/movabletype
|
rm -rf examples/plugins/movabletype
|
||||||
@ -60,7 +78,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%{_bindir}/highlight
|
%{_bindir}/highlight
|
||||||
%{_datadir}/highlight/
|
%{_datadir}/highlight/
|
||||||
%{_mandir}/man1/highlight.1*
|
%{_mandir}/man1/highlight.1*
|
||||||
@ -69,7 +86,16 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%doc ChangeLog AUTHORS README* COPYING TODO examples/
|
%doc ChangeLog AUTHORS README* COPYING TODO examples/
|
||||||
|
|
||||||
|
%files gui
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/highlight-gui
|
||||||
|
%{_datadir}/applications/highlight.desktop
|
||||||
|
%{_datadir}/pixmaps/highlight.xpm
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 20 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.8-1
|
||||||
- New upstream release
|
- New upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user