osc copypac from project:Publishing package:texworks revision:6
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/texworks?expand=0&rev=1
This commit is contained in:
82
texworks.spec
Normal file
82
texworks.spec
Normal file
@@ -0,0 +1,82 @@
|
||||
#
|
||||
# spec file for package TeXworks
|
||||
#
|
||||
# Copyright 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2007-09 by Jonathan Kew.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
#
|
||||
Name: texworks
|
||||
Version: 0.4.0
|
||||
Release: 1
|
||||
License: GPLv2+
|
||||
Summary: TeXshop-like TeX Editor
|
||||
Url: http://www.tug.org/texworks/
|
||||
Group: Productivity/Publishing/TeX/Frontends
|
||||
Source0: texworks-%{version}.tar.bz2
|
||||
BuildRequires: dbus-1-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: hunspell-devel
|
||||
BuildRequires: libpoppler-devel
|
||||
BuildRequires: libpoppler-qt4-devel
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: update-desktop-files
|
||||
Requires: dbus-1
|
||||
Requires: hunspell
|
||||
Requires: poppler-tools
|
||||
Requires: texlive-latex
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
The TeXworks project is an effort to build a simple TeX front-end
|
||||
program (working environment) that will be available for all today’s
|
||||
major desktop operating systems—in particular, MS Windows (XP and
|
||||
Vista), typical GNU/Linux distros and other X11-based systems, and
|
||||
Mac OS X. It is deliberately modeled on Dick Koch’s award-winning
|
||||
TeXShop for Mac OS X, which is credited with a resurgence of TeX
|
||||
usage on the Mac platform.
|
||||
|
||||
%prep
|
||||
%setup -q -n texworks-%{version}
|
||||
|
||||
%build
|
||||
qmake -unix 'INSTALL_PREFIX=%{_prefix}' TeXworks.pro
|
||||
|
||||
%install
|
||||
make INSTALL_ROOT=%{buildroot} install
|
||||
%suse_update_desktop_file texworks Publishing WordProcessor
|
||||
rm -rf %{buildroot}%{_datadir}/doc/texworks
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
%if 0%{?suse_version} > 1130
|
||||
%desktop_database_post
|
||||
%else
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if 0%{?suse_version} > 1130
|
||||
%desktop_database_postun
|
||||
%else
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING README
|
||||
%{_bindir}/texworks
|
||||
%{_datadir}/applications/texworks.desktop
|
||||
%{_datadir}/pixmaps/*.png
|
||||
%{_mandir}/man1/texworks.1.*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user