Package libdivecomputer-subsurface: Specfile

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/doxygen pkgconfig(bluez)
# END SourceDeps(oneline)
# see
%define _localstatedir %{_var}
%define major       0
%define libname     libdivecomputer-subsurface%{major}
%define develname   libdivecomputer-subsurface-devel

%define major_orig       0
%define libname_orig     libdivecomputere%{major_orig}
%define develname_orig   libdivecomputer-devel

# disable debuginfo, it's empty anyway due to static-only library
%global debug_package   %{nil}

Name:           libdivecomputer-subsurface
Summary:        Library for communication with dive computers
Version:        4.8.5
Release:        alt1_1
# includes "Public domain" portions from :
# aes.c
License:        LGPLv2+
Group:          Development/C

BuildRequires:  libusb-devel
BuildRequires:  zlib-devel
BuildRequires:  libtool

Libdivecomputer is a cross-platform and open source library for
communication with dive computers from various manufacturers.

%package -n %{develname}
Summary:    Header files and development libraries for %{name}
Group:      Development/C
Provides:   divecomputer-subsurface-devel = %{version}-%{release}
Conflicts:  %{develname_orig}

%description -n %{develname}
Header files and development libraries for %{name}.

%setup -q -n libdivecomputer-subsurface-branch-%{version}

# generate configure
autoreconf -fi

%configure \
  --disable-doc \
  --disable-silent-rules \
  --disable-shared \



# fix version in libdivecomputer.pc
sed -i -e 's,^Version.*,Version: %{version},' \

## unpackaged files
rm -f %{buildroot}%{_bindir}/dctool
rm -f %{buildroot}%{_libdir}/lib*.la

%files -n %{develname}
%doc --no-dereference COPYING

* Fri Mar 01 2019 Igor Vlasenko <> 4.8.5-alt1_1
- update by mgaimport

* Tue Oct 30 2018 Igor Vlasenko <> 4.8.3-alt1_1
- update by mgaimport

* Fri Jun 22 2018 Igor Vlasenko <> 4.7.8-alt1_1
- new version