summaryrefslogtreecommitdiffstats
path: root/gnome/gedit-valencia.spec
blob: e142ef92507ede04a0440033ad5bd0bea61e7ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# when Koji is building SRPM, dependencies won't be installed yet
%if %($(pkg-config gedit-2.20) ; echo $?)
# This will get overridden by pkg-config; defaulting to the version in F9
%global gedit_version 22.2
%else
%global gedit_version %(pkg-config gedit-2.20 --modversion)
%endif

%global major_ver 0.3


Name:           gedit-valencia
Version:        %{major_ver}.0
Release:        2%{?dist}
Summary:        A gedit plugin providing lightweight Vala IDE

Group:          Development/Tools
License:        LGPLv2+
URL:            http://yorba.org/valencia
Source0:        http://yorba.org/download/valencia/%{major_ver}/valencia-%{version}.tar.bz2
Patch0:         valencia-0.3.0-fixver.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  gedit-devel vala-devel libgee-devel vte-devel
Requires:       gedit >= %{gedit_version}

%description
Valencia is a gedit plugin that turns gedit into a lightweight IDE for Vala.
Using Valencia, you can easily browse between symbols in a Vala program.  You
can build a Vala program inside gedit and can easily jump to lines with
build errors. You can also get tooltips for methods and get autocompletion 
suggestions by invoking autocomplete in the appropriate context.


%prep
%setup -q -n valencia-%{version}
%if 0%{?fedora} >=14 || 0%{?rhel} >= 6
# These distributions have vala >= 0.9.5, which provide
# vala-0.10 not vala-1.0
%patch0 -p1 -b .fixver
%endif


%build
CFLAGS=$RPM_OPT_FLAGS make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
PLUGINDIR=$RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins
mkdir -p $PLUGINDIR
cp -p libvalencia.so valencia.gedit-plugin $PLUGINDIR


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README THANKS
%{_libdir}/gedit-2/plugins/*valencia*



%changelog
* Wed Sep 15 2010 Michel Salim <salimma@fedoraproject.org> - 0.3.0-2
- Make valencia buildable against vala >= 0.9.5 in F-14+ and EL-6+

* Mon Jul 26 2010 Michel Salim <salimma@fedoraproject.org> - 0.3.0-1
- Update to 0.3.0

* Sun Aug 23 2009 Michel Salim <salimma@fedoraproject.org> - 0.2.1-1
- Initial Fedora package