diff --git a/0.2.0.tar.gz b/0.2.0.tar.gz
new file mode 100644
index 0000000..1ee1843
--- /dev/null
+++ b/0.2.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:83de52644365fe01f90103c7db60c70e007f751c97a415a0b42f2c80334e6e59
+size 56540
diff --git a/_service b/_service
deleted file mode 100644
index e7543db..0000000
--- a/_service
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- git
- https://git.osmocom.org/osmo-e1d
- 0.1.1
- 0.1.1
-
-
- *.tar
- xz
-
-
-
diff --git a/osmo-e1d-0.1.1.tar.xz b/osmo-e1d-0.1.1.tar.xz
deleted file mode 100644
index 1942a25..0000000
--- a/osmo-e1d-0.1.1.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:0296d67d2fe8d34eb409504bc078144601b0c725d3bc5fa7c7e62a8c13854742
-size 33640
diff --git a/osmo-e1d.changes b/osmo-e1d.changes
index b03350e..f8509ad 100644
--- a/osmo-e1d.changes
+++ b/osmo-e1d.changes
@@ -1,3 +1,14 @@
+-------------------------------------------------------------------
+Sun Mar 14 20:40:13 UTC 2021 - Jan Engelhardt
+
+- Update to release 0.2.0
+ * Add support for icE1usb interrupt endpoint error reporting.
+ * Add per-line rate counter group to count various errors.
+ * Support for control endpoint requests to icE1usb to switch
+ Rx/Tx mode.
+ * Evaluate received E and A bits in TS0.
+ * Add new "osmo-e1gen" program.
+
-------------------------------------------------------------------
Sun Sep 6 12:49:15 UTC 2020 - Jan Engelhardt
diff --git a/osmo-e1d.spec b/osmo-e1d.spec
index 2641924..2ffffeb 100644
--- a/osmo-e1d.spec
+++ b/osmo-e1d.spec
@@ -1,7 +1,7 @@
#
# spec file for package osmo-e1d
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2019, Martin Hauke
#
# All modifications and additions to the file contributed by third parties
@@ -13,29 +13,30 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
+
Name: osmo-e1d
-Version: 0.1.1
+Version: 0.2.0
Release: 0
Summary: Osmocom E1 Daemon
License: GPL-2.0-or-later
Group: Productivity/Telephony/Utilities
URL: https://osmocom.org/projects/osmo-e1d/wiki/Wiki
-Source: %name-%version.tar.xz
-BuildRequires: automake
+Source: https://github.com/osmocom/osmo-e1d/archive/%version.tar.gz
+BuildRequires: automake >= 1.9
BuildRequires: libtool >= 2
BuildRequires: pkg-config >= 0.20
BuildRequires: systemd-rpm-macros
-BuildRequires: pkgconfig(libosmocore) >= 1.0.1.120
-BuildRequires: pkgconfig(libosmousb)
-BuildRequires: pkgconfig(libosmovty)
+BuildRequires: pkgconfig(libosmocore) >= 1.5.0
+BuildRequires: pkgconfig(libosmousb) >= 1.5.0
+BuildRequires: pkgconfig(libosmovty) >= 1.5.0
BuildRequires: pkgconfig(libusb-1.0) >= 1.0.21
BuildRequires: pkgconfig(talloc) >= 2.0.1
%description
-osmo-e1d is an E1 interface deamon that is part of the Osmocom E1
+osmo-e1d is an E1 interface daemon that is part of the Osmocom E1
interface driver architecture. It was primarily written for the
ICE40_E1_USB_interface (ICE40 based E1 framer IP core developed by
tnt).
@@ -44,19 +45,19 @@ osmo-e1d acts as an interface between the hardware/firmware of the E1
interface on the bottom side, and applications wanting to use E1
timeslots on the top side.
-%package -n libosmo-e1d0
+%package -n libosmo-e1d1
Summary: Osmocom E1 daemon protocol library
License: LGPL-3.0-or-later
Group: System/Libraries
-%description -n libosmo-e1d0
+%description -n libosmo-e1d1
Osmocom E1 Daemon Protocol Library.
%package -n libosmo-e1d-devel
Summary: Header files for the Osmocom E1 daemon protocol library
License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++
-Requires: libosmo-e1d0 = %version
+Requires: libosmo-e1d1 = %version
%description -n libosmo-e1d-devel
This subpackage contains libraries and header files for developing
@@ -68,7 +69,8 @@ applications that want to make use of libosmo-e1d.
%build
echo "%version" >.tarball-version
autoreconf -fiv
-%configure --disable-static \
+# bugzilla.opensuse.org/795968 for rationale
+%configure --includedir="%_includedir/%name" --disable-static \
--docdir="%_docdir/%name" \
--with-systemdsystemunitdir="%_unitdir"
%make_build
@@ -81,8 +83,8 @@ rm -Rf "%buildroot/%_sysconfdir/osmocom"
%check
%make_build check || find . -name testsuite.log -exec cat {} +
-%post -n libosmo-e1d0 -p /sbin/ldconfig
-%postun -n libosmo-e1d0 -p /sbin/ldconfig
+%post -n libosmo-e1d1 -p /sbin/ldconfig
+%postun -n libosmo-e1d1 -p /sbin/ldconfig
%preun
%service_del_preun %name.service
@@ -106,12 +108,11 @@ rm -Rf "%buildroot/%_sysconfdir/osmocom"
%_docdir/%name/examples/osmo-e1d.cfg
%_unitdir/osmo-e1d.service
-%files -n libosmo-e1d0
-%_libdir/libosmo-e1d.so.0*
+%files -n libosmo-e1d1
+%_libdir/libosmo-e1d.so.1*
%files -n libosmo-e1d-devel
-%dir %_includedir/osmocom/
-%_includedir/osmocom/e1d/
+%_includedir/%name/
%_libdir/libosmo-e1d.so
%_libdir/pkgconfig/libosmo-e1d.pc