rpms/eclipse-rpm-editor/FC-6 eclipse-rpm-editor-remove-rpmlint-plugin.patch, NONE, 1.1 eclipse-rpm-editor.spec, NONE, 1.1 fetch-specfile-editor.sh, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Alphonse Van Assche (alcapcom) fedora-extras-commits at redhat.com
Sat Sep 1 14:05:57 UTC 2007


Author: alcapcom

Update of /cvs/pkgs/rpms/eclipse-rpm-editor/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4812/FC-6

Modified Files:
	.cvsignore sources 
Added Files:
	eclipse-rpm-editor-remove-rpmlint-plugin.patch 
	eclipse-rpm-editor.spec fetch-specfile-editor.sh 
Log Message:
Initial package.


eclipse-rpm-editor-remove-rpmlint-plugin.patch:

--- NEW FILE eclipse-rpm-editor-remove-rpmlint-plugin.patch ---
--- org.eclipse.linuxtools.rpm.ui.editor-feature/feature.xml.ori	2007-08-19 15:04:15.000000000 +0200
+++ org.eclipse.linuxtools.rpm.ui.editor-feature/feature.xml	2007-09-01 15:31:46.000000000 +0200
@@ -33,13 +33,6 @@
    </requires>
 
    <plugin
-         id="org.eclipse.linuxtools.rpm.rpmlint"
-         download-size="0"
-         install-size="0"
-         version="0.0.0"
-         unpack="false"/>
-
-   <plugin
          id="org.eclipse.linuxtools.rpm.ui.editor"
          download-size="0"
          install-size="0"


--- NEW FILE eclipse-rpm-editor.spec ---
%define gcj_support         1
%define eclipse_base        %{_datadir}/eclipse
%define svn_rev             2610

Name:           eclipse-rpm-editor
Version:        0.1.0
Release:        4%{?dist}
Summary:        RPM Specfile editor for Eclipse
Group:          Development/Tools
License:        EPL
URL:            http://wiki.eclipse.org/index.php/Linux_Distributions_Project
# This tarball was made using the included script, like so:
#   sh ./fetch-specfile-editor.sh %{svn_rev}
Source0:        specfile-editor-fetched-src-%{svn_rev}.tar.bz2
Source1:        fetch-specfile-editor.sh
# The current rawhide rpmlint version (0.80) is not compatible with the plugin.
# So this patch remove the rpmlint plugin temporarily 
Patch0:         %{name}-remove-rpmlint-plugin.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%if %{gcj_support}
BuildRequires:    gcc-java
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%else
BuildRequires:    java-devel >= 1.5.0
%endif
%if ! %{gcj_support}
BuildArch: noarch
%endif
BuildRequires: eclipse-pde >= 1:3.3.0
BuildRequires: eclipse-changelog >= 2.5.1
Requires: eclipse-platform >= 3.3.1 
Requires: eclipse-changelog >= 2.5.1
# rpmlint need rpmlint-0.80-rpmlint-on-specfiles.patch to be compatible with 
# the rpmlint plugin
Requires: rpmlint >= 0.80
Requires: rpmdevtools

%description
The Eclipse Specfile Editor package contains Eclipse plugins that are
useful for maintenance of RPM specfiles within the Eclipse IDE.

%prep
%setup -q -n specfile-editor-fetched-src-%{svn_rev}
%patch0

%build
# See comments in the script to understand this.
/bin/sh -x %{_datadir}/eclipse/buildscripts/copy-platform SDK %{eclipse_base} changelog
SDK=$(cd SDK > /dev/null && pwd)

# Eclipse may try to write to the home directory.
mkdir home
homedir=$(cd home > /dev/null && pwd)

java -cp $SDK/startup.jar \
     -Dosgi.sharedConfiguration.area=%{_libdir}/eclipse/configuration \
     org.eclipse.core.launcher.Main \
     -application org.eclipse.ant.core.antRunner \
     -Dtype=feature \
     -Did=org.eclipse.linuxtools.rpm.ui.editor \
     -DbaseLocation=$SDK \
     -DsourceDirectory=$(pwd) \
     -DbuildDirectory=$(pwd)/build \
     -Dbuilder=%{eclipse_base}/plugins/org.eclipse.pde.build/templates/package-build \
     -f %{eclipse_base}/plugins/org.eclipse.pde.build/scripts/build.xml \
     -vmargs -Duser.home=$homedir \

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{eclipse_base}
unzip -q -d %{buildroot}%{eclipse_base}/.. \
 build/rpmBuild/org.eclipse.linuxtools.rpm.ui.editor.zip

%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf %{buildroot}

%if %{gcj_support}
%post
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi

%postun
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(-,root,root,-)
%{eclipse_base}/plugins/org.eclipse.linuxtools.rpm.ui.editor_*.jar
#%{eclipse_base}/plugins/org.eclipse.linuxtools.rpm.rpmlint_*.jar
%dir %{eclipse_base}/features/org.eclipse.linuxtools.rpm.ui.editor_*/
%doc %{eclipse_base}/features/org.eclipse.linuxtools.rpm.ui.editor_*/*.html
%{eclipse_base}/features/org.eclipse.linuxtools.rpm.ui.editor_*/*.xml
%{eclipse_base}/features/org.eclipse.linuxtools.rpm.ui.editor_*/*.properties
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%{_libdir}/gcj/%{name}/org.eclipse.linuxtools.rpm.*
%endif

%changelog
* Sat Sep 1 2007 Alphonse Van Assche <alcapcom at fedoraproject.org> 0.1.0-4
- Disable temporarily rpmlint Plug-In because rpmlint 0.80 is not supported. 

* Thu Aug 29 2007 Alphonse Van Assche <alcapcom at gmail.com> 0.1.0-3
- Fix the description tag (see comment 9 of #253434for more details).
- Lower the rpmlint required version form 0.81 to 0.80.

* Sun Aug 26 2007 Alphonse Van Assche <alcapcom at gmail.com> 0.1.0-2
- Fix License tag.

* Wed Aug 15 2007 Alphonse Van Assche <alcapcom at gmail.com> 0.1.0-1
- Initial package.


--- NEW FILE fetch-specfile-editor.sh ---
#!/bin/sh
name=specfile-editor
svn_repo="svn://dev.eclipse.org/svnroot/technology/org.eclipse.linuxtools/rpm/trunk/"

# Usage message
usage="usage: $0 <svn_rev>"
tag=$1
tar_name=$name-fetched-src-$tag

# Ensure we got the desired CVS tag
if [ "x$tag"x = "xx" ]
then
   echo >&2 "$usage"
   exit 1
fi

# cleanup dir
rm -fr $tar_name
# prepare archive
mkdir $tar_name
pushd $tar_name &> /dev/null
for bundle in \
"org.eclipse.linuxtools.rpm.ui.editor" \
"org.eclipse.linuxtools.rpm.rpmlint" \
"org.eclipse.linuxtools.rpm.ui.editor-feature"; 
do 
svn export $svn_repo/$bundle 
done
popd &> /dev/null
# create archive
tar -cjf $tar_name.tar.bz2 $tar_name



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-rpm-editor/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Sep 2007 02:06:49 -0000	1.1
+++ .cvsignore	1 Sep 2007 14:05:22 -0000	1.2
@@ -0,0 +1 @@
+specfile-editor-fetched-src-2610.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-rpm-editor/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Sep 2007 02:06:49 -0000	1.1
+++ sources	1 Sep 2007 14:05:22 -0000	1.2
@@ -0,0 +1 @@
+4e3109cc5fcc77a570c03af6ec272e68  specfile-editor-fetched-src-2610.tar.bz2




More information about the fedora-extras-commits mailing list