Creating specfile

Hi

I started following the instructions here openSUSE:Build Service Tutorial - openSUSE to build an rpm for Groovy 1.8.2, i have got the project created and the file uploaded but I have gotten to the section to create a specfile, it takes me to download here software.opensuse.org: Search Results

I seem to be stuck getting access to the spec template seems to rely on ‘osc’ however after installing the rpm devtools I still get osc command is unknown. What do i do ?

Everything is here https://build.opensuse.org/package/repositories?package=Groovy&project=home%3Aflebber

Hi
I just manually create them, it’s just a text file…
See here for an example
http://www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html

Is it this?
http://groovy.codehaus.org/Download


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 6 days 23:26, 3 users, load average: 0.19, 0.12, 0.11
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Yes its the codehaus Groovy programming. thanks will have a look at the specfile and upload it soon.

Hi
This should get you started;


#   
# spec file for package groovy
#
# Copyright (c) 2011 Your Name <your_obs@email>
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           groovy
License:        Apache-2.0
Group:          Development/Languages/Java
Summary:        Dynamic language for the Java Virtual Machine
Version:        1.8.2
Release:        0
Url:            http://groovy.codehaus.org/
Source0:        http://dist.groovy.codehaus.org/distributions/groovy-src-1.8.2.zip
BuildRequires:  ant
BuildRequires:  ant-trax
BuildRequires:  unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       update-alternatives java

%description

%prep
%setup -q -n %{name}-%{version}

%build

%install
ant install -DskipTests=true

%clean
%{?buildroot:%__rm -rf %{buildroot}}

%files
%defattr(-,root,root)
%doc LICENSE.txt NOTICE.txt


%changelog


Hi
OK, there is a version on OBS;
https://build.opensuse.org/package/view_file?file=groovy.spec&package=groovy&project=Java%3Apackages&srcmd5=ff5114145c965346f45ba18807aefb2f

Read the note at the very top too :wink: What you should look at doing is
branching the package.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 7 days 11:15, 4 users, load average: 0.64, 0.28, 0.20
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Thanks for all the advice. I have branched the repo as you suggested updated the spec and groovy files. https://build.opensuse.org/package/show?package=groovy&project=home%3Aflebber%3Abranches%3AJava%3Apackages

But what happens now?

Hi
You need to correct the src file, the download is
http://dist.groovy.codehaus.org/distributions/groovy-src-1.8.2.zip
You have a tar.gz file.

You need to update the spec file etc and I suggest building locally
with the osc command to detect the build errors…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 7 days 14:48, 4 users, load average: 0.11, 0.32, 0.33
GPU GeForce 8600 GTS Silent - Driver Version: 280.13