Accepting request 68193 from Publishing
Accepted submit request 68193 from user coolo OBS-URL: https://build.opensuse.org/request/show/68193 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/texworks?expand=0&rev=2
This commit is contained in:
parent
5c3accf055
commit
1a1084349f
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 19 19:26:10 UTC 2011 - badshah400@gmail.com
|
||||
|
||||
- Correct pkgconfig dependency for lua plugin package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 16 09:14:15 UTC 2011 - badshah400@gmail.com
|
||||
|
||||
- Split out python scripting and lua scripting plugins in
|
||||
respective subpackages
|
||||
- Correctly point to myspell dictionaries, this enables the
|
||||
dictionaries in texworks' spell-checker (thanks to Mike)
|
||||
- Install the user-manual (thanks to Mike)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 21 19:11:33 UTC 2011 - badshah400@gmail.com
|
||||
|
||||
|
@ -28,6 +28,8 @@ BuildRequires: libpoppler-devel
|
||||
BuildRequires: libpoppler-qt4-devel
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: lua-devel
|
||||
Requires: dbus-1
|
||||
Requires: hunspell
|
||||
Requires: poppler-tools
|
||||
@ -43,16 +45,83 @@ Mac OS X. It is deliberately modeled on Dick Koch’s award-winning
|
||||
TeXShop for Mac OS X, which is credited with a resurgence of TeX
|
||||
usage on the Mac platform.
|
||||
|
||||
%package plugin-python
|
||||
Summary: Plugins to add python scripting to texworks
|
||||
Group: Development/Libraries/Python
|
||||
Requires: python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description plugin-python
|
||||
The TeXworks project is an effort to build a simple TeX front-end
|
||||
program (working environment) that will be available for all today’s
|
||||
major desktop operating systems—in particular, MS Windows (XP and
|
||||
Vista), typical GNU/Linux distros and other X11-based systems, and
|
||||
Mac OS X. It is deliberately modeled on Dick Koch’s award-winning
|
||||
TeXShop for Mac OS X, which is credited with a resurgence of TeX
|
||||
usage on the Mac platform.
|
||||
|
||||
This package adds python scripting abitilies to TeXworks.
|
||||
|
||||
%package plugin-lua
|
||||
Summary: Plugins to add python scripting to texworks
|
||||
Group: Development/Libraries/Other
|
||||
Requires: lua
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description plugin-lua
|
||||
The TeXworks project is an effort to build a simple TeX front-end
|
||||
program (working environment) that will be available for all today’s
|
||||
major desktop operating systems—in particular, MS Windows (XP and
|
||||
Vista), typical GNU/Linux distros and other X11-based systems, and
|
||||
Mac OS X. It is deliberately modeled on Dick Koch’s award-winning
|
||||
TeXShop for Mac OS X, which is credited with a resurgence of TeX
|
||||
usage on the Mac platform.
|
||||
|
||||
This package adds lua scripting abitilies to TeXworks.
|
||||
|
||||
%prep
|
||||
%setup -q -n texworks-%{version}
|
||||
|
||||
%build
|
||||
qmake -unix 'INSTALL_PREFIX=%{_prefix}' TeXworks.pro
|
||||
|
||||
#Python plugin
|
||||
pushd plugins-src/TWPythonPlugin/
|
||||
sed -i 's:/usr/local/lib:%{_libdir}:' TWPythonPlugin.pro
|
||||
qmake -after \
|
||||
'INCLUDEPATH -= /usr/include/python2.6/' \
|
||||
'INCLUDEPATH += %{_includedir}/python%{py_ver}/' \
|
||||
'LIBS -= -lpython2.6' \
|
||||
'LIBS += -lpython%{py_ver}'
|
||||
popd
|
||||
|
||||
#Lua plugin
|
||||
pushd plugins-src/TWLuaPlugin/
|
||||
sed -i 's:/usr/local/lib:%{_libdir}:' TWLuaPlugin.pro
|
||||
qmake -after \
|
||||
'PKGCONFIG -= lua5.1' \
|
||||
'PKGCONFIG += lua'
|
||||
popd
|
||||
|
||||
#Main package
|
||||
qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name} \
|
||||
-after \
|
||||
'QMAKE_CXXFLAGS -= -DTW_BUILD_ID=personal -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\" -DTW_DICPATH=\\\"/usr/share/myspell/dicts\\\"' \
|
||||
'QMAKE_CXXFLAGS += -DTW_BUILD_ID=openSUSE -DTW_HELPPATH=\\\"%{_docdir}/%{name}/manual\\\" -DTW_PLUGINPATH=\\\"%{_libdir}/%{name}\\\" -DTW_DICPATH=\\\"%{_datadir}/myspell\\\"'
|
||||
|
||||
%install
|
||||
#Python plugin
|
||||
pushd plugins-src/TWPythonPlugin/
|
||||
make INSTALL_ROOT=%{buildroot} install
|
||||
popd
|
||||
|
||||
#Lua plugin
|
||||
pushd plugins-src/TWLuaPlugin/
|
||||
make INSTALL_ROOT=%{buildroot} install
|
||||
popd
|
||||
|
||||
#Main package
|
||||
make INSTALL_ROOT=%{buildroot} install
|
||||
%suse_update_desktop_file texworks Publishing WordProcessor
|
||||
rm -rf %{buildroot}%{_datadir}/doc/texworks
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@ -73,10 +142,20 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor || true
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING README
|
||||
%doc COPYING README NEWS manual/
|
||||
%{_bindir}/texworks
|
||||
%{_datadir}/applications/texworks.desktop
|
||||
%{_datadir}/pixmaps/*.png
|
||||
%{_mandir}/man1/texworks.1.*
|
||||
|
||||
%files plugin-python
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/*PythonPlugin.so
|
||||
|
||||
%files plugin-lua
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/*LuaPlugin.so
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user