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) %define majver %(echo %version | cut -d. -f1-2)
Name: libdbusmenu Name: libdbusmenu
Version: 16.04.0 Version: 16.04.0
Release: 1mamba Release: 2mamba
Summary: DBus Menu Library Summary: DBus Menu Library
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -12,19 +12,17 @@ Source: http://launchpad.net/dbusmenu/%{majver}/%{version}/+download/libd
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: gtk-doc BuildRequires: libX11-devel
BuildRequires: libatk-devel BuildRequires: libatk-devel
BuildRequires: libcairo-devel BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libfontconfig-devel BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libgtk-devel BuildRequires: libgtk-devel
BuildRequires: libgtk2-devel
BuildRequires: libjson-glib-devel BuildRequires: libjson-glib-devel
BuildRequires: libpango-devel BuildRequires: libpango-devel
BuildRequires: libX11-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: gobject-introspection-devel BuildRequires: gobject-introspection-devel
BuildRequires: vala-tools 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. 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. 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 %package apidocs
Summary: %{name} API documentation Summary: %{name} API documentation
Group: Documentation Group: Documentation
@ -100,8 +118,17 @@ Requires: gtk-doc
%configure --enable-introspection %configure --enable-introspection
%make -j1 %make -j1
tar xf %{SOURCE0}
mv %{name}-%{version} gtk2
cd gtk2
%configure --with-gtk=2 --enable-introspection
%make -j1
cd ..
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C gtk2
%makeinstall %makeinstall
rm -fr %{buildroot}/usr/share/doc/libdbusmenu rm -fr %{buildroot}/usr/share/doc/libdbusmenu
@ -118,6 +145,9 @@ rm -fr %{buildroot}/usr/share/doc/libdbusmenu
%post gtk -p /sbin/ldconfig %post gtk -p /sbin/ldconfig
%postun gtk -p /sbin/ldconfig %postun gtk -p /sbin/ldconfig
%post gtk3 -p /sbin/ldconfig
%postun gtk3 -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libdbusmenu-glib.so.* %{_libdir}/libdbusmenu-glib.so.*
@ -154,10 +184,27 @@ rm -fr %{buildroot}/usr/share/doc/libdbusmenu
%files gtk %files gtk
%defattr(-,root,root) %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}/libdbusmenu-gtk3.so.*
%{_libdir}/girepository-1.0/DbusmenuGtk3-0.4.typelib %{_libdir}/girepository-1.0/DbusmenuGtk3-0.4.typelib
%files gtk-devel %files gtk3-devel
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/libdbusmenu-gtk3-0.4 %dir %{_includedir}/libdbusmenu-gtk3-0.4
%dir %{_includedir}/libdbusmenu-gtk3-0.4/libdbusmenu-gtk %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/* %{_datadir}/gtk-doc/html/libdbusmenu-gtk/*
%changelog %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 * Wed Mar 02 2016 Automatic Build System <autodist@mambasoft.it> 16.04.0-1mamba
- automatic update by autodist - automatic update by autodist