|
@@ -1,4 +1,4 @@
|
|
-%global svnrevision 1302
|
|
|
|
|
|
+%global gitcommit 046b6bb
|
|
%global templates_japanese 0
|
|
%global templates_japanese 0
|
|
%global templates_japanese_version 20110626
|
|
%global templates_japanese_version 20110626
|
|
|
|
|
|
@@ -6,28 +6,28 @@
|
|
|
|
|
|
Name: texworks
|
|
Name: texworks
|
|
Version: 0.5
|
|
Version: 0.5
|
|
-Release: 4%{?svnrevision:.svn%svnrevision}%{?_dist_release}
|
|
|
|
|
|
+Release: 5%{?gitcommit:.git%gitcommit}%{?_dist_release}
|
|
Summary: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
|
|
Summary: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
|
|
Summary(ja): TeX ドキュメント制作のための総合環境
|
|
Summary(ja): TeX ドキュメント制作のための総合環境
|
|
|
|
|
|
Group: Applications/Editors
|
|
Group: Applications/Editors
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
URL: http://tug.org/texworks/
|
|
URL: http://tug.org/texworks/
|
|
-Source0: http://texworks.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:xz}%{!?svnrevision:gz}
|
|
|
|
-#Source0: http://texworks.googlecode.com/files/%{name}-%{version}-r858.tar.gz
|
|
|
|
|
|
+Source0: %{name}-%{version}%{?gitcommit:.git%gitcommit}.tar.%{?gitcommit:xz}%{!?gitcommit:gz}
|
|
|
|
+
|
|
# Desktop file adopted from Debian with modification
|
|
# Desktop file adopted from Debian with modification
|
|
Source1: %{name}.desktop
|
|
Source1: %{name}.desktop
|
|
|
|
|
|
## vine
|
|
## vine
|
|
-Source10: texworks-snapshot.sh
|
|
|
|
%if %{templates_japanese}
|
|
%if %{templates_japanese}
|
|
Source50: texworks-templates-japanese-%{templates_japanese_version}.tar.xz
|
|
Source50: texworks-templates-japanese-%{templates_japanese_version}.tar.xz
|
|
%endif
|
|
%endif
|
|
|
|
|
|
## vine
|
|
## vine
|
|
-Patch100: texworks-0.5-r1302-ptex2pdf.patch
|
|
|
|
-
|
|
|
|
|
|
+Patch101: texworks-0.4.6-addDefaultBinPaths.patch
|
|
|
|
+Patch100: texworks-0.4.6-ptex2pdf.patch
|
|
|
|
|
|
|
|
+BuildRequires: cmake >= 2.8.6
|
|
BuildRequires: lua-devel
|
|
BuildRequires: lua-devel
|
|
BuildRequires: hunspell-devel
|
|
BuildRequires: hunspell-devel
|
|
BuildRequires: dbus-devel
|
|
BuildRequires: dbus-devel
|
|
@@ -61,6 +61,7 @@ TeXworks を利用するためには、TeX 環境が必要です。
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
%patch100 -p1 -b .vine
|
|
%patch100 -p1 -b .vine
|
|
|
|
+%patch101 -p1 -b .vine
|
|
|
|
|
|
## added some Japanese templates
|
|
## added some Japanese templates
|
|
%if %{templates_japanese}
|
|
%if %{templates_japanese}
|
|
@@ -70,13 +71,25 @@ patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%build
|
|
%build
|
|
-%_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
|
|
|
|
|
|
+%cmake . \
|
|
|
|
+ -DWITH_PYTHON=OFF \
|
|
|
|
+ -DWITH_LUA=OFF \
|
|
|
|
+ ;
|
|
%__make %{?_smp_mflags}
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
%__rm -rf %{buildroot}
|
|
%__rm -rf %{buildroot}
|
|
-%__make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
+%__make install DESTDIR=%{buildroot}
|
|
|
|
+
|
|
|
|
+## install document files
|
|
|
|
+%__mkdir_p %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
|
+
|
|
|
|
+## drop some files
|
|
|
|
+%__rm -f %{buildroot}/usr/lib/texworks/libTWLuaPlugin.so
|
|
|
|
+%__rm -f %{buildroot}%{_datadir}/doc/texworks/COPYING
|
|
|
|
+%__rm -f %{buildroot}%{_datadir}/doc/texworks/NEWS
|
|
|
|
+%__rm -f %{buildroot}%{_datadir}/doc/texworks/README.md
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -90,13 +103,17 @@ update-desktop-database &> /dev/null || :
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%{_docdir}/%{name}-%{version}/
|
|
|
|
|
|
+%doc COPYING NEWS README.md
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
+%{_datadir}/appdata/%{name}.appdata.xml
|
|
%{_datadir}/pixmaps/*
|
|
%{_datadir}/pixmaps/*
|
|
%{_mandir}/man1/texworks.1.gz
|
|
%{_mandir}/man1/texworks.1.gz
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu May 28 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-5.git046b6bb
|
|
|
|
+- source snapshot git046b6bb based on 0.4.6
|
|
|
|
+
|
|
* Sat Nov 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302
|
|
* Sat Nov 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302
|
|
- dropped R/BR: texlive
|
|
- dropped R/BR: texlive
|
|
|
|
|