[packages/libsmraw] - new
qboosh
qboosh at pld-linux.org
Sun Jan 25 07:44:50 CET 2015
commit fbedd671c504306280f04c56e2608f70a88f7394
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 25 07:46:40 2015 +0100
- new
libsmraw-system-libs.patch | 96 ++++++++++++++++++++++
libsmraw.spec | 193 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 289 insertions(+)
---
diff --git a/libsmraw.spec b/libsmraw.spec
new file mode 100644
index 0000000..e6709b7
--- /dev/null
+++ b/libsmraw.spec
@@ -0,0 +1,193 @@
+#
+# Conditional build:
+%bcond_without python # Python bindings
+#
+Summary: Library to access the storage media (SM) (split) RAW format
+Summary(pl.UTF-8): Biblioteka służąca do dostępu do surowego (dzielonego) formatu nośnika danych (SM)
+Name: libsmraw
+Version: 20150105
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libsmraw/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 0f40bc041ec5d22083cee46091ef6205
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libsmraw/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libbfio-devel >= 20120426
+BuildRequires: libcdata-devel >= 20150102
+BuildRequires: libcerror-devel >= 20120425
+BuildRequires: libcfile-devel >= 20140503
+BuildRequires: libclocale-devel >= 20120425
+BuildRequires: libcnotify-devel >= 20120425
+BuildRequires: libcpath-devel >= 20120701
+BuildRequires: libcsplit-devel >= 20120701
+BuildRequires: libcstring-devel >= 20120425
+BuildRequires: libcsystem-devel >= 20141018
+BuildRequires: libcthreads-devel >= 20130509
+BuildRequires: libfcache-devel >= 20140601
+BuildRequires: libfdata-devel >= 20140915
+BuildRequires: libfuse-devel >= 2.6
+BuildRequires: libfvalue-devel >= 20130415
+BuildRequires: libhmac-devel >= 20130714
+BuildRequires: libuna-devel >= 20120425
+BuildRequires: libtool
+BuildRequires: openssl-devel >= 1.0
+BuildRequires: pkgconfig
+%{?with_python:BuildRequires: python-devel >= 1:2.5}
+BuildRequires: sed >= 4.0
+Requires: libbfio >= 20120426
+Requires: libcdata >= 20150102
+Requires: libcerror >= 20120425
+Requires: libcfile >= 20140503
+Requires: libclocale >= 20120425
+Requires: libcnotify >= 20120425
+Requires: libcpath >= 20120701
+Requires: libcsplit >= 20120701
+Requires: libcstring >= 20120425
+Requires: libcthreads >= 20130509
+Requires: libfcache >= 20140601
+Requires: libfdata >= 20140915
+Requires: libfvalue >= 20130415
+Requires: libuna >= 20120425
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libsmraw is a library to access the storage media (SM) (split) RAW
+format.
+
+%description -l pl.UTF-8
+libsmraw to biblioteka służąca do dostępu do surowego (dzielonego)
+formatu nośnika danych (SM - Storage Media).
+
+%package devel
+Summary: Header files for libsmraw library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsmraw
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libbfio-devel >= 20120426
+Requires: libcdata-devel >= 20150102
+Requires: libcerror-devel >= 20120425
+Requires: libcfile-devel >= 20140503
+Requires: libclocale-devel >= 20120425
+Requires: libcnotify-devel >= 20120425
+Requires: libcpath-devel >= 20120701
+Requires: libcsplit-devel >= 20120701
+Requires: libcstring-devel >= 20120425
+Requires: libcthreads-devel >= 20130509
+Requires: libfcache-devel >= 20140601
+Requires: libfdata-devel >= 20140915
+Requires: libfvalue-devel >= 20130415
+Requires: libuna-devel >= 20120425
+
+%description devel
+Header files for libsmraw library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libsmraw.
+
+%package static
+Summary: Static libsmraw library
+Summary(pl.UTF-8): Statyczna biblioteka libsmraw
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libsmraw library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libsmraw.
+
+%package tools
+Summary: Tools for libsmraw library
+Summary(pl.UTF-8): Narzędzia do biblioteki smraw
+Group: Applications/System
+Requires: %{name} = %{version}-%{release}
+Requires: libcsystem >= 20141018
+Requires: libfuse >= 2.6
+Requires: libhmac >= 20130714
+
+%description tools
+Tools for libsmraw library.
+
+%description tools -l pl.UTF-8
+Narzędzia do biblioteki smraw.
+
+%package -n python-pysmraw
+Summary: Python bindings for libsmraw library
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki libsmraw
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-pysmraw
+Python bindings for libsmraw library.
+
+%description -n python-pysmraw -l pl.UTF-8
+Wiązania Pythona do biblioteki libsmraw.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ %{?with_python:--enable-python}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsmraw.la
+
+%if %{with python}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/pysmraw.{la,a}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_libdir}/libsmraw.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsmraw.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsmraw.so
+%{_includedir}/libsmraw
+%{_includedir}/libsmraw.h
+%{_pkgconfigdir}/libsmraw.pc
+%{_mandir}/man3/libsmraw.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsmraw.a
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/smrawmount
+%attr(755,root,root) %{_bindir}/smrawverify
+%{_mandir}/man1/smrawmount.1*
+
+%if %{with python}
+%files -n python-pysmraw
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/pysmraw.so
+%endif
diff --git a/libsmraw-system-libs.patch b/libsmraw-system-libs.patch
new file mode 100644
index 0000000..fa9d2ad
--- /dev/null
+++ b/libsmraw-system-libs.patch
@@ -0,0 +1,96 @@
+--- libsmraw-20150105/configure.ac.orig 2015-01-24 10:31:46.646431352 +0100
++++ libsmraw-20150105/configure.ac 2015-01-24 10:59:33.343028074 +0100
+@@ -318,23 +318,7 @@ dnl Have configure make the Makefiles
+ AC_CONFIG_FILES([Makefile])
+ AC_CONFIG_FILES([include/Makefile])
+ AC_CONFIG_FILES([common/Makefile])
+-AC_CONFIG_FILES([libcstring/Makefile])
+-AC_CONFIG_FILES([libcerror/Makefile])
+-AC_CONFIG_FILES([libcthreads/Makefile])
+-AC_CONFIG_FILES([libcdata/Makefile])
+-AC_CONFIG_FILES([libclocale/Makefile])
+-AC_CONFIG_FILES([libcnotify/Makefile])
+-AC_CONFIG_FILES([libcsplit/Makefile])
+-AC_CONFIG_FILES([libuna/Makefile])
+-AC_CONFIG_FILES([libcfile/Makefile])
+-AC_CONFIG_FILES([libcpath/Makefile])
+-AC_CONFIG_FILES([libbfio/Makefile])
+-AC_CONFIG_FILES([libfcache/Makefile])
+-AC_CONFIG_FILES([libfdata/Makefile])
+-AC_CONFIG_FILES([libfvalue/Makefile])
+ AC_CONFIG_FILES([libsmraw/Makefile])
+-AC_CONFIG_FILES([libcsystem/Makefile])
+-AC_CONFIG_FILES([libhmac/Makefile])
+ AC_CONFIG_FILES([smrawtools/Makefile])
+ AC_CONFIG_FILES([smraw.net/Makefile])
+ AC_CONFIG_FILES([pysmraw/Makefile])
+--- libsmraw-20150105/Makefile.am.orig 2015-01-24 10:31:45.976431381 +0100
++++ libsmraw-20150105/Makefile.am 2015-01-24 10:59:56.559693767 +0100
+@@ -3,23 +3,7 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+- libcerror \
+- libcthreads \
+- libcdata \
+- libclocale \
+- libcnotify \
+- libcsplit \
+- libuna \
+- libcfile \
+- libcpath \
+- libbfio \
+- libfcache \
+- libfdata \
+- libfvalue \
+ libsmraw \
+- libcsystem \
+- libhmac \
+ smrawtools \
+ smraw.net \
+ pysmraw \
+@@ -73,20 +57,6 @@ lib: library
+
+ library:
+ (cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcstring && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcthreads && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfcache && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfdata && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfvalue && $(MAKE) $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libsmraw && $(MAKE) $(AM_MAKEFLAGS))
+ (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
+
+@@ -103,22 +73,7 @@ distclean: clean
+ done && test -z "$$fail"
+
+ splint:
+- (cd $(srcdir)/libcstring && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcerror && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcthreads && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcdata && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libclocale && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcsplit && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcfile && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcpath && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libbfio && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfcache && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfdata && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfvalue && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libsmraw && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcsystem && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/smrawtools && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/smraw.net && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/pysmraw && $(MAKE) splint $(AM_MAKEFLAGS))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsmraw.git/commitdiff/fbedd671c504306280f04c56e2608f70a88f7394
More information about the pld-cvs-commit
mailing list