|
@@ -1,12 +1,10 @@
|
|
|
-%global gitcommit 046b6bb
|
|
|
-%global templates_japanese 0
|
|
|
-%global templates_japanese_version 20110626
|
|
|
+%global gitcommit 905382e
|
|
|
|
|
|
## Summary/Description adopted from Debian with modification
|
|
|
|
|
|
Name: texworks
|
|
|
Version: 0.5
|
|
|
-Release: 5%{?gitcommit:.git%gitcommit}%{?_dist_release}
|
|
|
+Release: 7%{?gitcommit:.git%gitcommit}%{?_dist_release}
|
|
|
Summary: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
|
|
|
Summary(ja): TeX ドキュメント制作のための総合環境
|
|
|
|
|
@@ -18,20 +16,16 @@ Source0: %{name}-%{version}%{?gitcommit:.git%gitcommit}.tar.%{?gitcommit:
|
|
|
# Desktop file adopted from Debian with modification
|
|
|
Source1: %{name}.desktop
|
|
|
|
|
|
-## vine
|
|
|
-%if %{templates_japanese}
|
|
|
-Source50: texworks-templates-japanese-%{templates_japanese_version}.tar.xz
|
|
|
-%endif
|
|
|
-
|
|
|
## vine
|
|
|
Patch101: texworks-0.4.6-addDefaultBinPaths.patch
|
|
|
-Patch100: texworks-0.4.6-ptex2pdf.patch
|
|
|
+Patch100: texworks-0.5-ptex2pdf.patch
|
|
|
|
|
|
BuildRequires: cmake >= 2.8.6
|
|
|
BuildRequires: lua-devel
|
|
|
BuildRequires: hunspell-devel
|
|
|
BuildRequires: dbus-devel
|
|
|
BuildRequires: poppler-qt4-devel
|
|
|
+# BuildRequires: python-devel
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
@@ -58,23 +52,13 @@ TeXworks を利用するためには、TeX 環境が必要です。
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q
|
|
|
+%setup -qn %{name}-%{version}%{?gitcommit:.git%gitcommit}
|
|
|
|
|
|
%patch100 -p1 -b .vine
|
|
|
%patch101 -p1 -b .vine
|
|
|
|
|
|
-## added some Japanese templates
|
|
|
-%if %{templates_japanese}
|
|
|
-%__tar xf %{SOURCE50}
|
|
|
-%__cp -ra "texworks-templates-japanese-%{templates_japanese_version}/Japanese documents" res/resfiles/templates/ || exit 1
|
|
|
-patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version}/texworks-0.4.1-templates-japanese.patch || exit 1
|
|
|
-%endif
|
|
|
-
|
|
|
%build
|
|
|
-%cmake . \
|
|
|
- -DWITH_PYTHON=OFF \
|
|
|
- -DWITH_LUA=OFF \
|
|
|
- ;
|
|
|
+%cmake .
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
|
|
@@ -86,7 +70,6 @@ patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version
|
|
|
%__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
|
|
@@ -105,12 +88,19 @@ update-desktop-database &> /dev/null || :
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc COPYING NEWS README.md
|
|
|
%{_bindir}/%{name}
|
|
|
+%{_usr}/lib/%{name}/lib*.so
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
%{_datadir}/pixmaps/*
|
|
|
%{_mandir}/man1/texworks.1.gz
|
|
|
|
|
|
%changelog
|
|
|
+* Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-7.git905382e
|
|
|
+- rebuild with poppler-0.43.0
|
|
|
+
|
|
|
+* Sun Jan 24 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-6.git905382e
|
|
|
+- source snapshot git905382e
|
|
|
+
|
|
|
* Thu May 28 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-5.git046b6bb
|
|
|
- source snapshot git046b6bb based on 0.4.6
|
|
|
|