1 |
%define name monodevelop-java |
2 |
%define version 2.4 |
3 |
%define release 1 |
4 |
|
5 |
|
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %mkrel %{release} |
9 |
Summary: MonoDevelop java Addin |
10 |
License: GPLv2+ |
11 |
Group: Development/Tools |
12 |
Source: http://ftp.novell.com/pub/mono/sources/%{name}/%{name}-%{version}.tar.bz2 |
13 |
URL: http://www.monodevelop.com |
14 |
BuildArch: noarch |
15 |
BuildRequires: mono-devel >= 2.6 |
16 |
BuildRequires: mono-addins-devel |
17 |
BuildRequires: monodevelop |
18 |
BuildRequires: gtk-sharp2-devel |
19 |
Requires: monodevelop >= 2.4 |
20 |
|
21 |
%description |
22 |
Java Addin for MonoDevelop. |
23 |
|
24 |
%package devel |
25 |
Summary: Development files for MonoDevelop java Addin |
26 |
Group: Development/Libraries |
27 |
Requires: %{name} = %{version}-%{release} |
28 |
Requires: pkgconfig |
29 |
|
30 |
%description devel |
31 |
Mono Java Addin for MonoDevelop. Development package. |
32 |
|
33 |
The %{name}-devel package contains development files for %{name}. |
34 |
|
35 |
%prep |
36 |
%setup -q |
37 |
|
38 |
%build |
39 |
./configure --prefix=%{_prefix} |
40 |
make |
41 |
|
42 |
%install |
43 |
rm -rf %{buildroot} |
44 |
%makeinstall_std |
45 |
|
46 |
for langdir in %buildroot%_prefix/lib/monodevelop/AddIns/JavaBinding/locale/*; do |
47 |
echo "%lang($(basename $langdir)) $(echo $langdir |sed s!%buildroot!!)" >> %name.lang |
48 |
done |
49 |
|
50 |
%clean |
51 |
rm -rf %{buildroot} |
52 |
|
53 |
%files -f %{name}.lang |
54 |
%defattr(-,root,root,-) |
55 |
%dir %_prefix/lib/monodevelop/AddIns/JavaBinding/ |
56 |
%_prefix/lib/monodevelop/AddIns/JavaBinding/JavaBinding.dll* |
57 |
%dir %_prefix/lib/monodevelop/AddIns/JavaBinding/locale/ |
58 |
|
59 |
%files devel |
60 |
%defattr(-,root,root,-) |
61 |
%_prefix/lib/pkgconfig/monodevelop-java.pc |