118 lines
3.3 KiB
RPMSpec
118 lines
3.3 KiB
RPMSpec
|
|
Summary: Application matching framework
|
||
|
|
Name: bamf
|
||
|
|
Version: 0.5.4
|
||
|
|
Release: 4%{?dist}
|
||
|
|
# Library bits are LGPLv2 or LGPLv3 (but not open-ended LGPLv2+);
|
||
|
|
# non-lib bits are GPLv3.
|
||
|
|
# pbrobinson points out that three files in the lib are actually
|
||
|
|
# marked GPL in headers, making library GPL, though we think this
|
||
|
|
# may not be upstream's intention. For now, marking library as
|
||
|
|
# GPL.
|
||
|
|
# License: LGPLv2 or LGPLv3
|
||
|
|
License: GPLv2 or GPLv3
|
||
|
|
URL: https://launchpad.net/bamf
|
||
|
|
Source0: http://launchpad.net/bamf/0.5/%{version}/+download/%{name}-%{version}.tar.gz
|
||
|
|
|
||
|
|
# Convert tests/gtester2xunit.py to Python 3 and lxml
|
||
|
|
Patch1: gtester2xunit-py3.patch
|
||
|
|
|
||
|
|
BuildRequires: vala
|
||
|
|
BuildRequires: gtk-doc
|
||
|
|
BuildRequires: gobject-introspection-devel
|
||
|
|
BuildRequires: python3-devel
|
||
|
|
BuildRequires: python3-lxml
|
||
|
|
BuildRequires: pkgconfig(gio-2.0)
|
||
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
||
|
|
BuildRequires: pkgconfig(glib-2.0)
|
||
|
|
BuildRequires: pkgconfig(libgtop-2.0)
|
||
|
|
BuildRequires: pkgconfig(libwnck-3.0)
|
||
|
|
BuildRequires: pkgconfig(x11)
|
||
|
|
BuildRequires: systemd
|
||
|
|
|
||
|
|
%description
|
||
|
|
BAMF removes the headache of applications matching into a simple DBus
|
||
|
|
daemon and C wrapper library. Currently features application matching
|
||
|
|
at amazing levels of accuracy (covering nearly every corner case).
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development files for %{name}
|
||
|
|
License: GPLv2 or GPLv3
|
||
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
# For %%{_libdir}/girepository-1.0 and %%{_datadir}/gir-1.0
|
||
|
|
#Requires: gobject-introspection-devel
|
||
|
|
Requires: pkgconfig
|
||
|
|
|
||
|
|
%description devel
|
||
|
|
The %{name}-devel package contains libraries and header files for
|
||
|
|
developing applications that use %{name}.
|
||
|
|
|
||
|
|
%package daemon
|
||
|
|
Summary: Application matching framework
|
||
|
|
License: GPLv3
|
||
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
%{?systemd_requires}
|
||
|
|
|
||
|
|
%description daemon
|
||
|
|
BAMF removes the headache of applications matching into a simple DBus
|
||
|
|
daemon and C wrapper library. Currently features application matching
|
||
|
|
at amazing levels of accuracy (covering nearly every corner case). This
|
||
|
|
package contains the bamf daemon and supporting data.
|
||
|
|
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -p1
|
||
|
|
|
||
|
|
# autotools add -Werror after our flags, and there are glib deprecation warnings
|
||
|
|
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940164
|
||
|
|
sed -i 's/ -Werror//' configure*
|
||
|
|
|
||
|
|
|
||
|
|
%build
|
||
|
|
CFLAGS="$RPM_OPT_FLAGS"
|
||
|
|
PYTHON="%{__python3}"
|
||
|
|
export CFLAGS PYTHON
|
||
|
|
%configure --disable-static --disable-webapps --enable-gtk-doc
|
||
|
|
make %{?_smp_mflags}
|
||
|
|
|
||
|
|
|
||
|
|
%install
|
||
|
|
make DESTDIR=%{buildroot} install
|
||
|
|
|
||
|
|
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
|
||
|
|
|
||
|
|
%ldconfig_scriptlets
|
||
|
|
|
||
|
|
%post daemon
|
||
|
|
%systemd_user_post %{name}daemon.service
|
||
|
|
|
||
|
|
%preun
|
||
|
|
%systemd_user_preun %{name}daemon.service
|
||
|
|
|
||
|
|
|
||
|
|
%files
|
||
|
|
%license COPYING.LGPL COPYING
|
||
|
|
%{_libdir}/libbamf3.so.*
|
||
|
|
%{_libdir}/girepository-1.0/Bamf*.typelib
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%doc ChangeLog TODO
|
||
|
|
%{_includedir}/libbamf3
|
||
|
|
%{_libdir}/libbamf3.so
|
||
|
|
%{_libdir}/pkgconfig/libbamf3.pc
|
||
|
|
%{_datadir}/gtk-doc
|
||
|
|
%{_datadir}/gir-1.0/Bamf*.gir
|
||
|
|
%dir %{_datadir}/vala
|
||
|
|
%dir %{_datadir}/vala/vapi
|
||
|
|
%{_datadir}/vala/vapi/libbamf3.vapi
|
||
|
|
|
||
|
|
%files daemon
|
||
|
|
%doc COPYING
|
||
|
|
%{_libexecdir}/bamf
|
||
|
|
%{_datadir}/dbus-1/services/*.service
|
||
|
|
%{_userunitdir}/bamfdaemon.service
|
||
|
|
%exclude %{_datadir}/upstart/sessions/bamfdaemon.conf
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Jul 23 2020 wangmian<wangmian@kylinos.cn> - 0.5.4-4
|
||
|
|
- Init bamf project
|