add gtk2 version [release 16.04.0-2mamba;Tue Mar 15 2016]

This commit is contained in:
Silvan Calarco 2024-01-06 04:05:16 +01:00
parent 9aa3c2b19c
commit a58ddf50b4

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: libdbusmenu
Version: 16.04.0
Release: 1mamba
Release: 2mamba
Summary: DBus Menu Library
Group: System/Libraries
Vendor: openmamba
@ -12,19 +12,17 @@ Source: http://launchpad.net/dbusmenu/%{majver}/%{version}/+download/libd
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gtk-doc
BuildRequires: libX11-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libgtk2-devel
BuildRequires: libjson-glib-devel
BuildRequires: libpango-devel
BuildRequires: libX11-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
BuildRequires: gobject-introspection-devel
BuildRequires: vala-tools
@ -85,6 +83,26 @@ A small little library that was created by pulling out some comon code out of in
It passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus.
This package contains static libraries and header files need for development.
%package gtk3
Group: System/Libraries
Summary: DBus Menu Library
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description gtk3
A small little library that was created by pulling out some comon code out of indicator-applet.
It passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus.
%package gtk3-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}-jsonloader
Requires: %{name}-gtk3 = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description gtk3-devel
A small little library that was created by pulling out some comon code out of indicator-applet.
It passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus.
This package contains static libraries and header files need for development.
%package apidocs
Summary: %{name} API documentation
Group: Documentation
@ -100,8 +118,17 @@ Requires: gtk-doc
%configure --enable-introspection
%make -j1
tar xf %{SOURCE0}
mv %{name}-%{version} gtk2
cd gtk2
%configure --with-gtk=2 --enable-introspection
%make -j1
cd ..
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C gtk2
%makeinstall
rm -fr %{buildroot}/usr/share/doc/libdbusmenu
@ -118,6 +145,9 @@ rm -fr %{buildroot}/usr/share/doc/libdbusmenu
%post gtk -p /sbin/ldconfig
%postun gtk -p /sbin/ldconfig
%post gtk3 -p /sbin/ldconfig
%postun gtk3 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libdbusmenu-glib.so.*
@ -154,10 +184,27 @@ rm -fr %{buildroot}/usr/share/doc/libdbusmenu
%files gtk
%defattr(-,root,root)
%{_libdir}/libdbusmenu-gtk.so.*
%{_libdir}/girepository-1.0/DbusmenuGtk-0.4.typelib
%files gtk-devel
%defattr(-,root,root)
%dir %{_includedir}/libdbusmenu-gtk-0.4
%dir %{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk
%{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk/*.h
%{_libdir}/libdbusmenu-gtk.a
%{_libdir}/libdbusmenu-gtk.la
%{_libdir}/libdbusmenu-gtk.so
%{_libdir}/pkgconfig/dbusmenu-gtk-0.4.pc
%{_datadir}/gir-1.0/DbusmenuGtk-0.4.gir
%{_datadir}/vala/vapi/DbusmenuGtk-0.4.vapi
%files gtk3
%defattr(-,root,root)
%{_libdir}/libdbusmenu-gtk3.so.*
%{_libdir}/girepository-1.0/DbusmenuGtk3-0.4.typelib
%files gtk-devel
%files gtk3-devel
%defattr(-,root,root)
%dir %{_includedir}/libdbusmenu-gtk3-0.4
%dir %{_includedir}/libdbusmenu-gtk3-0.4/libdbusmenu-gtk
@ -177,6 +224,9 @@ rm -fr %{buildroot}/usr/share/doc/libdbusmenu
%{_datadir}/gtk-doc/html/libdbusmenu-gtk/*
%changelog
* Tue Mar 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.04.0-2mamba
- add gtk2 version
* Wed Mar 02 2016 Automatic Build System <autodist@mambasoft.it> 16.04.0-1mamba
- automatic update by autodist