d5eab8f
Name:		highlight
d5eab8f
Summary:	Universal source code to formatted text converter
c8ae655
Version:	2.10
af3912e
Release:	1%{?dist}
cefe703
d5eab8f
Group:		Development/Tools
b4d3cbe
License:	GPLv2
cefe703
d5eab8f
URL:		http://www.andre-simon.de/
54294fb
Source0:	http://www.andre-simon.de/zip/%{name}-%{version}.tar.gz
7b11279
740211f
BuildRequires:	qt-devel >= 4.4
740211f
BuildRequires:	desktop-file-utils
cefe703
d5eab8f
Buildroot:	%{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
cefe703
cefe703
%description
cefe703
A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX,
cefe703
XSL-FO, XML or ANSI escape sequences with syntax highlighting.
cefe703
It supports several programming and markup languages.
cefe703
Language descriptions are configurable and support regular expressions.
cefe703
The utility offers indentation and reformatting capabilities.
cefe703
It is easily possible to create new language definitions and colour themes.
cefe703
740211f
%package gui
740211f
Summary:	GUI for the hihghlight source code formatter
740211f
Requires:	%{name} = %{version}-%{release}
740211f
740211f
%description gui
740211f
A Qt-based GUI for the highlight source code formatter source.
740211f
cefe703
%prep
54294fb
%setup -q
cefe703
93705bd
# Provides: exclude perl(highlight_pipe) from example
93705bd
cat <<__EOF__ > %{name}-perl.prov
93705bd
#!/bin/sh
93705bd
/usr/lib/rpm/perl.prov \$* | grep -v '^perl(highlight_pipe)$'
93705bd
__EOF__
93705bd
%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-perl.prov
93705bd
chmod +x %{__perl_provides}
93705bd
93705bd
# Requires: exclude perl(IPC::Open3) from example
93705bd
cat <<__EOF__ > %{name}-perl.req
93705bd
#!/bin/sh
93705bd
/usr/lib/rpm/perl.req \$* | grep -v '^perl(IPC::Open3)$'
93705bd
__EOF__
93705bd
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-perl.req
93705bd
chmod +x %{__perl_requires}
93705bd
cefe703
%build
dcff498
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
740211f
make gui %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
cefe703
cefe703
%install
cefe703
rm -rf $RPM_BUILD_ROOT
cefe703
cefe703
make install DESTDIR=$RPM_BUILD_ROOT
cefe703
740211f
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
740211f
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
740211f
740211f
make install-gui DESTDIR=$RPM_BUILD_ROOT
740211f
c8ae655
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/
c8ae655
740211f
desktop-file-install \
740211f
    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
740211f
   highlight.desktop
740211f
740211f
93705bd
# Packaging this example causes lots of incorrect perl provides and 
93705bd
# requires. Since it isn't going to work out of the box, I'm nuking it.
93705bd
rm -rf examples/plugins/movabletype
93705bd
cefe703
%clean
cefe703
rm -rf $RPM_BUILD_ROOT
cefe703
cefe703
%files
cefe703
%defattr(-,root,root,-)
cefe703
%{_bindir}/highlight
cefe703
%{_datadir}/highlight/
d5eab8f
%{_mandir}/man1/highlight.1*
cefe703
4a5cdc1
%config(noreplace) %{_sysconfdir}/highlight/
eb1e139
d5eab8f
%doc ChangeLog AUTHORS README* COPYING TODO examples/
cefe703
740211f
%files gui
740211f
%defattr(-,root,root,-)
740211f
%{_bindir}/highlight-gui
740211f
%{_datadir}/applications/highlight.desktop
740211f
%{_datadir}/pixmaps/highlight.xpm
740211f
cefe703
%changelog
c8ae655
* Mon Jun 29 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.10-1
c8ae655
- New upstream release
c8ae655
af3912e
* Tue May 12 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.9-1
af3912e
- New upstream release
af3912e
740211f
* Mon Apr 20 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.8-3
740211f
- Adding GUI subpackage
740211f
6b08daf
* Mon Apr 20 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.8-1
6b08daf
- New upstream release
6b08daf
6b08daf
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 2.7-3
8780428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8780428
fba58a4
* Tue Feb  3 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.7-2
fba58a4
- Patches for gcc-4.4
fba58a4
98a0a13
* Thu Jan 15 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.7-1
98a0a13
- New upstream release
98a0a13
02bccc7
* Mon Nov  3 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.14-1
02bccc7
- New upstream release
02bccc7
ec111b3
* Tue Oct 14 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.13-2
ec111b3
- Fix SMP build issue
ec111b3
9216787
* Wed Oct  8 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.13-1
9216787
- New upstream release
9216787
93705bd
* Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.6.12-2
93705bd
- don't package broken examples, causes bogus perl provides/requires
93705bd
- don't claim to Provide: perl(highlight_pipe)
93705bd
- don't claim to Requires: perl(IPC::Open3)
93705bd
7b11279
* Mon Aug 18 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.12-1
7b11279
- New upstream release
9216787
- Fix for gcc-4.3 issue on highlight-2.6.13
7b11279
8541fa0
* Thu Jul 17 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.11-1
8541fa0
- New upstream release
8541fa0
c18aa89
* Mon May 12 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.10-1
c18aa89
- New upstream release
c18aa89
83fdb77
* Mon Mar 31 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.9-2
3ca49b8
- New upstream release
3ca49b8
dbb304b
* Sun Feb 10 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.8-1
dbb304b
- New upstream release
dbb304b
4a9118d
* Mon Jan 21 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.7-2
dcff498
- New upstream release
dcff498
- Fix gcc-4.3 issues
dcff498
6324050
* Tue Dec 11 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.6-1
6324050
- New upstream release
6324050
fcab115
* Mon Oct 29 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.5-1
fcab115
- New upstream release
fcab115
6a5425b
* Sun Sep 16 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.4-1
6a5425b
- New upstream release
6a5425b
17ef6d4
* Tue Sep 11 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.3-1
17ef6d4
- New upstream release
17ef6d4
31f3131
* Thu Aug  9 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.2-1
31f3131
- New upstream release
31f3131
b4d3cbe
* Wed Aug  8 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.1-2
b4d3cbe
- Changing license tag
b4d3cbe
4a5cdc1
* Tue Jul 10 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.1-1
4a5cdc1
- New upstream release
4a5cdc1
4a5cdc1
* Tue Feb  6 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.4.8-2
44b9fb9
- fir rpmopt bug (#227292)
44b9fb9
95e88aa
* Mon Oct 23 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.8-1
95e88aa
- New upstream release
95e88aa
55b244d
* Sun Sep  3 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.7-2
55b244d
- Rebuilt for FC-6
55b244d
7d51262
* Tue Jul  4 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.7-1
7d51262
- New upstream release
7d51262
5561081
* Wed Mar 22 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.5-2
4b114ce
- New upstream relase
5561081
- Add gcc41 patch
4b114ce
d3a5e01
* Wed Mar 15 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.4-2
4b114ce
- Add fixcodegen patch from Eric Hopper #184245
d3a5e01
f3a70fa
* Sun Mar 12 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.4-1
f3a70fa
- New upstream release
f3a70fa
- Adapt rpmopt patch to new upstream release
f3a70fa
08154aa
* Sun Feb 12 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.3-2
08154aa
- Rebuilt for FC5
08154aa
54294fb
* Tue Nov  1 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.3-1
54294fb
- New upstream release
54294fb
a290091
* Tue Oct 11 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.2-3
a290091
- Fix typo in highlight-2.4-rpmoptflags.patch
a290091
23853a5
* Mon Oct 10 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.2-2
23853a5
- Use -DUSE_FN_MATCH
23853a5
23853a5
* Sun Oct  9 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.2-1
27cdf35
- New upstream release
27cdf35
78b66cf
* Wed Aug 10 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-6
78b66cf
- Rebuilt for FC-4/FC-3
78b66cf
b0de550
* Tue Aug  9 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4-1-5
b0de550
- Fix #165302
b0de550
eb1e139
* Mon Aug  8 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-4
eb1e139
- Move extension.conf and scriptre.conf to /etc/highlight
eb1e139
cefe703
* Wed Aug  3 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-3
cefe703
- Remove leading 'A' from summary line
cefe703
cefe703
* Wed Aug  3 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-2
cefe703
- Add rpmoptflags patch from Tom Callaway
cefe703
cefe703
* Wed Aug  3 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-1
cefe703
- Change versioning schema
cefe703
- Add suggested changes from Oliver
cefe703
cefe703
* Sun Jul 24 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4-1
cefe703
- Initial build
cefe703