Drop version macros, add dir directives
This commit is contained in:
parent
c2ce63e9de
commit
1e46c25d35
|
@ -1,18 +1,16 @@
|
||||||
%global glib_version 2.66
|
%global glib_version 2.66
|
||||||
%global gtk_version 4.2
|
%global gtk_version 4.2
|
||||||
|
|
||||||
%global majorver 5
|
%global api_ver 5
|
||||||
%global minorver 2
|
|
||||||
%global patchver 0
|
|
||||||
|
|
||||||
Name: gtksourceview5
|
Name: gtksourceview5
|
||||||
Version: %{majorver}.%{minorver}.%{patchver}
|
Version: 5.2.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Source code editing widget
|
Summary: Source code editing widget
|
||||||
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://wiki.gnome.org/Projects/GtkSourceView
|
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: gcc
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
@ -70,25 +68,29 @@ the functionality of the installed %{name} package.
|
||||||
%install
|
%install
|
||||||
%meson_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
|
%license COPYING
|
||||||
%{_libdir}/girepository-1.0/GtkSource-%{majorver}.typelib
|
%dir %{_libdir}/girepository-1.0
|
||||||
%{_libdir}/libgtksourceview-%{majorver}.so.0*
|
%{_libdir}/girepository-1.0/GtkSource-%{api_ver}.typelib
|
||||||
%{_datadir}/gtksourceview-%{majorver}/
|
%{_libdir}/libgtksourceview-%{api_ver}.so.0*
|
||||||
|
%{_datadir}/gtksourceview-%{api_ver}/
|
||||||
%{_datadir}/icons/hicolor/scalable/actions/*
|
%{_datadir}/icons/hicolor/scalable/actions/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/gtksourceview-%{majorver}/
|
%{_includedir}/gtksourceview-%{api_ver}/
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_libdir}/libgtksourceview-%{majorver}.so
|
%{_libdir}/libgtksourceview-%{api_ver}.so
|
||||||
%{_datadir}/gir-1.0/GtkSource-%{majorver}.gir
|
%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}/gtk-doc/html/*
|
||||||
%{_datadir}/vala
|
%{_datadir}/vala
|
||||||
|
|
||||||
%files tests
|
%files tests
|
||||||
%{_bindir}/gtksourceview%{majorver}-widget
|
%{_bindir}/gtksourceview%{api_ver}-widget
|
||||||
%{_libexecdir}/installed-tests
|
%{_libexecdir}/installed-tests
|
||||||
%{_datadir}/installed-tests
|
%{_datadir}/installed-tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue