Compare commits

...

3 Commits
rawhide ... f11

Author SHA1 Message Date
Fedora Release Engineering 4825ad162d dist-git conversion 2010-07-29 14:08:09 +00:00
cheeselee b125c40324 - 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
2010-04-26 04:55:23 +00:00
Kevin Fenzi 3ed19aadc1 Initialize branch F-11 for texworks 2010-04-26 04:36:42 +00:00
8 changed files with 139 additions and 21 deletions

View File

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
texworks-0.2.3.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: texworks
# $Id$
NAME := texworks
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -0,0 +1,32 @@
--- texworks-0.2.3/TeXworks.pro 2009-10-09 02:03:52.000000000 +0800
+++ texworks-0.2.3.new/TeXworks.pro 2010-04-24 10:36:17.876647486 +0800
@@ -75,6 +75,8 @@
# Qt/dbus config on Debian is broken, hence the lines below
LIBS += -lQtDBus
INCLUDEPATH += /usr/include/qt4/QtDBus
+ # need for change of DSO linking on Fedora
+ LIBS += -lz
}
openbsd-g++ {
@@ -172,3 +174,20 @@
trans/TeXworks_tr.ts \
trans/TeXworks_zh_CN.ts
+unix:!macx { # installation on Unix-ish platforms
+ isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr/local
+ isEmpty(BIN_DIR):BIN_DIR = $$INSTALL_PREFIX/bin
+ isEmpty(DATA_DIR):DATA_DIR = $$INSTALL_PREFIX/share
+ isEmpty(TRANSLATIONS_DIR):TRANSLATIONS_DIR = $$DATA_DIR/texworks/translations
+ isEmpty(DOCS_DIR):DOCS_DIR = $$DATA_DIR/doc/texworks
+ isEmpty(ICON_DIR):ICON_DIR = $$DATA_DIR/pixmaps
+
+ target.path = $$BIN_DIR
+ documentation.files = COPYING README
+ documentation.path = $$DOCS_DIR
+ translation.files = trans/TeXworks_*.qm
+ translation.path = $$TRANSLATIONS_DIR
+ icon.files = res/images/TeXworks.png
+ icon.path = $$ICON_DIR
+ INSTALLS = target documentation translation icon
+}

View File

@ -0,0 +1 @@
feb87fdb90725ddb75df6956656253fe texworks-0.2.3.tar.gz

View File

@ -0,0 +1,11 @@
--- README 2009-10-02 20:07:47.000000000 +0800
+++ README.new 2010-04-22 17:12:40.310582005 +0800
@@ -5,7 +5,7 @@
Distributed under the terms of the GNU General Public License, version 2 or (at your option) any later version.
See the file COPYING for details.
-The SyncTeX code is copyright (c) 2008, 2009 by JŽr™me Laurens; see synctex_parser.c for license details.
+The SyncTeX code is copyright (c) 2008, 2009 by Jérôme Laurens; see synctex_parser.c for license details.
Building TeXworks

12
texworks.desktop Normal file
View File

@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Name=TeXworks
GenericName=Simple TeX IDE
Comment=A simple IDE for authoring TeX documents
Exec=texworks
Icon=TeXworks
Terminal=false
Type=Application
StartupNotify=false
Categories=Qt;Office;
MimeType=application/x-latex;text/x-bibtex;text/x-tex;

82
texworks.spec Normal file
View File

@ -0,0 +1,82 @@
Name: texworks
Version: 0.2.3
Release: 3%{?dist}
Summary: A simple IDE for authoring TeX documents
Group: Applications/Editors
License: GPLv2+
URL: http://tug.org/texworks/
Source0: http://texworks.googlecode.com/files/%{name}-%{version}.tar.gz
# Desktop file adopted from Debian with modification
Source1: %{name}.desktop
# Fix some strange characters in README
# applied in upstream svn629
Patch0: texworks-0.2.3-README-UTF8.patch
# Use qmake mechanism to install files and fix DSO linking problem
# DSO linking related part applied in upstream svn637
Patch1: TeXworks-pro-install.patch
BuildRequires: hunspell-devel
BuildRequires: dbus-devel
BuildRequires: poppler-qt4-devel
BuildRequires: desktop-file-utils
# 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
%patch0 -p0 -b .fix
%patch1 -p1 -b .fix
%build
%_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %SOURCE1
%clean
rm -rf %{buildroot}
%post
update-desktop-database &> /dev/null || :
%postun
update-desktop-database &> /dev/null || :
%files
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}/
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%changelog
* 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