Björn Esser 099d2a2
Name:		unity-gtk-module
5f5a52a
Version:	0.0.0+17.04.20170403
a6f34b2
Release:	18%{?dist}
Björn Esser 099d2a2
Summary:	GTK+ module for exporting old-style menus as GMenuModels
Björn Esser 099d2a2
Björn Esser 099d2a2
License:	LGPLv3
Björn Esser eb36b00
URL:		https://launchpad.net/%{name}
Björn Esser 099d2a2
Source0:	http://archive.ubuntu.com/ubuntu/pool/main/u/%{name}/%{name}_%{version}.orig.tar.gz
Björn Esser 099d2a2
446ef6e
BuildRequires: make
Björn Esser 099d2a2
BuildRequires:	autoconf
Björn Esser 099d2a2
BuildRequires:	automake
Björn Esser 099d2a2
BuildRequires:	libX11-devel
Björn Esser 099d2a2
BuildRequires:	libtool
acff285
BuildRequires:	python3-devel
Björn Esser 099d2a2
Björn Esser 099d2a2
%description
Björn Esser 099d2a2
GTK+ module for exporting old-style menus as GMenuModels.
Björn Esser 099d2a2
Many applications implement menus as GtkMenuShells and GtkMenuItems
Björn Esser 099d2a2
and aren't looking to migrate to the newer GMenuModel API.
Björn Esser 099d2a2
This GTK+ module watches for these types of menus and exports the
Björn Esser 099d2a2
appropriate GMenuModel implementation.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n libunity-gtk-parser-devel
Björn Esser 099d2a2
Summary:	Common development-files for libunity-gtk{2,3}-parser
Björn Esser 099d2a2
Björn Esser 099d2a2
BuildArch:	noarch
Björn Esser 099d2a2
Björn Esser 099d2a2
BuildRequires:	gtk-doc
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n libunity-gtk-parser-devel
Björn Esser 099d2a2
This package contains common headers and documentation for
Björn Esser 099d2a2
libunity-gtk{2,3}-parser.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n libunity-gtk2-parser
Björn Esser 099d2a2
Summary:	Gtk2MenuShell to GMenuModel parser
Björn Esser 099d2a2
Björn Esser 099d2a2
BuildRequires:	gtk2-devel
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n libunity-gtk2-parser
Björn Esser 099d2a2
This library converts Gtk2MenuShells into GMenuModels.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n libunity-gtk2-parser-devel
Björn Esser 099d2a2
Summary:	Development-files for libunity-gtk2-parser
Björn Esser 099d2a2
Björn Esser 099d2a2
Requires:	gtk2-devel%{?_isa}
Björn Esser 099d2a2
Requires:	libunity-gtk-parser-devel	== %{version}-%{release}
Björn Esser 099d2a2
Requires:	libunity-gtk2-parser%{?_isa}	== %{version}-%{release}
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n libunity-gtk2-parser-devel
Björn Esser 099d2a2
This package contains development-files for libunity-gtk2-parser.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n libunity-gtk3-parser
Björn Esser 099d2a2
Summary:	Gtk3MenuShell to GMenuModel parser
Björn Esser 099d2a2
Björn Esser 099d2a2
BuildRequires:	gtk3-devel
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n libunity-gtk3-parser
Björn Esser 099d2a2
This library converts Gtk3MenuShells into GMenuModels.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n libunity-gtk3-parser-devel
Björn Esser 099d2a2
Summary:	Development-files for libunity-gtk3-parser
Björn Esser 099d2a2
Björn Esser 099d2a2
Requires:	gtk3-devel%{?_isa}
Björn Esser 099d2a2
Requires:	libunity-gtk-parser-devel	== %{version}-%{release}
Björn Esser 099d2a2
Requires:	libunity-gtk3-parser%{?_isa}	== %{version}-%{release}
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n libunity-gtk3-parser-devel
Björn Esser 099d2a2
This package contains development-files for libunity-gtk3-parser.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n unity-gtk-module-common
Björn Esser 099d2a2
Summary:	Common files for unity-gtk{2,3}-module
Björn Esser 099d2a2
Björn Esser 099d2a2
BuildArch:	noarch
Björn Esser 099d2a2
Björn Esser 099d2a2
BuildRequires:	systemd
Björn Esser 099d2a2
Björn Esser 099d2a2
Requires:	/bin/sh
Björn Esser 099d2a2
Requires:	dbus
Björn Esser 099d2a2
Requires:	gawk
Björn Esser 099d2a2
Requires:	sed
Björn Esser 099d2a2
Requires:	systemd
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n unity-gtk-module-common
Björn Esser 099d2a2
This package contains common data-files for unity-gtk{2,3}-module.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n unity-gtk2-module
Björn Esser 099d2a2
Summary:	Gtk2MenuShell D-Bus exporter
Björn Esser 099d2a2
Björn Esser 099d2a2
Requires:	libunity-gtk2-parser%{?_isa}	== %{version}-%{release}
Björn Esser 099d2a2
Requires:	unity-gtk-module-common		== %{version}-%{release}
Björn Esser 099d2a2
Björn Esser 099d2a2
Provides:	appmenu-gtk			== %{version}-%{release}
Björn Esser 099d2a2
Provides:	appmenu-gtk%{?_isa}		== %{version}-%{release}
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n unity-gtk2-module
Björn Esser 099d2a2
This GTK+ 2 module exports Gtk2MenuShells over D-Bus.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%package -n unity-gtk3-module
Björn Esser 099d2a2
Summary:	Gtk3MenuShell D-Bus exporter
Björn Esser 099d2a2
Björn Esser 099d2a2
Requires:	libunity-gtk3-parser%{?_isa}	== %{version}-%{release}
Björn Esser 099d2a2
Requires:	unity-gtk-module-common		== %{version}-%{release}
Björn Esser 099d2a2
Björn Esser 099d2a2
Provides:	appmenu-gtk3			== %{version}-%{release}
Björn Esser 099d2a2
Provides:	appmenu-gtk3%{?_isa}		== %{version}-%{release}
Björn Esser 099d2a2
Björn Esser 099d2a2
%description -n unity-gtk3-module
Björn Esser 099d2a2
This GTK+ 3 module exports Gtk3MenuShells over D-Bus.
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%prep
Björn Esser 099d2a2
%autosetup -c
Björn Esser 099d2a2
%{__mkdir} -p build/gtk2 build/gtk3 m4
Björn Esser 099d2a2
Björn Esser 099d2a2
# Initialize build-environment.
Björn Esser 099d2a2
%{_bindir}/gtkdocize --copy
Björn Esser 099d2a2
%{_bindir}/autoreconf -fiv
Björn Esser 099d2a2
Björn Esser 099d2a2
# Setup systemd-unit for Fedora.
Björn Esser 099d2a2
f="data/%{name}.service"
Björn Esser 099d2a2
%{__sed} -i.orig -e's!^Before=!After=dbus.service\n&!'		\
Björn Esser 099d2a2
	-e's!ubuntu-session.target$!default.target!g'		\
Björn Esser 099d2a2
	-e's!graphical-session.target$!default.target!g'	\
Björn Esser 099d2a2
	-e's!dbus-update-activation-environment!%{_bindir}/&!g'	\
Björn Esser 099d2a2
	-e's!awk!%{_bindir}/&!g' -e's!sed!%{_bindir}/&!' ${f}
Björn Esser 099d2a2
%{_bindir}/touch -r ${f}.orig ${f} && %{__rm} ${f}.orig
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%build
acff285
export PYTHON="%{__python3}"
Björn Esser 099d2a2
export SRC_DIR="$(%{_bindir}/pwd)"
Björn Esser 099d2a2
for i in 2 3 ; do
Björn Esser 099d2a2
	pushd build/gtk${i}
Björn Esser 099d2a2
	%{_bindir}/ln ../../configure configure
Björn Esser 099d2a2
	%configure	\
Björn Esser 099d2a2
		--disable-silent-rules				\
Björn Esser 099d2a2
		--disable-static				\
Björn Esser 099d2a2
		--enable-gtk-doc				\
Björn Esser 099d2a2
		--with-gtk=${i}					\
Björn Esser 099d2a2
		--srcdir="${SRC_DIR}"
Björn Esser 099d2a2
	%make_build
Björn Esser 099d2a2
	popd
Björn Esser 099d2a2
done
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%install
Björn Esser 099d2a2
for i in 2 3 ; do
Björn Esser 099d2a2
	%make_install -C build/gtk${i}
Björn Esser 099d2a2
done
Björn Esser 099d2a2
Björn Esser 099d2a2
# Setup systemd.
Björn Esser 099d2a2
%{__mkdir} -p %{buildroot}%{_userunitdir}/default.target.wants
Björn Esser 099d2a2
%{_bindir}/ln -s						\
Björn Esser 099d2a2
	%{_userunitdir}/%{name}.service				\
Björn Esser 099d2a2
	%{buildroot}%{_userunitdir}/default.target.wants/%{name}.service
Björn Esser 099d2a2
Björn Esser 099d2a2
# We don't ship libtool-dumplings.
Björn Esser 099d2a2
%{_bindir}/find %{buildroot}%{_libdir} -name '*.la' -delete
Björn Esser 099d2a2
Björn Esser 099d2a2
# Those files are not needed during runtime.
Björn Esser 099d2a2
%{__rm} -rf %{buildroot}%{_datadir}/upstart/			\
acff285
	%{buildroot}%{python3_sitelib}
Björn Esser 099d2a2
Björn Esser 099d2a2
# Prepare demos for inclusion in %%doc.
Björn Esser 099d2a2
%{__rm} -f demos/Makefile*
Björn Esser 099d2a2
Björn Esser 099d2a2
10b9b66
%ldconfig_scriptlets -n libunity-gtk2-parser
Björn Esser 099d2a2
Björn Esser 099d2a2
10b9b66
%ldconfig_scriptlets -n libunity-gtk3-parser
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n libunity-gtk-parser-devel
Björn Esser 099d2a2
%doc demos
Björn Esser 4638652
%doc %{_datadir}/gtk-doc
Björn Esser 099d2a2
%{_includedir}/unity-gtk-parser
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n libunity-gtk2-parser
Björn Esser 099d2a2
%license AUTHORS COPYING*
Björn Esser 099d2a2
%{_libdir}/libunity-gtk2-parser.so.0*
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n libunity-gtk2-parser-devel
Björn Esser 099d2a2
%{_libdir}/libunity-gtk2-parser.so
Björn Esser 099d2a2
%{_libdir}/pkgconfig/unity-gtk2-parser.pc
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n libunity-gtk3-parser
Björn Esser 099d2a2
%license AUTHORS COPYING*
Björn Esser 099d2a2
%{_libdir}/libunity-gtk3-parser.so.0*
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n libunity-gtk3-parser-devel
Björn Esser 099d2a2
%{_libdir}/libunity-gtk3-parser.so
Björn Esser 099d2a2
%{_libdir}/pkgconfig/unity-gtk3-parser.pc
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n unity-gtk-module-common
Björn Esser 099d2a2
%license AUTHORS COPYING*
Björn Esser 4638652
%{_datadir}/glib-2.0
Björn Esser 099d2a2
%{_userunitdir}/default.target.wants
Björn Esser 099d2a2
%{_userunitdir}/%{name}.service
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n unity-gtk2-module
Björn Esser 099d2a2
%{_libdir}/gtk-2.0/modules/lib%{name}.so
Björn Esser 099d2a2
Björn Esser 099d2a2
%files -n unity-gtk3-module
Björn Esser 099d2a2
%{_libdir}/gtk-3.0/modules/lib%{name}.so
Björn Esser 099d2a2
Björn Esser 099d2a2
Björn Esser 099d2a2
%changelog
a6f34b2
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-18
a6f34b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
a6f34b2
d36acfa
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-17
d36acfa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d36acfa
84f3430
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-16
84f3430
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
84f3430
093d8a4
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-15
093d8a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
093d8a4
367f88f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-14
367f88f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
367f88f
d5febc9
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-13
d5febc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d5febc9
acff285
* Wed Sep 09 2020 Petr Viktorin <pviktori@redhat.com> - 0.0.0+17.04.20170403-12
acff285
- Switch BuildRequires to python3
acff285
9b81cdf
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-11
9b81cdf
- Second attempt - Rebuilt for
9b81cdf
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9b81cdf
a66e056
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-10
a66e056
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a66e056
8a118cb
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-9
8a118cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8a118cb
6fbf897
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-8
6fbf897
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6fbf897
b0ad389
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-7
b0ad389
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b0ad389
eb4b508
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-6
eb4b508
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
eb4b508
886d97b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-5
886d97b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
886d97b
045fd53
* Sat Jan 06 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.0+17.04.20170403-4
045fd53
- Remove obsolete scriptlets
045fd53
f5a692c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-3
f5a692c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f5a692c
ddd14f6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+17.04.20170403-2
ddd14f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ddd14f6
5f5a52a
* Wed Apr 05 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0+17.04.20170403-1
5f5a52a
- New upstream release (rhbz#1438992)
5f5a52a
5d743d3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0+16.10.20160913-4
5d743d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5d743d3
Björn Esser eb36b00
* Fri Oct 14 2016 Björn Esser <fedora@besser82.io> - 0.0.0+16.10.20160913-3
Björn Esser eb36b00
- Updated Url-tag
Björn Esser eb36b00
Björn Esser 4638652
* Fri Oct 14 2016 Björn Esser <fedora@besser82.io> - 0.0.0+16.10.20160913-2
Björn Esser 4638652
- Drop dependency on glib2 and gtk-doc, own the dir in the package instead
Björn Esser 4638652
Björn Esser 099d2a2
* Fri Oct 07 2016 Björn Esser <fedora@besser82.io> - 0.0.0+16.10.20160913-1
Björn Esser 099d2a2
- Initial import (rhbz 1382813)
Björn Esser 099d2a2
Björn Esser 099d2a2
* Fri Oct 07 2016 Björn Esser <fedora@besser82.io> - 0.0.0+16.10.20160913-0.2
Björn Esser 099d2a2
- Add Requires for directory-ownership
Björn Esser 099d2a2
Björn Esser 099d2a2
* Thu Oct 06 2016 Björn Esser <fedora@besser82.io> - 0.0.0+16.10.20160913-0.1
Björn Esser 099d2a2
- Initial package (rhbz 1382813)