rebuilt with gtk4 subpackage [release 1.10.2-2mamba;Thu Nov 03 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 05:11:38 +01:00
parent c5e4ac5562
commit 96f5f820ac

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f1-2) %define majver %(echo %version | cut -d. -f1-2)
Name: libnma Name: libnma
Version: 1.10.2 Version: 1.10.2
Release: 1mamba Release: 2mamba
Summary: Network Manager Applet library Summary: Network Manager Applet library
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -12,35 +12,40 @@ Source: http://ftp.acc.umu.se/pub/GNOME/sources/libnma/%{majver}/libnma-%
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libbrotli-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel BuildRequires: libcairo-devel
BuildRequires: libffi-devel BuildRequires: libgcr3-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcr-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel BuildRequires: libgtk-devel
BuildRequires: libgtk3-devel BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libnm-devel BuildRequires: libnm-devel
BuildRequires: libp11-kit-devel
BuildRequires: libpango-devel
BuildRequires: libpcre-devel
BuildRequires: libpng-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libffi-devel >= 3.3 BuildRequires: libffi-devel >= 3.3
Obsoletes: libnm-gtk < 1.10.2 Obsoletes: libnm-gtk < 1.10.2
Requires: %{name}-common = %{?epoch:%epoch:}%{version}-%{release}
%description %description
Network Manager Applet library. Network Manager Applet library.
%package common
Group: System/Libraries
Summary: Network Manager Applet library (common files)
%description common
Network Manager Applet library (common files).
%package gtk4
Group: System/Libraries
Summary: Network Manager Applet library (GTK4)
Requires: %{name}-common = %{?epoch:%epoch:}%{version}-%{release}
%description gtk4
Network Manager Applet library (GTK4).
%package devel %package devel
Group: Development/Libraries Group: Development/Libraries
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-gtk4 = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config Requires: pkg-config
Obsoletes: libnm-gtk-devel < 1.10.2 Obsoletes: libnm-gtk-devel < 1.10.2
@ -62,49 +67,67 @@ This package includes the %{name} API documentation.
%setup -q %setup -q
%build %build
%configure --enable-gtk-doc %meson \
%make -Dlibnma_gtk4=true
%meson_build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %meson_install
%find_lang %{name} || touch %{name}.lang %find_lang %{name} || touch %{name}.lang
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post %post -p /sbin/ldconfig
/sbin/ldconfig %postun -p /sbin/ldconfig
%post gtk4 -p /sbin/ldconfig
%postun gtk4 -p /sbin/ldconfig
%post common
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas glib-compile-schemas %{_datadir}/glib-2.0/schemas
fi fi
: :
%postun %postun common
/sbin/ldconfig
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas glib-compile-schemas %{_datadir}/glib-2.0/schemas
fi fi
: :
%files -f %{name}.lang %files common -f %{name}.lang
%defattr(-,root,root)
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
%doc COPYING
%files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libnma.so.* %{_libdir}/libnma.so.*
%{_libdir}/girepository-1.0/NMA-1.0.typelib %{_libdir}/girepository-1.0/NMA-1.0.typelib
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
%doc COPYING %files gtk4
%defattr(-,root,root)
%{_libdir}/libnma-gtk4.so.*
%{_libdir}/girepository-1.0/NMA4-1.0.typelib
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/libnma %dir %{_includedir}/libnma
%{_includedir}/libnma/nma*.h %{_includedir}/libnma/nma*.h
%{_libdir}/libnma.a
%{_libdir}/libnma.so %{_libdir}/libnma.so
%{_libdir}/pkgconfig/libnma.pc %{_libdir}/libnma-gtk4.so
%{_datadir}/gir-1.0/NMA-1.0.gir %{_datadir}/gir-1.0/NMA-1.0.gir
%{_datadir}/gir-1.0/NMA4-1.0.gir
%{_datadir}/vala/vapi/libnma.deps %{_datadir}/vala/vapi/libnma.deps
%{_datadir}/vala/vapi/libnma.vapi %{_datadir}/vala/vapi/libnma.vapi
%{_datadir}/vala/vapi/libnma-gtk4.deps
%{_datadir}/vala/vapi/libnma-gtk4.vapi
%{_libdir}/pkgconfig/libnma.pc
%{_libdir}/pkgconfig/libnma-gtk4.pc
%doc NEWS %doc NEWS
%files apidocs %files apidocs
@ -113,6 +136,9 @@ fi
%{_datadir}/gtk-doc/html/libnma/* %{_datadir}/gtk-doc/html/libnma/*
%changelog %changelog
* Thu Nov 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.2-2mamba
- rebuilt with gtk4 subpackage
* Sun Sep 11 2022 Automatic Build System <autodist@mambasoft.it> 1.10.2-1mamba * Sun Sep 11 2022 Automatic Build System <autodist@mambasoft.it> 1.10.2-1mamba
- automatic version update by autodist - automatic version update by autodist