diff --git a/_service b/_service
new file mode 100644
index 0000000..cbab10d
--- /dev/null
+++ b/_service
@@ -0,0 +1,14 @@
+
+
+ git
+ https://github.com/libyal/libcpath
+ b0c579ef46cc170792bc358be092ded838070a21
+
+ 20210411
+
+
+ *.tar
+ xz
+
+
+
diff --git a/libcpath-20210411.tar.xz b/libcpath-20210411.tar.xz
new file mode 100644
index 0000000..02bdb0d
--- /dev/null
+++ b/libcpath-20210411.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:414739f0c983e7980264adc39b9521bd7215a52bf53c4a9ca9918ead03d30b85
+size 73160
diff --git a/libcpath-alpha-20200623.tar.gz b/libcpath-alpha-20200623.tar.gz
deleted file mode 100644
index ce994e4..0000000
--- a/libcpath-alpha-20200623.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:323ab868b6bc11947812c117fb253e38c84c5540c5b0f77f51ea31cac0c6b58a
-size 1005094
diff --git a/libcpath.changes b/libcpath.changes
index 20ea570..ca77584 100644
--- a/libcpath.changes
+++ b/libcpath.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Wed May 12 17:34:07 UTC 2021 - Jan Engelhardt
+
+- Update to snapshot 20210411 (b0c579ef)
+ * No changelog was provided
+- Add system-libs.patch
+
-------------------------------------------------------------------
Sun Dec 27 00:48:03 UTC 2020 - Greg Freemyer
diff --git a/libcpath.spec b/libcpath.spec
index 234dc08..1b22e35 100644
--- a/libcpath.spec
+++ b/libcpath.spec
@@ -1,7 +1,7 @@
#
# spec file for package libcpath
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,71 +12,70 @@
# 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: libcpath
%define lname libcpath1
-%define timestamp 20200623
-Version: 0~%timestamp
+Version: 20210411
Release: 0
-Summary: Library for cross-platform C path functions
-License: LGPL-3.0+
+Summary: Library for C path functions
+License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++
-Url: https://github.com/libyal/libcpath/wiki
-Source: https://github.com/libyal/libcpath/releases/download/%timestamp/%name-alpha-%timestamp.tar.gz
-#BuildRequires: pkgconfig
-BuildRequires: pkgconfig(libcerror) >= 20120425
-BuildRequires: pkgconfig(libclocale) >= 20120425
-BuildRequires: pkgconfig(libcsplit) >= 20120701
-BuildRequires: pkgconfig(libuna) >= 20130609
-BuildRequires: pkgconfig(libcstring) >= 20150101
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+URL: https://github.com/libyal/libcpath
+Source: %name-%version.tar.xz
+Patch1: system-libs.patch
+BuildRequires: c_compiler
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libtool
+BuildRequires: pkg-config
+BuildRequires: pkgconfig(libcerror) >= 20201121
+BuildRequires: pkgconfig(libclocale) >= 20200913
+BuildRequires: pkgconfig(libcsplit) >= 20200703
+BuildRequires: pkgconfig(libuna) >= 20201204
%description
-A library for cross-platform C path functions. Part of the libyal family of libraries.
+A library for C path functions. Part of the libyal family of libraries.
%package -n %lname
-Summary: Library for cross-platform C path functions
+Summary: Library for C path functions
Group: System/Libraries
%description -n %lname
-A library for cross-platform C path functions. Part of the libyal family of libraries.
+A library for C path functions. Part of the libyal family of libraries.
%package devel
-Summary: Development files for libcpath, a cross-platform C path library
+Summary: Development files for libcpath, a C path library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
-A library for cross-platform C path functions.
+A library for C path functions.
This subpackage contains libraries and header files for developing
applications that want to make use of libcpath.
%prep
-%setup -qn libcpath-%timestamp
+%autosetup -p1
%build
+if [ ! -e configure ]; then ./autogen.sh; fi
%configure --disable-static --enable-wide-character-type
-make %{?_smp_mflags}
+%make_build
%install
-make install DESTDIR="%buildroot"
+%make_install
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
-%defattr(-,root,root)
-%doc AUTHORS ChangeLog
-%license COPYING
+%license COPYING*
%_libdir/libcpath.so.1*
%files devel
-%defattr(-,root,root)
%_includedir/libcpath*
%_libdir/libcpath.so
%_libdir/pkgconfig/libcpath.pc
diff --git a/system-libs.patch b/system-libs.patch
new file mode 100644
index 0000000..8b9e135
--- /dev/null
+++ b/system-libs.patch
@@ -0,0 +1,46 @@
+---
+ Makefile.am | 8 --------
+ configure.ac | 4 ----
+ 2 files changed, 12 deletions(-)
+
+Index: libcpath/Makefile.am
+===================================================================
+--- libcpath.orig/Makefile.am
++++ libcpath/Makefile.am
+@@ -3,10 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcerror \
+- libclocale \
+- libcsplit \
+- libuna \
+ libcpath \
+ po \
+ manuals \
+@@ -56,10 +52,6 @@ lib: library
+
+ library:
+ cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)
+
+Index: libcpath/configure.ac
+===================================================================
+--- libcpath.orig/configure.ac
++++ libcpath/configure.ac
+@@ -109,10 +109,6 @@ dnl Generate Makefiles
+ AC_CONFIG_FILES([Makefile])
+ AC_CONFIG_FILES([include/Makefile])
+ AC_CONFIG_FILES([common/Makefile])
+-AC_CONFIG_FILES([libcerror/Makefile])
+-AC_CONFIG_FILES([libclocale/Makefile])
+-AC_CONFIG_FILES([libcsplit/Makefile])
+-AC_CONFIG_FILES([libuna/Makefile])
+ AC_CONFIG_FILES([libcpath/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])