lbalhar / rpms / bamf

Forked from rpms/bamf 4 years ago
Clone
7f7983b
Summary:	Application matching framework
7f7983b
Name:		bamf
7f7983b
Version:	0.2.104
df4ff6d
Release:	4%{?dist}
7f7983b
# Library bits are LGPLv2 or LGPLv3 (but not open-ended LGPLv2+);
7f7983b
# non-lib bits are GPLv3.
7f7983b
# pbrobinson points out that three files in the lib are actually
7f7983b
# marked GPL in headers, making library GPL, though we think this
7f7983b
# may not be upstream's intention. For now, marking library as
7f7983b
# GPL.
7f7983b
# License:	LGPLv2 or LGPLv3
7f7983b
License:	GPLv2 or GPLv3
7f7983b
Group:		System Environment/Libraries
7f7983b
URL:		https://launchpad.net/bamf
7f7983b
Source0:	http://launchpad.net/bamf/0.2/%{version}/+download/%{name}-%{version}.tar.gz
7f7983b
7f7983b
BuildRequires:	vala-tools
7f7983b
BuildRequires:	gtk-doc
7f7983b
BuildRequires:	dbus-glib-devel
7f7983b
BuildRequires:	gobject-introspection-devel
7f7983b
BuildRequires:	gtk2-devel
7f7983b
BuildRequires:	gtk3-devel
7f7983b
BuildRequires:	pkgconfig(libwnck-1.0)
7f7983b
BuildRequires:	pkgconfig(libwnck-3.0)
7f7983b
BuildRequires:	libgtop2-devel
7f7983b
7f7983b
%description
7f7983b
BAMF removes the headache of applications matching into a simple DBus
7f7983b
daemon and C wrapper library. Currently features application matching
7f7983b
at amazing levels of accuracy (covering nearly every corner case). This
7f7983b
package contains the bamf library built against GTK+ 2.
7f7983b
7f7983b
%package	devel
7f7983b
Summary:	Development files for %{name}
7f7983b
Group:		Development/Libraries
7f7983b
License:	GPLv2 or GPLv3
7f7983b
Requires:	%{name} = %{version}-%{release}
7f7983b
# For %{_libdir}/girepository-1.0 and %{_datadir}/gir-1.0
7f7983b
#Requires:	gobject-introspection-devel
7f7983b
Requires:	pkgconfig
7f7983b
7f7983b
%description	devel
7f7983b
The %{name}-devel package contains libraries and header files for
7f7983b
developing applications that use %{name}.
7f7983b
7f7983b
%package	daemon
7f7983b
Summary:	Application matching framework
7f7983b
Group:		System Environment/Libraries
7f7983b
License:	GPLv3
7f7983b
7f7983b
%description	daemon
7f7983b
BAMF removes the headache of applications matching into a simple DBus
7f7983b
daemon and C wrapper library. Currently features application matching
7f7983b
at amazing levels of accuracy (covering nearly every corner case). This
7f7983b
package contains the bamf daemon and supporting data.
7f7983b
7f7983b
%package -n	%{name}3
7f7983b
Summary:	Application matching framework (GTK+ 3 build)
7f7983b
7f7983b
%description -n	%{name}3
7f7983b
BAMF removes the headache of applications matching into a simple DBus
7f7983b
daemon and C wrapper library. Currently features application matching
7f7983b
at amazing levels of accuracy (covering nearly every corner case). This
7f7983b
package contains the bamf library built against GTK+ 3.
7f7983b
7f7983b
%package -n	%{name}3-devel
7f7983b
Summary:	Development files for %{name} (GTK+ 3 build)
7f7983b
Group:		Development/Libraries
7f7983b
License:	GPLv2 or GPLv3
7f7983b
Requires:	%{name}3 = %{version}-%{release}
7f7983b
# For %{_libdir}/girepository-1.0 and %{_datadir}/gir-1.0
7f7983b
#Requires:	gobject-introspection-devel
7f7983b
Requires:	pkgconfig
7f7983b
7f7983b
%description -n	%{name}3-devel
7f7983b
The %{name}3-devel package contains libraries and header files for
7f7983b
developing applications that use %{name} (GTK+ 3 build).
7f7983b
7f7983b
7f7983b
%prep
7f7983b
%setup -q
7f7983b
7f7983b
%build
7f7983b
%global _configure ../configure
7f7983b
rm -rf build-gtk3 build-gtk2
7f7983b
mkdir build-gtk3 build-gtk2
7f7983b
pushd build-gtk2
7f7983b
%configure --disable-static --with-gtk=2 --enable-gtk-doc
7f7983b
make %{?_smp_mflags}
7f7983b
popd
7f7983b
pushd build-gtk3
7f7983b
%configure --disable-static --with-gtk=3 --enable-gtk-doc
7f7983b
make %{?_smp_mflags}
7f7983b
popd
7f7983b
7f7983b
%install
7f7983b
rm -rf %{buildroot}
7f7983b
7f7983b
make -C build-gtk2 DESTDIR=%{buildroot} install
7f7983b
make -C build-gtk3 DESTDIR=%{buildroot} install
7f7983b
7f7983b
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
7f7983b
7f7983b
%post -p /sbin/ldconfig
7f7983b
%postun -p /sbin/ldconfig
7f7983b
7f7983b
%clean
7f7983b
rm -rf %{name}-%{version} %{name}-%{version}-gtk3
7f7983b
7f7983b
%files
7f7983b
%defattr(-,root,root,-)
7f7983b
%doc COPYING.LGPL COPYING
7f7983b
%{_libdir}/libbamf.so.*
7f7983b
7f7983b
%files -n	%{name}3
7f7983b
%doc COPYING.LGPL COPYING
7f7983b
%{_libdir}/libbamf3.so.*
7f7983b
7f7983b
%files		devel
7f7983b
%defattr(-,root,root,-)
7f7983b
%doc COPYING.LGPL COPYING
7f7983b
%{_includedir}/libbamf
7f7983b
%{_libdir}/libbamf.so
7f7983b
%{_libdir}/pkgconfig/libbamf.pc
7f7983b
%{_datadir}/gtk-doc
7f7983b
# Installation of these was disabled in the 0.2.72 release commit,
7f7983b
# with no explanation - http://bazaar.launchpad.net/~unity-team/bamf/trunk/revision/374
7f7983b
#%{_libdir}/girepository-1.0/Bamf*.typelib
7f7983b
#%{_datadir}/gir-1.0/Bamf*.gir
7f7983b
#%{_datadir}/vala/vapi/Bamf*.vapi
7f7983b
7f7983b
%files -n	%{name}3-devel
7f7983b
%defattr(-,root,root,-)
7f7983b
%doc COPYING.LGPL COPYING
7f7983b
%{_includedir}/libbamf3
7f7983b
%{_libdir}/libbamf3.so
7f7983b
%{_libdir}/pkgconfig/libbamf3.pc
7f7983b
%{_datadir}/gtk-doc
7f7983b
7f7983b
%files		daemon
7f7983b
%defattr(-,root,root,-)
7f7983b
%doc COPYING
7f7983b
%{_libexecdir}/bamfdaemon
7f7983b
%{_datadir}/dbus-1/services/*.service
7f7983b
7f7983b
%changelog
7f7983b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.104-4
7f7983b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f7983b
7f7983b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.104-3
7f7983b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f7983b
7f7983b
* Thu Nov 10 2011 Adam Williamson <awilliam@redhat.com> - 0.2.104-1
7f7983b
- new version, adjust for various upstream fixes
7f7983b
- rebuild against new libpng
7f7983b
- build both gtk+2 and gtk+3 libs, and package separately (like Ubuntu)
7f7983b
7f7983b
* Wed May 25 2011 Adam Williamson <awilliam@redhat.com> - 0.2.90-2
7f7983b
- don't depend on gtk-doc but own /usr/share/gtk-doc instead (#707545)
7f7983b
7f7983b
* Wed May 11 2011 Adam Williamson <awilliam@redhat.com> - 0.2.90-1
7f7983b
- new release 0.2.90
7f7983b
7f7983b
* Wed Mar 23 2011 Adam Williamson <awilliam@redhat.com> - 0.2.80-1
7f7983b
- new release 0.2.80
7f7983b
7f7983b
* Mon Mar 07 2011 Adam Williamson <awilliam@redhat.com> - 0.2.78-1
7f7983b
- new release 0.2.78
7f7983b
7f7983b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.74-2
7f7983b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7f7983b
7f7983b
* Sun Jan 23 2011 Adam Williamson <awilliam@redhat.com> - 0.2.74-1
7f7983b
- new release 0.2.74
7f7983b
- update license of library (thanks pbrobinson)
7f7983b
- fix build by disabling a strict warning which seems to have showed
7f7983b
  up in gcc-4.6.0-0.3
7f7983b
- gir and vala devel files aren't getting installed any more
7f7983b
7f7983b
* Fri Dec 03 2010 Adam Williamson <awilliam@redhat.com> - 0.2.64-1
7f7983b
- initial package