%global pkgname texlipse %global install_loc %{_datadir}/eclipse/dropins/%{pkgname} %global eclipse_base %{_libdir}/eclipse Name: eclipse-%{pkgname} Version: 1.3.0 Release: 1.20090616cvs%{?dist} Summary: Eclipse-based Latex plugin Group: Applications/Engineering License: EPL URL: http://texlipse.sourceforge.net # Downloaded from CVS http://texlipse.cvs.sourceforge.net/texlipse/ Source0: net.sourceforge.%{pkgname}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: eclipse-pde BuildRequires: java-devel Requires: eclipse-platform BuildArch: noarch %description Texlipse is a plugin that adds Latex editing support for the popular Eclipse Java IDE. Key features include: syntax highlight, command completion, bibliography completion, outline navigation and automatic building. %prep %setup -q -c find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \; %build cd net.sourceforge.%{pkgname} %{eclipse_base}/buildscripts/pdebuild %install %{__rm} -rf %{buildroot} cd net.sourceforge.%{pkgname} %{__install} -d -m 755 %{buildroot}%{install_loc} # extract to create jar unzip -d %{buildroot}%{install_loc} -q build/rpmBuild/net.sourceforge.%{pkgname}.zip %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) #%doc CONTRIBUTORS.txt ChangeLog.txt about.html %{install_loc} %changelog * Tue Jun 16 2008 Chitlesh GOORAH - 1.3.0-1.20090616cvs - Initial Fedora Package