2010-07-15 17:45:48 +00:00
|
|
|
%global betaver 2
|
|
|
|
%global bdir %{name}-%{version}-beta%{betaver}
|
|
|
|
|
2005-08-04 15:42:26 +00:00
|
|
|
Name: highlight
|
|
|
|
Summary: Universal source code to formatted text converter
|
2010-07-15 17:45:48 +00:00
|
|
|
|
2010-06-26 15:32:44 +00:00
|
|
|
Version: 3.1
|
2010-07-15 17:45:48 +00:00
|
|
|
Release: 0.2%{?dist}
|
2005-08-04 15:38:30 +00:00
|
|
|
|
2005-08-04 15:42:26 +00:00
|
|
|
Group: Development/Tools
|
2009-06-29 16:38:32 +00:00
|
|
|
License: GPLv3
|
2005-08-04 15:38:30 +00:00
|
|
|
|
2005-08-04 15:42:26 +00:00
|
|
|
URL: http://www.andre-simon.de/
|
2010-07-15 17:45:48 +00:00
|
|
|
Source0: http://www.andre-simon.de/zip/%{name}-%{version}-beta%{betaver}.tar.bz2
|
2008-09-07 20:06:06 +00:00
|
|
|
|
2009-04-20 19:46:40 +00:00
|
|
|
BuildRequires: qt-devel >= 4.4
|
2010-06-10 15:58:29 +00:00
|
|
|
BuildRequires: lua-devel, boost-devel
|
2009-04-20 19:46:40 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2005-08-04 15:38:30 +00:00
|
|
|
|
2005-08-04 15:42:26 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
2005-08-04 15:38:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX,
|
|
|
|
XSL-FO, XML or ANSI escape sequences with syntax highlighting.
|
|
|
|
It supports several programming and markup languages.
|
|
|
|
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.
|
|
|
|
|
2009-04-20 19:46:40 +00:00
|
|
|
%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.
|
|
|
|
|
2005-08-04 15:38:30 +00:00
|
|
|
%prep
|
2010-06-10 15:59:39 +00:00
|
|
|
|
2010-07-15 17:45:48 +00:00
|
|
|
%setup -q -n %{bdir}
|
2005-08-04 15:38:30 +00:00
|
|
|
|
2008-09-11 18:31:02 +00:00
|
|
|
# Provides: exclude perl(highlight_pipe) from example
|
|
|
|
cat <<__EOF__ > %{name}-perl.prov
|
|
|
|
#!/bin/sh
|
|
|
|
/usr/lib/rpm/perl.prov \$* | grep -v '^perl(highlight_pipe)$'
|
|
|
|
__EOF__
|
2010-07-15 17:45:48 +00:00
|
|
|
%define __perl_provides %{_builddir}/%{bdir}/%{name}-perl.prov
|
2008-09-11 18:31:02 +00:00
|
|
|
chmod +x %{__perl_provides}
|
|
|
|
|
2010-06-12 18:57:55 +00:00
|
|
|
# Requires: exclude all perl related req. from example
|
2008-09-11 18:31:02 +00:00
|
|
|
cat <<__EOF__ > %{name}-perl.req
|
|
|
|
#!/bin/sh
|
2010-06-12 18:57:55 +00:00
|
|
|
/usr/lib/rpm/perl.req \$* | grep -v '^perl('
|
2008-09-11 18:31:02 +00:00
|
|
|
__EOF__
|
2010-07-15 17:45:48 +00:00
|
|
|
%define __perl_requires %{_builddir}/%{bdir}/%{name}-perl.req
|
2008-09-11 18:31:02 +00:00
|
|
|
chmod +x %{__perl_requires}
|
|
|
|
|
2005-08-04 15:38:30 +00:00
|
|
|
%build
|
2008-01-21 17:31:13 +00:00
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=
|
2010-01-31 19:32:58 +00:00
|
|
|
rm -rf src/gui-qt/moc*
|
2010-01-28 22:12:03 +00:00
|
|
|
make gui %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
QMAKE="qmake-qt4" \
|
|
|
|
LDFLAGS=
|
2005-08-04 15:38:30 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2009-04-20 19:46:40 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
|
|
|
|
|
|
|
make install-gui DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2009-06-29 16:25:31 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/
|
|
|
|
|
2009-04-20 19:46:40 +00:00
|
|
|
desktop-file-install \
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
|
highlight.desktop
|
|
|
|
|
|
|
|
|
2008-09-11 18:31:02 +00:00
|
|
|
# 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
|
|
|
|
|
2005-08-04 15:38:30 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/highlight
|
|
|
|
%{_datadir}/highlight/
|
2005-08-04 15:42:26 +00:00
|
|
|
%{_mandir}/man1/highlight.1*
|
2005-08-04 15:38:30 +00:00
|
|
|
|
2007-07-10 18:38:16 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/highlight/
|
2005-08-08 18:18:05 +00:00
|
|
|
|
2005-08-04 15:42:26 +00:00
|
|
|
%doc ChangeLog AUTHORS README* COPYING TODO examples/
|
2005-08-04 15:38:30 +00:00
|
|
|
|
2009-04-20 19:46:40 +00:00
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/highlight-gui
|
|
|
|
%{_datadir}/applications/highlight.desktop
|
|
|
|
%{_datadir}/pixmaps/highlight.xpm
|
|
|
|
|
2005-08-04 15:38:30 +00:00
|
|
|
%changelog
|
2010-07-15 17:45:48 +00:00
|
|
|
* Thu Jul 15 2010 Jochen Schmitt <Jochen herr-schmitt de> 3.1-0.2
|
|
|
|
- New upstream release
|
|
|
|
|
2010-06-26 15:32:44 +00:00
|
|
|
* Sat Jun 26 2010 Jochen Schmitt <Jochen herr-schmitt de> 3.1-0.1
|
|
|
|
- New upstream release
|
|
|
|
|
2010-06-12 18:57:55 +00:00
|
|
|
* Sat Jun 12 2010 Jochen Schmitt <Jochen herr-schmitt de> 3.0-0.2
|
|
|
|
- Exclude all perl related req. caused by the examples
|
|
|
|
|
2010-06-10 15:58:29 +00:00
|
|
|
* Thu Jun 10 2010 Jochen Schmitt <Jochen herr-schmitt de> 3.0-0.1
|
|
|
|
- New upstream release (beta)
|
|
|
|
|
|
|
|
* Mon Apr 5 2010 Jochen Schmitt <Jochen herr-schmitt de> 2.16-1
|
2010-04-05 14:45:06 +00:00
|
|
|
- New upstream release
|
|
|
|
|
2010-03-14 20:14:52 +00:00
|
|
|
* Sun Mar 14 2010 Jochen Schmitt <Jochen herr-schmitt de> 2.15-2
|
|
|
|
- Add StartupNotify=true into desktop file
|
|
|
|
|
2010-03-01 20:47:17 +00:00
|
|
|
* Mon Mar 1 2010 Jochen Schmitt <Jochen herr-schmitt de> 2.15-1
|
|
|
|
- New upstream release
|
|
|
|
|
2010-01-28 22:12:03 +00:00
|
|
|
* Thu Jan 28 2010 Jochen Schmitt <Jochen herr-schmitt de> 2.14-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-10-14 17:25:22 +00:00
|
|
|
* Wed Oct 14 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.13-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-09-10 20:56:15 +00:00
|
|
|
* Thu Sep 10 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.12-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> 2.10-4
|
2009-08-11 12:02:45 +00:00
|
|
|
- Use bzipped upstream tarball.
|
|
|
|
|
2009-07-25 02:09:50 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-29 16:38:32 +00:00
|
|
|
* Mon Jun 29 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.10-2
|
|
|
|
- License was changed go GPLv3 from upstream
|
|
|
|
|
2009-06-29 16:25:31 +00:00
|
|
|
* Mon Jun 29 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.10-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-05-12 16:46:20 +00:00
|
|
|
* Tue May 12 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.9-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-04-20 19:46:40 +00:00
|
|
|
* Mon Apr 20 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.8-3
|
|
|
|
- Adding GUI subpackage
|
|
|
|
|
2009-04-20 17:05:31 +00:00
|
|
|
* Mon Apr 20 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.8-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 2.7-3
|
2009-02-25 03:49:25 +00:00
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-03 16:27:52 +00:00
|
|
|
* Tue Feb 3 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.7-2
|
|
|
|
- Patches for gcc-4.4
|
|
|
|
|
2009-01-15 18:39:52 +00:00
|
|
|
* Thu Jan 15 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.7-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-11-03 18:55:15 +00:00
|
|
|
* Mon Nov 3 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.14-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-10-14 15:34:48 +00:00
|
|
|
* Tue Oct 14 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.13-2
|
|
|
|
- Fix SMP build issue
|
|
|
|
|
2008-10-08 18:19:22 +00:00
|
|
|
* Wed Oct 8 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.13-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-09-11 18:31:02 +00:00
|
|
|
* Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.6.12-2
|
|
|
|
- don't package broken examples, causes bogus perl provides/requires
|
|
|
|
- don't claim to Provide: perl(highlight_pipe)
|
|
|
|
- don't claim to Requires: perl(IPC::Open3)
|
|
|
|
|
2008-09-07 20:06:06 +00:00
|
|
|
* Mon Aug 18 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.12-1
|
|
|
|
- New upstream release
|
2008-10-08 18:19:22 +00:00
|
|
|
- Fix for gcc-4.3 issue on highlight-2.6.13
|
2008-09-07 20:06:06 +00:00
|
|
|
|
2008-07-17 15:31:25 +00:00
|
|
|
* Thu Jul 17 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.11-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-05-12 18:18:39 +00:00
|
|
|
* Mon May 12 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.10-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-03-31 18:46:45 +00:00
|
|
|
* Mon Mar 31 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.9-2
|
2008-03-31 18:43:37 +00:00
|
|
|
- New upstream release
|
|
|
|
|
2008-02-10 19:51:59 +00:00
|
|
|
* Sun Feb 10 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.8-1
|
|
|
|
- New upstream release
|
|
|
|
|
2008-01-21 17:38:24 +00:00
|
|
|
* Mon Jan 21 2008 Jochen Schmitt <Jochen herr-schmitt de> 2.6.7-2
|
2008-01-21 17:31:13 +00:00
|
|
|
- New upstream release
|
|
|
|
- Fix gcc-4.3 issues
|
|
|
|
|
2007-12-11 19:34:04 +00:00
|
|
|
* Tue Dec 11 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2007-10-29 19:37:19 +00:00
|
|
|
* Mon Oct 29 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.5-1
|
|
|
|
- New upstream release
|
|
|
|
|
2007-09-16 19:17:22 +00:00
|
|
|
* Sun Sep 16 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2007-09-11 19:29:48 +00:00
|
|
|
* Tue Sep 11 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.3-1
|
|
|
|
- New upstream release
|
|
|
|
|
2007-08-09 15:20:43 +00:00
|
|
|
* Thu Aug 9 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2007-08-08 18:01:42 +00:00
|
|
|
* Wed Aug 8 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.1-2
|
|
|
|
- Changing license tag
|
|
|
|
|
2007-07-10 18:38:16 +00:00
|
|
|
* Tue Jul 10 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.6.1-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Tue Feb 6 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.4.8-2
|
2007-02-06 16:19:17 +00:00
|
|
|
- fir rpmopt bug (#227292)
|
|
|
|
|
2006-10-24 17:29:10 +00:00
|
|
|
* Mon Oct 23 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.8-1
|
|
|
|
- New upstream release
|
|
|
|
|
2006-09-03 19:29:02 +00:00
|
|
|
* Sun Sep 3 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.7-2
|
|
|
|
- Rebuilt for FC-6
|
|
|
|
|
2006-07-04 19:00:09 +00:00
|
|
|
* Tue Jul 4 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.7-1
|
|
|
|
- New upstream release
|
|
|
|
|
2006-03-22 17:22:58 +00:00
|
|
|
* Wed Mar 22 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.5-2
|
2006-03-22 16:31:13 +00:00
|
|
|
- New upstream relase
|
2006-03-22 17:22:58 +00:00
|
|
|
- Add gcc41 patch
|
2006-03-22 16:31:13 +00:00
|
|
|
|
2006-03-15 16:28:28 +00:00
|
|
|
* Wed Mar 15 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.4-2
|
2006-03-22 16:31:13 +00:00
|
|
|
- Add fixcodegen patch from Eric Hopper #184245
|
2006-03-15 16:28:28 +00:00
|
|
|
|
2006-03-12 20:09:47 +00:00
|
|
|
* Sun Mar 12 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.4-1
|
|
|
|
- New upstream release
|
|
|
|
- Adapt rpmopt patch to new upstream release
|
|
|
|
|
2006-02-12 19:21:35 +00:00
|
|
|
* Sun Feb 12 2006 Jochen Schmitt <Jochen herr-schmitt de> 2.4.3-2
|
|
|
|
- Rebuilt for FC5
|
|
|
|
|
2005-11-01 15:55:32 +00:00
|
|
|
* Tue Nov 1 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.3-1
|
|
|
|
- New upstream release
|
|
|
|
|
2005-10-11 17:16:37 +00:00
|
|
|
* Tue Oct 11 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.2-3
|
|
|
|
- Fix typo in highlight-2.4-rpmoptflags.patch
|
|
|
|
|
2005-10-10 17:05:39 +00:00
|
|
|
* Mon Oct 10 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.2-2
|
|
|
|
- Use -DUSE_FN_MATCH
|
|
|
|
|
|
|
|
* Sun Oct 9 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.2-1
|
2005-10-09 20:32:57 +00:00
|
|
|
- New upstream release
|
|
|
|
|
2005-08-10 19:31:21 +00:00
|
|
|
* Wed Aug 10 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-6
|
|
|
|
- Rebuilt for FC-4/FC-3
|
|
|
|
|
2005-08-09 14:41:22 +00:00
|
|
|
* Tue Aug 9 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4-1-5
|
|
|
|
- Fix #165302
|
|
|
|
|
2005-08-08 18:18:05 +00:00
|
|
|
* Mon Aug 8 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-4
|
|
|
|
- Move extension.conf and scriptre.conf to /etc/highlight
|
|
|
|
|
2005-08-04 15:38:30 +00:00
|
|
|
* Wed Aug 3 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-3
|
|
|
|
- Remove leading 'A' from summary line
|
|
|
|
|
|
|
|
* Wed Aug 3 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-2
|
|
|
|
- Add rpmoptflags patch from Tom Callaway
|
|
|
|
|
|
|
|
* Wed Aug 3 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4.1-1
|
|
|
|
- Change versioning schema
|
|
|
|
- Add suggested changes from Oliver
|
|
|
|
|
|
|
|
* Sun Jul 24 2005 Jochen Schmitt <Jochen herr-schmitt de> 2.4-1
|
|
|
|
- Initial build
|
|
|
|
|