Browse Source

new upstream release

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9582 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 9 years ago
parent
commit
8593039766
1 changed files with 27 additions and 10 deletions
  1. 27 10
      t/texworks/texworks-vl.spec

+ 27 - 10
t/texworks/texworks-vl.spec

@@ -1,4 +1,4 @@
-%global svnrevision 1302
+%global gitcommit 046b6bb
 %global templates_japanese 0
 %global templates_japanese_version 20110626
 
@@ -6,28 +6,28 @@
 
 Name:           texworks
 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(ja):    TeX ドキュメント制作のための総合環境
 
 Group:          Applications/Editors
 License:        GPLv2+
 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
 Source1:        %{name}.desktop
 
 ## vine
-Source10:       texworks-snapshot.sh
 %if %{templates_japanese}
 Source50:       texworks-templates-japanese-%{templates_japanese_version}.tar.xz
 %endif
 
 ## 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:  hunspell-devel
 BuildRequires:  dbus-devel
@@ -61,6 +61,7 @@ TeXworks を利用するためには、TeX 環境が必要です。
 %setup -q
 
 %patch100 -p1 -b .vine
+%patch101 -p1 -b .vine
 
 ## added some Japanese templates
 %if %{templates_japanese}
@@ -70,13 +71,25 @@ patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version
 %endif
 
 %build
-%_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
+%cmake . \
+  -DWITH_PYTHON=OFF \
+  -DWITH_LUA=OFF \
+  ;
 %__make %{?_smp_mflags}
 
 
 %install
 %__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
@@ -90,13 +103,17 @@ update-desktop-database &> /dev/null || :
 
 %files
 %defattr(-,root,root,-)
-%{_docdir}/%{name}-%{version}/
+%doc COPYING NEWS README.md
 %{_bindir}/%{name}
 %{_datadir}/applications/%{name}.desktop
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/pixmaps/*
 %{_mandir}/man1/texworks.1.gz
 
 %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
 - dropped R/BR: texlive