[packages/aribb25] - new
qboosh
qboosh at pld-linux.org
Sun Feb 15 21:53:30 CET 2015
commit fe9654e88e0246c6102389e47ba3d1f5564d2dfb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 15 21:56:04 2015 +0100
- new
aribb25-link.patch | 11 ++++++
aribb25.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 111 insertions(+)
---
diff --git a/aribb25.spec b/aribb25.spec
new file mode 100644
index 0000000..1263782
--- /dev/null
+++ b/aribb25.spec
@@ -0,0 +1,100 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+#
+Summary: ARIB B25 library
+Summary(pl.UTF-8): Biblioteka ARIB B25
+Name: aribb25
+Version: 0.2.6
+Release: 1
+License: unknown
+Group: Libraries
+Source0: http://download.videolan.org/pub/videolan/aribb25/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: f797a8f8a1bab4361d2111046aca58b6
+Patch0: %{name}-link.patch
+URL: http://www.marumo.ne.jp/
+BuildRequires: autoconf >= 2.69
+BuildRequires: automake
+BuildRequires: libtool >= 2:2
+BuildRequires: pcsc-lite-devel
+BuildRequires: pkgconfig
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ARIB B25 library.
+
+%description -l pl.UTF-8
+Biblioteka ARIB B25.
+
+%package devel
+Summary: Header files for ARIB B25 library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ARIB B25
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pcsc-lite-devel
+
+%description devel
+Header files for ARIB B25 library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki ARIB B25.
+
+%package static
+Summary: Static ARIB B25 library
+Summary(pl.UTF-8): Statyczna biblioteka ARIB B25
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static ARIB B25 library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka ARIB B25.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+%configure \
+ %{?with_static_libs:--enable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libaribb25.la
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/aribb25/README.txt
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%attr(755,root,root) %{_libdir}/libaribb25.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libaribb25.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libaribb25.so
+%{_includedir}/aribb25
+%{_pkgconfigdir}/aribb25.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libaribb25.a
+%endif
diff --git a/aribb25-link.patch b/aribb25-link.patch
new file mode 100644
index 0000000..8bd7975
--- /dev/null
+++ b/aribb25-link.patch
@@ -0,0 +1,11 @@
+--- aribb25-0.2.6/Makefile.am.orig 2014-10-21 21:08:42.000000000 +0200
++++ aribb25-0.2.6/Makefile.am 2015-02-15 21:34:12.561661026 +0100
+@@ -6,7 +6,7 @@
+ src/b_cas_card_error_code.h src/multi2_error_code.h src/td.c \
+ src/ts_section_parser_error_code.h src/arib_std_b25.h src/b_cas_card.h \
+ src/multi2.h src/ts_common_types.h src/ts_section_parser.h src/aribb25api.h
+-libaribb25_la_LIBADD = $(AM_LIBS) $(pcsclite_CFLAGS)
++libaribb25_la_LIBADD = $(AM_LIBS) $(pcsclite_LIBS)
+ libaribb25_la_CFLAGS = $(AM_CFLAGS) -Wall -Werror -fvisibility=hidden $(pcsclite_CFLAGS)
+
+ pkginclude_HEADERS = src/arib_std_b25_error_code.h src/b_cas_card_error_code.h \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aribb25.git/commitdiff/fe9654e88e0246c6102389e47ba3d1f5564d2dfb
More information about the pld-cvs-commit
mailing list