|
|
38fc8c1 |
# when Koji is building SRPM, dependencies won't be installed yet
|
|
Michel Alexandre Salim |
c56fbac |
%if %($(pkg-config gedit) ; echo $?)
|
|
Michel Alexandre Salim |
c56fbac |
# This will get overridden by pkg-config; defaulting to minimum req
|
|
Michel Alexandre Salim |
c56fbac |
%global gedit_version 2.91.0
|
|
|
38fc8c1 |
%else
|
|
|
38fc8c1 |
%global gedit_version %(pkg-config gedit --modversion)
|
|
|
38fc8c1 |
%endif
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%global debug_package %{nil}
|
|
|
510c72b |
%global major_ver 0.4
|
|
|
38fc8c1 |
|
|
|
321e4bc |
# git rev-parse --short ...
|
|
|
0d807c4 |
%global commit_hash 9b1f910
|
|
|
0d807c4 |
%global alphatag 20130618git%{commit_hash}
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
Name: gedit-valencia
|
|
|
38fc8c1 |
Version: %{major_ver}.0
|
|
|
6f99cda |
Release: 2.%{alphatag}%{?dist}
|
|
|
0d807c4 |
#Release: 2%{?dist}
|
|
|
38fc8c1 |
Summary: A gedit plugin providing lightweight Vala IDE
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
Group: Development/Tools
|
|
|
38fc8c1 |
License: LGPLv2+
|
|
|
88d99e9 |
URL: http://redmine.yorba.org/projects/valencia/wiki
|
|
Michel Alexandre Salim |
c56fbac |
# git archive --format=tar --prefix=valencia-%%{version}-%%{commit_hash}/ %%{commit_hash} | xz > ../valencia-%%{version}-%%{commit_hash}.tar.xz
|
|
|
0d807c4 |
Source0: valencia-%{version}-%{commit_hash}.tar.xz
|
|
|
0d807c4 |
#Source0: http://yorba.org/download/valencia/%{major_ver}/valencia-%{version}.tar.xz
|
|
|
0d807c4 |
Patch0: %{name}-0.4.0-vala-0.22.patch
|
|
|
38fc8c1 |
|
|
|
79b9a17 |
BuildRequires: pkgconfig(gedit)
|
|
|
0d807c4 |
BuildRequires: pkgconfig(gee-0.8)
|
|
|
79b9a17 |
BuildRequires: pkgconfig(gtksourceview-3.0)
|
|
|
0d807c4 |
%if 0%{?fedora} > 19
|
|
|
0d807c4 |
BuildRequires: pkgconfig(libvala-0.22)
|
|
|
321e4bc |
%else
|
|
|
0d807c4 |
BuildRequires: pkgconfig(libvala-0.20)
|
|
|
321e4bc |
%endif
|
|
|
79b9a17 |
BuildRequires: pkgconfig(vte-2.90)
|
|
|
38fc8c1 |
Requires: gedit >= %{gedit_version}
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%description
|
|
|
38fc8c1 |
Valencia is a gedit plugin that turns gedit into a lightweight IDE for Vala.
|
|
|
38fc8c1 |
Using Valencia, you can easily browse between symbols in a Vala program. You
|
|
|
38fc8c1 |
can build a Vala program inside gedit and can easily jump to lines with
|
|
|
510c72b |
build errors. You can also get tooltips for methods and get autocompletion
|
|
|
38fc8c1 |
suggestions by invoking autocomplete in the appropriate context.
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%prep
|
|
|
0d807c4 |
%setup -q -n valencia-%{version}-%{commit_hash}
|
|
|
0d807c4 |
%if 0%{?fedora} > 19
|
|
|
0d807c4 |
%patch0 -p1 -b .vala22
|
|
|
321e4bc |
%endif
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%build
|
|
|
38fc8c1 |
VFLAGS=
|
|
|
38fc8c1 |
for f in $RPM_OPT_FLAGS; do
|
|
|
38fc8c1 |
if [ $f != "-g" ]; then
|
|
|
38fc8c1 |
VFLAGS="$VFLAGS -X $f "
|
|
|
38fc8c1 |
fi
|
|
|
38fc8c1 |
done
|
|
|
38fc8c1 |
make %{?_smp_mflags} VFLAGS="$VFLAGS"
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%install
|
|
|
38fc8c1 |
rm -rf $RPM_BUILD_ROOT
|
|
Michel Alexandre Salim |
c56fbac |
PLUGINDIR=$RPM_BUILD_ROOT%{_libdir}/gedit/plugins
|
|
|
38fc8c1 |
mkdir -p $PLUGINDIR
|
|
|
38fc8c1 |
# no debuginfo generation; need to strip the library by hand
|
|
|
38fc8c1 |
strip libvalencia.so
|
|
Michel Alexandre Salim |
c56fbac |
cp -p libvalencia.so valencia.plugin $PLUGINDIR
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%clean
|
|
|
38fc8c1 |
rm -rf $RPM_BUILD_ROOT
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%files
|
|
|
38fc8c1 |
%defattr(-,root,root,-)
|
|
|
38fc8c1 |
%doc AUTHORS COPYING NEWS README THANKS
|
|
Michel Alexandre Salim |
c56fbac |
%{_libdir}/gedit/plugins/*valencia*
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
%changelog
|
|
|
7819a2f |
* Tue Sep 3 2013 Michel Salim <salimma@fedoraproject.org> - 0.4.0-2.20130618git9b1f910
|
|
|
0d807c4 |
- Update to latest snapshot, merging support for newer Vala and Gedit APIs
|
|
|
0d807c4 |
- Use Vala API 0.22 on Fedora 20+
|
|
|
0d807c4 |
|
|
|
c4b60c6 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
|
|
|
c4b60c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c4b60c6 |
|
|
|
510c72b |
* Sun Apr 7 2013 Michel Salim <salimma@fedoraproject.org> - 0.4.0-1
|
|
|
510c72b |
- Update to 0.4.0
|
|
|
510c72b |
|
|
|
13aa164 |
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 0.3.0-16.20120919git97087fc
|
|
|
13aa164 |
- Rebuilt for gtksourceview3 soname bump
|
|
|
13aa164 |
|
|
|
510c72b |
* Sun Mar 17 2013 Michel Salim <salimma@fedoraproject.org> - 0.3.0-15.20120919git97087fc
|
|
|
88d99e9 |
- Update project URL
|
|
|
88d99e9 |
|
|
|
321e4bc |
* Sun Mar 17 2013 Michel Salim <salimma@fedoraproject.org> - 0.3.0-14.20120919git97087fc
|
|
|
321e4bc |
- Update to fix build problems with newer Vala versions
|
|
|
321e4bc |
|
|
|
b78766b |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-13.20120430gite8a0f500555be
|
|
|
b78766b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
b78766b |
|
|
|
7a222a0 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-12.20120430gite8a0f500555be
|
|
|
7a222a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
7a222a0 |
|
|
|
d2a61dd |
* Sun May 6 2012 Michel Salim <salimma@fedoraproject.org> - 0.3.0-11.20120430git%{commit_hash}%{?dist}
|
|
|
d2a61dd |
- Update for Vala 0.17.x
|
|
|
d2a61dd |
|
|
|
79b9a17 |
* Wed Feb 1 2012 Michel Salim <salimma@fedoraproject.org> - 0.3.0-10.20111212gitd6504e0ccdb0a
|
|
|
d2a61dd |
- Update for Vala 0.15.x
|
|
|
79b9a17 |
|
|
|
c7bb736 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-9.20110701git808152718e3ab
|
|
|
c7bb736 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
c7bb736 |
|
|
|
1f12016 |
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.3.0-8.20110701git808152718e3ab
|
|
|
1f12016 |
- Rebuild for new libpng
|
|
|
1f12016 |
|
|
|
4967fee |
* Sun Aug 7 2011 Michel Salim <salimma@fedoraproject.org> - 0.3.0-7.20110701git808152718e3ab
|
|
|
4967fee |
- Rebuild against Vala 0.13.1
|
|
|
4967fee |
|
|
Michel Alexandre Salim |
c56fbac |
* Thu Jul 7 2011 Michel Salim <salimma@fedoraproject.org> - 0.3.0-6.20110701git808152718e3ab
|
|
Michel Alexandre Salim |
c56fbac |
- Snapshot release with gedit 3 support
|
|
Michel Alexandre Salim |
c56fbac |
|
|
|
3b7a605 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-5
|
|
|
3b7a605 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
3b7a605 |
|
|
|
38fc8c1 |
* Sat Nov 27 2010 Michel Salim <salimma@fedoraproject.org> - 0.3.0-4
|
|
|
38fc8c1 |
- More flexibly handle builds for different Vala API versions
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
* Tue Oct 19 2010 Michel Salim <salimma@fedoraproject.org> - 0.3.0-3
|
|
|
38fc8c1 |
- Pass compiler flags as VFLAGS, not CFLAGS
|
|
|
38fc8c1 |
- Disable debuginfo generation for now, since the script cannot locate
|
|
|
38fc8c1 |
Vala sources unless one generates intermediate C sources
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
* Wed Sep 15 2010 Michel Salim <salimma@fedoraproject.org> - 0.3.0-2
|
|
|
38fc8c1 |
- Make valencia buildable against vala >= 0.9.5 in F-14+ and EL-6+
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
* Mon Jul 26 2010 Michel Salim <salimma@fedoraproject.org> - 0.3.0-1
|
|
|
38fc8c1 |
- Update to 0.3.0
|
|
|
38fc8c1 |
|
|
|
38fc8c1 |
* Sun Aug 23 2009 Michel Salim <salimma@fedoraproject.org> - 0.2.1-1
|
|
|
38fc8c1 |
- Initial Fedora package
|