From 566ea3edad2ec610aeebf27be33a8e9916e3b2e4 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Fri, 4 Sep 2020 09:06:29 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + libudfread-1.1.0-drop_ac_prog_libtool.patch | 25 ++++++++ libudfread.spec | 68 +++++++++++++++++++++ sources | 1 + 4 files changed, 95 insertions(+) create mode 100644 .gitignore create mode 100644 libudfread-1.1.0-drop_ac_prog_libtool.patch create mode 100644 libudfread.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ebd0c8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libudfread-1.1.0.tar.bz2 diff --git a/libudfread-1.1.0-drop_ac_prog_libtool.patch b/libudfread-1.1.0-drop_ac_prog_libtool.patch new file mode 100644 index 0000000..4d4b35b --- /dev/null +++ b/libudfread-1.1.0-drop_ac_prog_libtool.patch @@ -0,0 +1,25 @@ +From 51c80f22b70f79d1b3919836699ea1241c3efc3a Mon Sep 17 00:00:00 2001 +From: Xavier Bachelot +Date: Thu, 3 Sep 2020 16:05:47 +0200 +Subject: [PATCH] No need to call both LT_INIT and AC_PROG_LIBTOOL + +Thus drop deprecated AC_PROG_LIBTOOL. +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 571f16a..64948e7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -56,7 +56,6 @@ AC_ARG_ENABLE([extra-warnings], + dnl required programs + AC_PROG_CC + AM_PROG_CC_C_O +-AC_PROG_LIBTOOL + + LT_INIT + +-- +GitLab + diff --git a/libudfread.spec b/libudfread.spec new file mode 100644 index 0000000..98b46ed --- /dev/null +++ b/libudfread.spec @@ -0,0 +1,68 @@ +Name: libudfread +Version: 1.1.0 +Release: 2%{?dist} +Summary: UDF reader library +License: LGPLv2+ +URL: https://code.videolan.org/videolan/libudfread +Source0: https://code.videolan.org/videolan/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 + +# https://code.videolan.org/videolan/libudfread/-/merge_requests/2.patch +Patch0: libudfread-1.1.0-drop_ac_prog_libtool.patch + +BuildRequires: gcc +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool + + +%description +This library allows reading UDF filesystems, like raw devices and image files. +The library is created and maintained by VideoLAN Project and is used by +projects like VLC and Kodi. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -p1 + + +%build +autoreconf -vif +%configure --disable-static +%make_build + + +%install +%make_install +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + + +%ldconfig_scriptlets + + +%files +%doc ChangeLog +%license COPYING +%{_libdir}/libudfread.so.0* + +%files devel +%{_includedir}/udfread/ +%{_libdir}/libudfread.so +%{_libdir}/pkgconfig/udfread.pc + + +%changelog +* Thu Sep 03 2020 Xavier Bachelot 1.1.0-2 +- Don't glob _includedir +- Patch obsolete m4 macro + +* Thu Aug 13 2020 Xavier Bachelot 1.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ff9dba5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libudfread-1.1.0.tar.bz2) = d7f88f01434cb1f9f899974d3b29dbd7cc828eab86181e62d3433c54cd80851051f86fb29b7c05793b31127cc2947dcd3ed4703211b77ed46ec8ab4a5587b853