%global eclipse_base %{_libdir}/eclipse %global install_loc %{_datadir}/eclipse/dropins # Taken from update site so we match upstream # download.eclipse.org/mylyn/archive/3.5.0/v20110316-0100 %global qualifier v20110316-0100 Name: eclipse-mylyn-tasks Summary: Mylyn Bugzilla/Trac Tasks Connectors Version: 3.5.0 Release: 2%{?dist} License: EPL URL: http://www.eclipse.org/mylyn/tasks # bash fetch-eclipse-mylyn-tasks.sh Source0: eclipse-mylyn-tasks-R_3_5_0-fetched-src.tar.bz2 Source1: fetch-eclipse-mylyn-tasks.sh # Red Hat bugzilla's custom transition file Source2: redhat-bugzilla-custom-transitions.txt # These patches are probably not suitable for upstream. # They switch Import-Package for Bundle-Require in # bugzilla.core and trac.core MANIFEST.MF Patch0: %{name}-bugzilla-core-xmlrpc-import-package-manifest-fix.patch Patch1: %{name}-trac-core-xmlrpc-import-package-manifest-fix.patch BuildArch: noarch BuildRequires: java-devel >= 1.5.0 BuildRequires: eclipse-platform >= 1:3.4.0 BuildRequires: eclipse-pde >= 1:3.4.0 BuildRequires: eclipse-mylyn >= 3.5.0 BuildRequires: eclipse-mylyn-commons >= 3.5.0 BuildRequires: eclipse-mylyn-context >= 3.5.0 %description Mylyn Bugzilla/Trac Tasks Connectors # eclips-mylyn-tasks-bugzilla %package bugzilla Summary: Mylyn Tasks Connector: Bugzilla Requires: eclipse-platform >= 1:3.4.0 Requires: eclipse-mylyn >= 3.5.0 Requires: eclipse-mylyn-commons >= 3.5.0 Provides: eclipse-mylyn-bugzilla = %{version}-%{release} Obsoletes: eclipse-mylyn-bugzilla < %{version}-%{release} Group: Development/Tools %description bugzilla Provides Task List integration, offline support and rich editing for the open source Bugzilla bug tracker. # eclips-mylyn-tasks-trac %package trac Summary: Mylyn Tasks Connector: Trac Requires: eclipse-platform >= 1:3.4.0 Requires: eclipse-mylyn >= 3.5.0 Requires: eclipse-mylyn-commons >= 3.5.0 Requires: eclipse-mylyn-context >= 3.5.0 Group: Development/Tools Provides: eclipse-mylyn-trac = %{version}-%{release} Obsoletes: eclipse-mylyn-trac < %{version}-%{release} %description trac Provides Task List integration, offline support and rich editing for the open source Trac issue tracker. %prep %setup -q -n org.eclipse.mylyn.tasks %patch0 %patch1 %build %{eclipse_base}/buildscripts/pdebuild -f org.eclipse.mylyn.bugzilla_feature \ -a "-DjavacSource=1.5 -DjavacTarget=1.5 -DforceContextQualifier=%{qualifier} -DmylynQualifier=%{qualifier}" \ -j -DJ2SE-1.5=%{_jvmdir}/java/jre/lib/rt.jar \ -d "mylyn mylyn-commons" %{eclipse_base}/buildscripts/pdebuild -f org.eclipse.mylyn.trac_feature \ -a "-DjavacSource=1.5 -DjavacTarget=1.5 -DforceContextQualifier=%{qualifier} -DmylynQualifier=%{qualifier}" \ -j -DJ2SE-1.5=%{_jvmdir}/java/jre/lib/rt.jar \ -d "mylyn mylyn-commons mylyn-context" %install install -d -m 755 %{buildroot}%{_datadir}/eclipse install -d -m 755 %{buildroot}%{install_loc}/mylyn-bugzilla install -d -m 755 %{buildroot}%{install_loc}/mylyn-trac install %{SOURCE2} %{buildroot}%{install_loc}/mylyn-bugzilla/redhat-bugzilla-custom-transitions.txt unzip -q -o -d %{buildroot}%{install_loc}/mylyn-bugzilla \ build/rpmBuild/org.eclipse.mylyn.bugzilla_feature.zip unzip -q -o -d %{buildroot}%{install_loc}/mylyn-trac \ build/rpmBuild/org.eclipse.mylyn.trac_feature.zip # eclips-mylyn-tasks-bugzilla %files bugzilla %defattr(-,root,root,-) %{install_loc}/mylyn-bugzilla %doc org.eclipse.mylyn.bugzilla-feature/epl-v10.html %doc org.eclipse.mylyn.bugzilla-feature/license.html # eclips-mylyn-tasks-trac %files trac %defattr(-,root,root,-) %{install_loc}/mylyn-trac %doc org.eclipse.mylyn.trac-feature/epl-v10.html %doc org.eclipse.mylyn.trac-feature/license.html %changelog * Mon Apr 18 2011 Severin Gehwolf 3.5.0-2 - Drop obsoletes/provides for eclipse-bugzilla, eclipse-mylar-* packages. - Remove rm -rf buildroot from beginning of install section. - Drop the conf-file marker for Red Hat BZ custom transitions file. - Install transitions as regular source file instead of patch. - Changed URL to http//www.eclipse.org/mylyn/tasks/ - Added version >= 3.5.0 to R/BRs. * Fri Apr 15 2011 Severin Gehwolf 3.5.0-1 - Introducing eclipse-mylyn-tasks. This is due to the Mylyn 3.5.0 restructuring. eclipse-myly-{bugzilla,trac} are now provided by this SRPM.