rpms/texworks/F-13 TeXworks-pro-install.patch, NONE, 1.1 import.log, NONE, 1.1 texworks-0.2.3-README-UTF8.patch, NONE, 1.1 texworks.desktop, NONE, 1.1 texworks.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

李瑞彬 cheeselee at fedoraproject.org
Mon Apr 26 04:49:58 UTC 2010


Author: cheeselee

Update of /cvs/pkgs/rpms/texworks/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv25284/F-13

Modified Files:
	.cvsignore sources 
Added Files:
	TeXworks-pro-install.patch import.log 
	texworks-0.2.3-README-UTF8.patch texworks.desktop 
	texworks.spec 
Log Message:
* Sat Apr 24 2010 Robin Lee <robinlee.sysu at 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 at 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 at gmail.com> - 0.2.3-1
- Initial packaging


TeXworks-pro-install.patch:
 TeXworks.pro |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

--- NEW FILE TeXworks-pro-install.patch ---
--- 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
+}


--- NEW FILE import.log ---
texworks-0_2_3-3_fc13:F-13:texworks-0.2.3-3.fc13.src.rpm:1272257364

texworks-0.2.3-README-UTF8.patch:
 README |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE texworks-0.2.3-README-UTF8.patch ---
--- 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


--- NEW FILE texworks.desktop ---
[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;


--- NEW FILE texworks.spec ---
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 at 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 at 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 at gmail.com> - 0.2.3-1
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/texworks/F-13/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	26 Apr 2010 04:36:38 -0000	1.1
+++ .cvsignore	26 Apr 2010 04:49:58 -0000	1.2
@@ -0,0 +1 @@
+texworks-0.2.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/texworks/F-13/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	26 Apr 2010 04:36:38 -0000	1.1
+++ sources	26 Apr 2010 04:49:58 -0000	1.2
@@ -0,0 +1 @@
+feb87fdb90725ddb75df6956656253fe  texworks-0.2.3.tar.gz



More information about the scm-commits mailing list