Blame SPECS/libappindicator.spec

e02b61
Name:		libappindicator
e02b61
Version:	12.10.0
e02b61
Release:	13%{?dist}
e02b61
Summary:	Application indicators library
e02b61
e02b61
License:	LGPLv2 and LGPLv3
e02b61
URL:		https://launchpad.net/libappindicator
e02b61
Source0:	https://launchpad.net/libappindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz
e02b61
e02b61
Patch0:	        covscan.patch
e02b61
e02b61
BuildRequires:	autoconf
e02b61
BuildRequires:	automake
e02b61
BuildRequires:	gtk-doc
e02b61
BuildRequires:	vala-tools
e02b61
BuildRequires:	dbus-glib-devel
e02b61
BuildRequires:	libdbusmenu-devel
e02b61
BuildRequires:	libdbusmenu-gtk2-devel
e02b61
BuildRequires:	libdbusmenu-gtk3-devel
e02b61
BuildRequires:	gobject-introspection-devel
e02b61
BuildRequires:	gtk2-devel
e02b61
BuildRequires:	gtk3-devel
e02b61
BuildRequires:	libindicator-devel
e02b61
BuildRequires:	libindicator-gtk3-devel
e02b61
BuildRequires:	python2-devel
e02b61
BuildRequires:	pygtk2-devel
e02b61
e02b61
%description
e02b61
A library to allow applications to export a menu into the Unity Menu bar. Based
e02b61
on KSNI it also works in KDE and will fallback to generic Systray support if
e02b61
none of those are available.
e02b61
e02b61
e02b61
%package -n python-appindicator
e02b61
Summary:	Python 2 bindings for %{name}
e02b61
e02b61
Requires:	%{name} = %{version}-%{release}
e02b61
e02b61
%description -n python-appindicator
e02b61
This package contains the Python 2 bindings for the appindicator library.
e02b61
e02b61
e02b61
%package devel
e02b61
Summary:	Development files for %{name}
e02b61
e02b61
Requires:	%{name} = %{version}-%{release}
e02b61
Requires:	dbus-glib-devel
e02b61
Requires:	libdbusmenu-devel
e02b61
e02b61
%description devel
e02b61
This package contains the development files for the appindicator library.
e02b61
e02b61
e02b61
%package gtk3
e02b61
Summary:	Application indicators library - GTK 3
e02b61
e02b61
%description gtk3
e02b61
A library to allow applications to export a menu into the Unity Menu bar. Based
e02b61
on KSNI it also works in KDE and will fallback to generic Systray support if
e02b61
none of those are available.
e02b61
e02b61
This package contains the GTK 3 version of this library.
e02b61
e02b61
e02b61
%package gtk3-devel
e02b61
Summary:	Development files for %{name}-gtk3
e02b61
e02b61
Requires:	%{name}-gtk3 = %{version}-%{release}
e02b61
Requires:	dbus-glib-devel
e02b61
Requires:	libdbusmenu-devel
e02b61
e02b61
%description gtk3-devel
e02b61
This package contains the development files for the appindicator-gtk3 library.
e02b61
e02b61
e02b61
%package docs
e02b61
Summary:	Documentation for %{name} and %{name}-gtk3
e02b61
e02b61
BuildArch:	noarch
e02b61
e02b61
%description docs
e02b61
This package contains the documentation for the appindicator and
e02b61
appindicator-gtk3 libraries.
e02b61
e02b61
e02b61
%prep
e02b61
%autosetup -p1
e02b61
e02b61
sed -i "s#gmcs#mcs#g" configure.ac
e02b61
autoreconf -vif
e02b61
e02b61
e02b61
%build
e02b61
%global _configure ../configure
e02b61
mkdir build-gtk2 build-gtk3
e02b61
e02b61
pushd build-gtk2
e02b61
export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations"
e02b61
%configure --with-gtk=2 --enable-gtk-doc --disable-static
e02b61
# Parallel make, crash the build
e02b61
make -j1 V=1
e02b61
popd
e02b61
e02b61
pushd build-gtk3
e02b61
export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations"
e02b61
%configure --with-gtk=3 --enable-gtk-doc --disable-static
e02b61
# Parallel make, crash the build
e02b61
make -j1 V=1
e02b61
popd
e02b61
e02b61
e02b61
%install
e02b61
pushd build-gtk2
e02b61
make install DESTDIR=%{buildroot}
e02b61
popd
e02b61
e02b61
pushd build-gtk3
e02b61
make install DESTDIR=%{buildroot}
e02b61
popd
e02b61
e02b61
find %{buildroot} -type f -name '*.la' -delete
e02b61
e02b61
e02b61
%post -p /sbin/ldconfig
e02b61
e02b61
%postun -p /sbin/ldconfig
e02b61
e02b61
e02b61
%post gtk3 -p /sbin/ldconfig
e02b61
e02b61
%postun gtk3 -p /sbin/ldconfig
e02b61
e02b61
e02b61
%files
e02b61
%doc AUTHORS README COPYING COPYING.LGPL.2.1
e02b61
%{_libdir}/libappindicator.so.*
e02b61
%{_libdir}/girepository-1.0/AppIndicator-0.1.typelib
e02b61
e02b61
e02b61
%files -n python-appindicator
e02b61
%dir %{python_sitearch}/appindicator/
e02b61
%{python_sitearch}/appindicator/__init__.py*
e02b61
%{python_sitearch}/appindicator/_appindicator.so
e02b61
%dir %{_datadir}/pygtk/
e02b61
%dir %{_datadir}/pygtk/2.0/
e02b61
%dir %{_datadir}/pygtk/2.0/defs/
e02b61
%{_datadir}/pygtk/2.0/defs/appindicator.defs
e02b61
e02b61
e02b61
%files devel
e02b61
%dir %{_includedir}/libappindicator-0.1/
e02b61
%dir %{_includedir}/libappindicator-0.1/libappindicator/
e02b61
%{_includedir}/libappindicator-0.1/libappindicator/*.h
e02b61
%{_libdir}/libappindicator.so
e02b61
%{_libdir}/pkgconfig/appindicator-0.1.pc
e02b61
%{_datadir}/gir-1.0/AppIndicator-0.1.gir
e02b61
%{_datadir}/vala/vapi/appindicator-0.1.vapi
e02b61
%{_datadir}/vala/vapi/appindicator-0.1.deps
e02b61
e02b61
e02b61
%files gtk3
e02b61
%doc AUTHORS README COPYING COPYING.LGPL.2.1
e02b61
%{_libdir}/libappindicator3.so.*
e02b61
%{_libdir}/girepository-1.0/AppIndicator3-0.1.typelib
e02b61
e02b61
e02b61
%files gtk3-devel
e02b61
%dir %{_includedir}/libappindicator3-0.1/
e02b61
%dir %{_includedir}/libappindicator3-0.1/libappindicator/
e02b61
%{_includedir}/libappindicator3-0.1/libappindicator/*.h
e02b61
%{_libdir}/libappindicator3.so
e02b61
%{_libdir}/pkgconfig/appindicator3-0.1.pc
e02b61
%{_datadir}/gir-1.0/AppIndicator3-0.1.gir
e02b61
%{_datadir}/vala/vapi/appindicator3-0.1.vapi
e02b61
%{_datadir}/vala/vapi/appindicator3-0.1.deps
e02b61
e02b61
e02b61
%files docs
e02b61
%doc %{_datadir}/gtk-doc/html/libappindicator/
e02b61
e02b61
e02b61
%changelog
e02b61
* Mon Feb 26 2018 Tomas Popela <tpopela@redhat.com> - 12.10.0-13
e02b61
- Fix covscan warning
e02b61
- Resolves: rhbz#1546657
e02b61
e02b61
* Tue Feb 20 2018 Tomas Popela <tpopela@redhat.com> - 12.10.0-12
e02b61
- Move package from EPEL 7 to RHEL 7, but leave the mono support in EPEL in
e02b61
  libappindicator-sharp package.
e02b61
- Resolves: rhbz#1546657
e02b61
e02b61
* Fri Sep 09 2016 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 12.10.0-11
e02b61
- Rebuilt for Mono4 in Epel7
e02b61
e02b61
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-10
e02b61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e02b61
e02b61
* Mon May 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 12.10.0-9
e02b61
- Rebuild (mono4)
e02b61
e02b61
* Sun Jan  4 2015 Peter Robinson <pbrobinson@fedoraproject.org> 12.10.0-8
e02b61
- Rather than exclude the entire library from non mono arches just don't build the bindings
e02b61
e02b61
* Mon Dec 29 2014 Eduardo Echeverria  <echevemaster@gmail.com> - 12.10.0-7
e02b61
- Added workaround -Wno-deprecated-declarations for fix FTBFS
e02b61
e02b61
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-6
e02b61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e02b61
e02b61
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 12.10.0-5
e02b61
- Rebuilt for gobject-introspection 1.41.4
e02b61
e02b61
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-4
e02b61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e02b61
e02b61
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-3
e02b61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e02b61
e02b61
* Thu Jun 13 2013 Dan HorĂ¡k <dan[at]danny.cz> - 12.10.0-2
e02b61
- set ExclusiveArch
e02b61
e02b61
* Fri May 31 2013 Eduardo Echeverria  <echevemaster@gmail.com> - 12.10.0-1
e02b61
- Initial Packaging