libappindicator/libappindicator.spec

234 lines
6.6 KiB
RPMSpec

Name: libappindicator
Version: 12.10.0
Release: 3mamba
Summary: Allow applications to export a menu into the Unity Menu bar
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://launchpad.net/libappindicator
Source: https://launchpad.net/libappindicator/12.10/%{version}/+download/libappindicator-%{version}.tar.gz
Patch0: libappindicator-12.10.0-libglib-2.60.5.patch
Patch1: libappindicator-12.10.0-mono-4.2.2.30.patch
Patch2: libappindicator-12.10.0-nopython.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gtk-sharp2-devel
BuildRequires: libatk-devel
BuildRequires: libbrotli-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libdbusmenu-devel
BuildRequires: libdbusmenu-gtk-devel
BuildRequires: libdbusmenu-gtk3-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk2-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libindicator-devel
BuildRequires: libindicator3-devel
BuildRequires: libpango-devel
BuildRequires: libpcre-devel
BuildRequires: libpng-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Obsoletes: libappindicator-python <= 12.10.0-2mamba
Obsoletes: python-appindicator <= 12.10.0-2mamba
%description
Allow applications to export a menu into the Unity Menu bar.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-mono = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n %{name}3
Group: System/Libraries
Summary: Allow Gtk3 applications to export a menu into the Unity Menu bar
Requires: %{name}3 = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n %{name}3
Allow Gtk3 applications to export a menu into the Unity Menu bar.
%package -n %{name}3-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name}3 = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n %{name}3-devel
This package contains libraries and header files for developing applications that use %{name}.
%package mono
Group: System/Libraries
Summary: Mono binings for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description mono
This package contains the Mono bindings for %{name}.
#%package -n python-appindicator
#Group: System/Libraries
#Summary: Python binings for %{name}
#Provides: libappindicator-python
#Obsoletes: libappindicator-python <= 12.10.0-2mamba
#Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
#
#%description -n python-appindicator
#This package contains the Python bindings for %{name}.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%debug_package
%prep
%setup -q -c
#-D -T
#:<< _EOF
tar xf %{SOURCE0}
mv %{name}-%{version} build-gtk2
cd build-gtk2
%patch0 -p1
%patch1 -p1
%patch2 -p1
sed -i "s#gmcs#mcs#g" configure.ac
# fix for gtk-doc 1.26
sed -i 's/--nogtkinit//' docs/reference/Makefile.am
gtkdocize --copy
cp -f gtk-doc.make gtk-doc.local.make
autoreconf -vif
cd ..
cp -a build-gtk2 build-gtk3
%build
#:<< _EOF
cd build-gtk2
%configure \
--enable-gtk-doc \
--with-gtk=2 \
--disable-mono-test \
--disable-gtk-doc-html \
--disable-static \
--disable-tests \
CFLAGS="-Wno-deprecated-declarations -Wno-error"
%make -j1 V=1
cd ..
#_ EOF
cd build-gtk3
%configure \
--enable-gtk-doc \
--with-gtk=3 \
--disable-mono-test \
--disable-gtk-doc-html \
--disable-static \
--disable-tests \
CFLAGS="-Wno-deprecated-declarations -Wno-error"
%make -j1 V=1
cd ..
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build-gtk2
%makeinstall -C build-gtk3
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n %{name}3 -p /sbin/ldconfig
%postun -n %{name}3 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libappindicator.so.*
%{_libdir}/girepository-1.0/AppIndicator-0.1.typelib
%doc build-gtk2/AUTHORS build-gtk2/COPYING
%files -n libappindicator3
%defattr(-,root,root)
%{_libdir}/libappindicator3.so.*
%{_libdir}/girepository-1.0/AppIndicator3-0.1.typelib
%doc build-gtk3/AUTHORS build-gtk3/COPYING
%files mono
%defattr(-,root,root)
%{_prefix}/lib/mono/*
%dir %{_libdir}/appindicator-sharp-0.1
%{_libdir}/appindicator-sharp-0.1/*
#%files -n python-appindicator
#%defattr(-,root,root)
#%dir %{python27_sitearch}/appindicator
#%{python27_sitearch}/appindicator/__init__.py*
#%{python27_sitearch}/appindicator/_appindicator.*
#%{_datadir}/pygtk/2.0/defs/appindicator.defs
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libappindicator-0.1
%dir %{_includedir}/libappindicator-0.1/libappindicator
%{_includedir}/libappindicator-0.1/libappindicator/*
%{_libdir}/libappindicator.la
%{_libdir}/libappindicator.so
%{_datadir}/gir-1.0/AppIndicator-0.1.gir
%{_datadir}/vala/vapi/appindicator-0.1.deps
%{_datadir}/vala/vapi/appindicator-0.1.vapi
%{_libdir}/pkgconfig/appindicator-sharp-0.1.pc
%{_libdir}/pkgconfig/appindicator-0.1.pc
%doc build-gtk2/ChangeLog build-gtk2/README
%files -n %{name}3-devel
%defattr(-,root,root)
%dir %{_includedir}/libappindicator3-0.1
%dir %{_includedir}/libappindicator3-0.1/libappindicator
%{_includedir}/libappindicator3-0.1/libappindicator/*
%{_libdir}/libappindicator3.la
%{_libdir}/libappindicator3.so
%{_datadir}/gir-1.0/AppIndicator3-0.1.gir
%{_datadir}/vala/vapi/appindicator3-0.1.deps
%{_datadir}/vala/vapi/appindicator3-0.1.vapi
%{_libdir}/pkgconfig/appindicator3-0.1.pc
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/libappindicator
%{_datadir}/gtk-doc/html/libappindicator/*
%changelog
* Mon Nov 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 12.10.0-3mamba
- rebuilt with build fixes
* Sat Jul 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 12.10.0-2mamba
- added python 3.6 binding
* Tue Mar 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 12.10.0-1mamba
- package created using the webbuild interface