2011-06-26 15:27:55 +00:00
|
|
|
%global rev 852
|
2011-03-26 02:42:51 +00:00
|
|
|
%global py_ver %(%{__python} -c "import sys;sys.stdout.write(sys.version[:3])")
|
|
|
|
|
2010-04-26 04:45:33 +00:00
|
|
|
Name: texworks
|
2011-06-26 15:27:55 +00:00
|
|
|
Version: 0.4.2
|
|
|
|
Release: 1%{?dist}
|
2010-04-26 04:45:33 +00:00
|
|
|
Summary: A simple IDE for authoring TeX documents
|
|
|
|
|
|
|
|
|
|
|
|
Group: Applications/Editors
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://tug.org/texworks/
|
2011-03-26 02:42:51 +00:00
|
|
|
Source0: http://texworks.googlecode.com/files/%{name}-%{version}-r%{rev}.tar.gz
|
2010-04-26 04:45:33 +00:00
|
|
|
|
|
|
|
BuildRequires: hunspell-devel
|
|
|
|
BuildRequires: poppler-qt4-devel
|
2011-03-26 02:42:51 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: lua-devel
|
2010-04-26 04:45:33 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2011-03-26 02:42:51 +00:00
|
|
|
BuildRequires: perl
|
2010-04-26 04:45:33 +00:00
|
|
|
|
|
|
|
# Description adopted from Debian with modification
|
|
|
|
%description
|
|
|
|
TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents,
|
|
|
|
with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean,
|
|
|
|
simple interface accessible to casual and non-technical users.
|
|
|
|
|
|
|
|
You may install the texlive-* packages to make this program useful.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-03-26 02:42:51 +00:00
|
|
|
# pkg-config file of Lua
|
|
|
|
perl -pi -e 's/(?<=lua)5\..*//' plugins-src/TWLuaPlugin/TWLuaPlugin.pro
|
|
|
|
# Python version
|
|
|
|
perl -pi -e 's/2\.6/%{py_ver}/' plugins-src/TWPythonPlugin/TWPythonPlugin.pro
|
2010-04-26 04:45:33 +00:00
|
|
|
|
|
|
|
%build
|
2011-03-26 02:42:51 +00:00
|
|
|
# build Lua scripting plugin
|
|
|
|
pushd plugins-src/TWLuaPlugin/
|
2011-06-06 18:30:06 +00:00
|
|
|
%_qt4_qmake TW_PLUGINPATH=%{_libdir}/texworks
|
2011-03-26 02:42:51 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
# build Python scripting plugin
|
|
|
|
pushd plugins-src/TWPythonPlugin/
|
2011-06-06 18:30:06 +00:00
|
|
|
%_qt4_qmake TW_PLUGINPATH=%{_libdir}/texworks
|
2011-03-26 02:42:51 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
# build the main program
|
|
|
|
%_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version} \
|
2011-06-06 18:30:06 +00:00
|
|
|
TW_PLUGINPATH=%{_libdir}/texworks \
|
|
|
|
TW_DICPATH=%{_datadir}/myspell \
|
2011-06-26 15:27:55 +00:00
|
|
|
TW_BUILD_ID=Fedora
|
2010-04-26 04:45:33 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2011-03-26 02:42:51 +00:00
|
|
|
# install Lua scripting plugin
|
|
|
|
pushd plugins-src/TWLuaPlugin/
|
2010-04-26 04:45:33 +00:00
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
2011-03-26 02:42:51 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
# install Python scripting plugin
|
|
|
|
pushd plugins-src/TWPythonPlugin/
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
popd
|
|
|
|
|
|
|
|
# install the main program
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
2010-04-26 04:45:33 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_docdir}/%{name}-%{version}/
|
2011-06-06 18:30:06 +00:00
|
|
|
%doc %{_datadir}/texworks-help/
|
2010-04-26 04:45:33 +00:00
|
|
|
%{_bindir}/%{name}
|
2011-03-26 02:42:51 +00:00
|
|
|
%{_libdir}/%{name}/
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
2010-04-26 04:45:33 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-06-26 15:27:55 +00:00
|
|
|
* Sun Jun 26 2011 Robin Lee <cheeselee@fedoraproject.org> - 0.4.2-1
|
|
|
|
- Update to 0.4.2
|
|
|
|
- Removed texworks-0.4.1-qmake.patch
|
|
|
|
|
2011-06-06 18:30:06 +00:00
|
|
|
* Tue Jun 7 2011 Robin Lee <cheeselee@fedoraproject.org> - 0.4.1-2
|
|
|
|
- Include an upstreamed qmake configuration patch
|
|
|
|
- Fix myspell path
|
|
|
|
- Install the manual to path specified upstream
|
|
|
|
|
2011-05-30 09:03:21 +00:00
|
|
|
* Mon May 30 2011 Robin Lee <cheeselee@fedoraproject.org> - 0.4.1-1
|
|
|
|
- Update to 0.4.1
|
|
|
|
- Obsolete texworks-0.4.0-64bit.patch, since default qmake configuration works
|
|
|
|
with PPC64 now
|
|
|
|
- BR: dbus-devel removed
|
|
|
|
|
2011-05-25 10:13:50 +00:00
|
|
|
* Wed May 25 2011 Caolán McNamara <caolanm@redhat.com> - 0.4.0-3
|
|
|
|
- rebuild for new hunspell
|
|
|
|
|
2011-03-31 07:04:21 +00:00
|
|
|
* Wed Mar 30 2011 Dan Horák <dan[at]danny.cz> - 0.4.0-2
|
|
|
|
- fix build on non-x86 64-bit platforms
|
|
|
|
|
2011-03-26 02:42:51 +00:00
|
|
|
* Fri Mar 25 2011 Robin Lee <cheeselee@fedoraproject.org> - 0.4.0-1
|
|
|
|
- Update to 0.4.0
|
|
|
|
- Use uptream desktop entry file
|
|
|
|
|
2011-02-09 18:57:39 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-04-26 04:45:33 +00:00
|
|
|
* Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
|
|
|
|
- Move to menu category 'Office'
|
|
|
|
- License tag revised to 'GPLv2+'
|
|
|
|
- Initial import to Fedora repositories
|
|
|
|
|
|
|
|
* Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
|
|
|
|
- Fix some strange characters in README
|
|
|
|
- Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
|
|
|
|
problem
|
|
|
|
|
|
|
|
* Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
|
|
|
|
- Initial packaging
|