From 1e46c25d359012f3a250fd064866c3e1b81e4ac7 Mon Sep 17 00:00:00 2001 From: Amanda Graven Date: Tue, 9 Nov 2021 18:25:38 +0100 Subject: [PATCH] Drop version macros, add dir directives --- gtksourceview5.spec | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/gtksourceview5.spec b/gtksourceview5.spec index 78abe41..d601e37 100644 --- a/gtksourceview5.spec +++ b/gtksourceview5.spec @@ -1,18 +1,16 @@ %global glib_version 2.66 %global gtk_version 4.2 -%global majorver 5 -%global minorver 2 -%global patchver 0 +%global api_ver 5 Name: gtksourceview5 -Version: %{majorver}.%{minorver}.%{patchver} +Version: 5.2.0 Release: 1%{?dist} Summary: Source code editing widget License: LGPLv2+ URL: https://wiki.gnome.org/Projects/GtkSourceView -Source0: https://download.gnome.org/sources/gtksourceview/%{majorver}.%{minorver}/gtksourceview-%{version}.tar.xz +Source0: https://download.gnome.org/sources/gtksourceview/%{api_ver}.2/gtksourceview-%{version}.tar.xz BuildRequires: gcc BuildRequires: gettext @@ -70,25 +68,29 @@ the functionality of the installed %{name} package. %install %meson_install -%find_lang gtksourceview-%{majorver} +%find_lang gtksourceview-%{api_ver} -%files -f gtksourceview-%{majorver}.lang +%files -f gtksourceview-%{api_ver}.lang %license COPYING -%{_libdir}/girepository-1.0/GtkSource-%{majorver}.typelib -%{_libdir}/libgtksourceview-%{majorver}.so.0* -%{_datadir}/gtksourceview-%{majorver}/ +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/GtkSource-%{api_ver}.typelib +%{_libdir}/libgtksourceview-%{api_ver}.so.0* +%{_datadir}/gtksourceview-%{api_ver}/ %{_datadir}/icons/hicolor/scalable/actions/* %files devel -%{_includedir}/gtksourceview-%{majorver}/ +%{_includedir}/gtksourceview-%{api_ver}/ %{_libdir}/pkgconfig/*.pc -%{_libdir}/libgtksourceview-%{majorver}.so -%{_datadir}/gir-1.0/GtkSource-%{majorver}.gir +%{_libdir}/libgtksourceview-%{api_ver}.so +%dir %{_datadir}/gir-1.0 +%{_datadir}/gir-1.0/GtkSource-%{api_ver}.gir +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html %{_datadir}/gtk-doc/html/* %{_datadir}/vala %files tests -%{_bindir}/gtksourceview%{majorver}-widget +%{_bindir}/gtksourceview%{api_ver}-widget %{_libexecdir}/installed-tests %{_datadir}/installed-tests