summaryrefslogtreecommitdiffstats
path: root/gnome/gedit-valencia.spec
blob: cea48011ec1cd93874fa7c05203e29cb750eefa1 (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
# 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
%define gedit_version 22.2
%else
%define gedit_version %(pkg-config gedit-2.20 --modversion)
%endif

Name:           gedit-valencia
Version:        0.2.1
Release:        1%{?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/0.2/valencia-%{version}.tar.bz2
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 -c


%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 INSTALL NEWS README THANKS
%{_libdir}/gedit-2/plugins/*valencia*



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