gnome-bluetooth/gnome-bluetooth.spec

175 lines
5.5 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: gnome-bluetooth
Version: 3.28.2
Release: 1mamba
Summary: A fork of bluez-gnome focused on integration with the GNOME desktop environment
Group: Graphical Desktop/Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://live.gnome.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/gnome-bluetooth/%{majver}/gnome-bluetooth-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libXdmcp-devel
BuildRequires: libatk-devel
BuildRequires: libbsd-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libcanberra-devel
BuildRequires: libcap-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libltdl-devel
BuildRequires: libnotify-devel
BuildRequires: libogg-devel
BuildRequires: libpango-devel
BuildRequires: libpcre-devel
BuildRequires: libpng-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libtdb-devel
BuildRequires: libthai-devel
BuildRequires: libudev-devel
BuildRequires: libvorbis-devel
BuildRequires: libxcb-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
gnome-bluetooth is a fork of bluez-gnome focused on integration with the GNOME desktop environment.
gnome-bluetooth is the historical name of the first GNOME focused Bluetooth effort for Linux. As such, when the need came to name this project, we selected something that was still in the people's minds.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{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
%build
meson build \
--build=release \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--localstatedir=%{_localstatedir} \
--mandir=%{_mandir} \
--infodir=%{_datadir}/info \
-Denable-gtk-doc=true
ninja %{_smp_mflags} -C build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
DESTDIR=%{buildroot} ninja install -C build
%find_lang gnome-bluetooth2
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f gnome-bluetooth2.lang
%defattr(-,root,root)
%{_bindir}/bluetooth-sendto
%{_datadir}/applications/bluetooth-sendto.desktop
#%{_datadir}/applications/mimeinfo.cache
%{_datadir}/gnome-bluetooth/pin-code-database.xml
%{_datadir}/icons/hicolor/*/apps/bluetooth.png
%{_datadir}/icons/hicolor/*/status/bluetooth-active.png
%{_datadir}/icons/hicolor/*/status/bluetooth-disabled.png
%{_datadir}/icons/hicolor/*/status/bluetooth-paired.png
#%{_datadir}/icons/hicolor/icon-theme.cache
%{_datadir}/icons/hicolor/scalable/apps/bluetooth.svg
%{_datadir}/icons/hicolor/scalable/status/bluetooth-paired.svg
%{_mandir}/man1/bluetooth-sendto.1*
%doc AUTHORS COPYING
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libgnome-bluetooth.so.*
%{_libdir}/girepository-1.0/GnomeBluetooth-1.0.typelib
#%doc COPYING.LIB
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/gnome-bluetooth
%{_includedir}/gnome-bluetooth/*.h
%{_libdir}/libgnome-bluetooth.so
%{_libdir}/pkgconfig/gnome-bluetooth-1.0.pc
%{_datadir}/gir-1.0/GnomeBluetooth-1.0.gir
#%doc ChangeLog ChangeLog.pre-2.27 NEWS README
#%files apidocs
#%defattr(-,root,root)
#%dir %{_datadir}/gtk-doc/html/gnome-bluetooth
#%{_datadir}/gtk-doc/html/gnome-bluetooth/*
%changelog
* Wed Aug 01 2018 Automatic Build System <autodist@mambasoft.it> 3.28.2-1mamba
- automatic version update by autodist
* Fri Jul 20 2018 Automatic Build System <autodist@mambasoft.it> 3.28.1-1mamba
- automatic version update by autodist
* Sun Apr 15 2018 Automatic Build System <autodist@mambasoft.it> 3.28.0-1mamba
- automatic version update by autodist
* Fri Mar 03 2017 Automatic Build System <autodist@mambasoft.it> 3.20.1-1mamba
- automatic version update by autodist
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.20.0-1mamba
- update to 3.20.0
* Sat Apr 09 2016 Automatic Build System <autodist@mambasoft.it> 3.18.3-1mamba
- automatic version update by autodist
* Wed Jan 20 2016 Automatic Build System <autodist@mambasoft.it> 3.18.2-1mamba
- automatic version update by autodist
* Fri Dec 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.18.1-1mamba
- package created using the webbuild interface