lbalhar / rpms / bamf

Forked from rpms/bamf 4 years ago
Clone
f6e9767
Summary:        Application matching framework
f6e9767
Name:           bamf
97f0cf1
Version:        0.5.4
225b897
Release:        3%{?dist}.1
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.
f6e9767
# License:      LGPLv2 or LGPLv3
f6e9767
License:        GPLv2 or GPLv3
f6e9767
URL:            https://launchpad.net/bamf
b0e8a64
Source0:        http://launchpad.net/bamf/0.5/%{version}/+download/%{name}-%{version}.tar.gz
225b897
# Modules libxml2 and libxslt were here only for tests/gtester2xunit.py
225b897
# but this script is not executed during build nor distributed in any RPM.
225b897
# Moreover, python[23]-libxslt aren't available in rawhide which is causing
225b897
# this package to FTBFS.
225b897
Patch0:         Disable-libxml2-and-libxslt-check.patch
f6e9767
c504ac8
BuildRequires:  vala
f6e9767
BuildRequires:  gtk-doc
f6e9767
BuildRequires:  gobject-introspection-devel
f6e9767
BuildRequires:  pkgconfig(gio-2.0)
f6e9767
BuildRequires:  pkgconfig(gio-unix-2.0)
f6e9767
BuildRequires:  pkgconfig(glib-2.0)
f6e9767
BuildRequires:  pkgconfig(libgtop-2.0)
f6e9767
BuildRequires:  pkgconfig(libwnck-3.0)
f6e9767
BuildRequires:  pkgconfig(x11)
58ff350
BuildRequires:  systemd
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
b0e8a64
at amazing levels of accuracy (covering nearly every corner case).
7f7983b
f6e9767
%package        devel
f6e9767
Summary:        Development files for %{name}
f6e9767
License:        GPLv2 or GPLv3
de92d7b
Requires:       %{name}%{?_isa} = %{version}-%{release}
b0e8a64
# For %%{_libdir}/girepository-1.0 and %%{_datadir}/gir-1.0
f6e9767
#Requires:      gobject-introspection-devel
f6e9767
Requires:       pkgconfig
7f7983b
f6e9767
%description    devel
7f7983b
The %{name}-devel package contains libraries and header files for
7f7983b
developing applications that use %{name}.
7f7983b
f6e9767
%package        daemon
f6e9767
Summary:        Application matching framework
f6e9767
License:        GPLv3
de92d7b
Requires:       %{name}%{?_isa} = %{version}-%{release}
58ff350
%{?systemd_requires}
7f7983b
f6e9767
%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
7f7983b
%prep
58ff350
%autosetup -p1
7f7983b
fa1423e
# autotools add -Werror after our flags, and there are glib deprecation warnings
fa1423e
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940164
fa1423e
sed -i 's/ -Werror//' configure*
fa1423e
fa1423e
7f7983b
%build
fa1423e
CFLAGS="$RPM_OPT_FLAGS"
225b897
export CFLAGS
b0e8a64
%configure --disable-static --disable-webapps --enable-gtk-doc
b0e8a64
make %{?_smp_mflags}
b0e8a64
7f7983b
7f7983b
%install
b0e8a64
make DESTDIR=%{buildroot} install
7f7983b
7f7983b
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
7f7983b
39b285f
%ldconfig_scriptlets
7f7983b
58ff350
%post daemon
58ff350
%systemd_user_post %{name}daemon.service
58ff350
58ff350
%preun
58ff350
%systemd_user_preun %{name}daemon.service
58ff350
7f7983b
7f7983b
%files
58ff350
%license COPYING.LGPL COPYING
7f7983b
%{_libdir}/libbamf3.so.*
58ff350
%{_libdir}/girepository-1.0/Bamf*.typelib
7f7983b
b0e8a64
%files devel
b0e8a64
%doc ChangeLog TODO
7f7983b
%{_includedir}/libbamf3
7f7983b
%{_libdir}/libbamf3.so
7f7983b
%{_libdir}/pkgconfig/libbamf3.pc
7f7983b
%{_datadir}/gtk-doc
f6e9767
%{_datadir}/gir-1.0/Bamf*.gir
f6e9767
%dir %{_datadir}/vala
f6e9767
%dir %{_datadir}/vala/vapi
f6e9767
%{_datadir}/vala/vapi/libbamf3.vapi
7f7983b
58ff350
%files daemon
7f7983b
%doc COPYING
b0e8a64
%{_libexecdir}/bamf
7f7983b
%{_datadir}/dbus-1/services/*.service
58ff350
%{_userunitdir}/bamfdaemon.service
58ff350
%exclude %{_datadir}/upstart/sessions/bamfdaemon.conf
7f7983b
7f7983b
%changelog
225b897
* Thu Oct 17 2019 Lumír Balhar <lbalhar@redhat.com> - 0.5.4-3.1
225b897
- Remove unused Python dependencies
225b897
44e0767
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-2.1
44e0767
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
44e0767
1a731ef
* Sun Jun  2 2019 Michel Alexandre Salim <michel@lumiere.local> - 0.5.4-1.1
1a731ef
- Fix incorrect obsoletes
1a731ef
97f0cf1
* Sun Jun  2 2019 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5.4-1
97f0cf1
- Update to 0.5.4
97f0cf1
c504ac8
* Mon Feb 04 2019 Kalev Lember <klember@redhat.com> - 0.5.3-9
c504ac8
- Update BRs for vala packaging changes
c504ac8
983f708
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-8
983f708
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
983f708
ad9ff27
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-7
ad9ff27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ad9ff27
267bf09
* Wed Mar 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.3-6
267bf09
- Update Python 2 dependency declarations to new packaging standards
267bf09
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
267bf09
0998171
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-5
0998171
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0998171
5be7af8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-4
5be7af8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5be7af8
596d7a5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
596d7a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
596d7a5
b37180c
* Tue Jun 13 2017 Kalev Lember <klember@redhat.com> - 0.5.3-2
b37180c
- Rebuilt for libgtop2 soname bump
b37180c
58ff350
* Tue Feb 21 2017 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5.3-1
58ff350
- Update to 0.5.3
58ff350
- Package systemd user unit
58ff350
- Move Bamf-3.typelib back to main package
58ff350
bbc101b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-2
bbc101b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bbc101b
581ef6a
* Fri Aug 19 2016 Adam Miller <maxamillion@fedoraproject.org> - 0.5.1-1
581ef6a
- Update to latest upstream (BZ#1017540)
581ef6a
- Remove patches that were merged upstream
581ef6a
b6cf39b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-7
b6cf39b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b6cf39b
a76e07a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-6
a76e07a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a76e07a
5bf9161
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5
5bf9161
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5bf9161
ed8376d
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.5.0-4
ed8376d
- Rebuilt for gobject-introspection 1.41.4
ed8376d
1e71b4e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
1e71b4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1e71b4e
a706b53
* Thu May 01 2014 Kalev Lember <kalevlember@gmail.com> - 0.5.0-2
a706b53
- Rebuilt for libgtop2 soname bump
a706b53
b0e8a64
* Fri Feb 14 2014 Michel Salim <salimma@fedoraproject.org> - 0.5.0-1
b0e8a64
- Update to 0.5.0
b0e8a64
6eecf97
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-4
6eecf97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6eecf97
11dcc1f
* Thu Jun 13 2013 Michel Salim <salimma@fedoraproject.org> - 0.3.6-3
11dcc1f
- Spec clean-ups
11dcc1f
5663a31
* Thu Apr 25 2013 Tom Callaway <spot@fedoraproject.org> - 0.3.6-2
5663a31
- fix build
5663a31
f6e9767
* Sat Apr 20 2013 Michel Salim <salimma@fedoraproject.org> - 0.3.6-1
f6e9767
- Update to 0.3.6
f6e9767
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