%define api_version 1.0 %define lib_major 0 %define libname %mklibname %{oname}- %{api_version} %{lib_major} %define libnamedev %mklibname -d %{oname}- %{api_version} %define oname gtksourceview Summary: Source code viewing library Name: gtksourceview1 Version: 1.8.5 Release: %mkrel 13 License: GPLv2+ Group: Editors URL: http://people.ecsc.co.uk/~matt/downloads/rpms/gtksourceview/ Source0: https://download.gnome.org/sources/%{name}/%{oname}-%{version}.tar.bz2 Patch0: gtksourceview-1.8.5-fix-str-fmt.patch Patch1: gtksourceview-1.8.5-glib.patch BuildRequires: pkgconfig(gtk+-2.0) >= 2.8.0 BuildRequires: pkgconfig(libgnomeprint-2.2) >= 2.8.0 BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 BuildRequires: intltool %description GtkSourceview is a library that adds syntax highlighting, line numbers, and other programming-editor features. GtkSourceView specializes these features for a code editor. %package -n %{libname} Summary: Source code viewing library Group: Editors Requires: %{name} >= %{version}-%{release} Provides: lib%{name} = %{version}-%{release} Provides: gtksourceview1.0 = %version %description -n %{libname} GtkSourceview is a library that adds syntax highlighting, line numbers, and other programming-editor features. GtkSourceView specializes these features for a code editor. %package -n %{libnamedev} Summary: Libraries and include files for GtkSourceView Group: Development/GNOME and GTK+ Requires: %{libname} = %{version} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: lib%{oname}-%{api_version}-devel = %{version}-%{release} %description -n %{libnamedev} GtkSourceView development files %prep %setup -q -n %oname-%version %autopatch -p0 %build export CPPFLAGS=-D_GNU_SOURCE=1 %configure2_5x %make %install %makeinstall_std rm -f %buildroot%{_libdir}/*.la %{find_lang} %{oname}-%{api_version} %files -f %{oname}-%{api_version}.lang %doc AUTHORS NEWS README TODO %{_datadir}/gtksourceview-%{api_version} %files -n %{libname} %{_libdir}/libgtksourceview-%{api_version}.so.%{lib_major}{,.*} %files -n %{libnamedev} %doc %{_datadir}/gtk-doc/html/gtksourceview %{_libdir}/*.so %{_includedir}/* %{_libdir}/pkgconfig/* %changelog * Thu Feb 04 2016 umeabot <umeabot> 1.8.5-13.mga6 + Revision: 936228 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 1.8.5-12.mga5 + Revision: 749228 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.8.5-11.mga5 + Revision: 680029 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 1.8.5-10.mga4 + Revision: 505382 - Mageia 4 Mass Rebuild * Sat Jan 12 2013 umeabot <umeabot> 1.8.5-9.mga3 + Revision: 352926 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Oct 29 2011 fwang <fwang> 1.8.5-8.mga2 + Revision: 159531 - fix build with latest glib - drop .la file * Sun Jan 23 2011 pterjan <pterjan> 1.8.5-7.mga1 + Revision: 35352 - Drop old stuff - imported package gtksourceview1 * Thu Dec 02 2010 Oden Eriksson <oeriksson@mandriva.com> 1.8.5-7mdv2011.0 + Revision: 605512 - rebuild * Tue Mar 16 2010 Oden Eriksson <oeriksson@mandriva.com> 1.8.5-6mdv2010.1 + Revision: 521142 - rebuilt for 2010.1 * Wed May 20 2009 Funda Wang <fwang@mandriva.org> 1.8.5-5mdv2010.0 + Revision: 377913 - fix str fmt * Mon Jul 28 2008 Götz Waschk <waschk@mandriva.org> 1.8.5-5mdv2009.0 + Revision: 251183 - fix build - update license - update build deps + Thierry Vignaud <tv@mandriva.org> - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Tue Mar 04 2008 Oden Eriksson <oeriksson@mandriva.com> 1.8.5-4mdv2008.1 + Revision: 178743 - rebuild + Thierry Vignaud <tv@mandriva.org> - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Thu Aug 30 2007 Götz Waschk <waschk@mandriva.org> 1.8.5-2mdv2008.0 + Revision: 75311 - new devel name - clean up provides and obsoletes * Thu Jul 12 2007 Götz Waschk <waschk@mandriva.org> 1.8.5-1mdv2008.0 + Revision: 51521 - rename package to gtksourceview1 - import latest version of gtksourceview 1.x