[packages/opkg] - initial

qboosh qboosh at pld-linux.org
Thu Feb 5 16:25:12 CET 2015


commit fdf0d8d9d1b1d9c4b7a88a43432782583233905f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Feb 5 16:27:24 2015 +0100

    - initial

 opkg-libdir.patch |  10 +++++
 opkg.spec         | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 125 insertions(+)
---
diff --git a/opkg.spec b/opkg.spec
new file mode 100644
index 0000000..3a2c2a7
--- /dev/null
+++ b/opkg.spec
@@ -0,0 +1,115 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library
+%bcond_with	pathfinder	# PathFinder certificate verification support
+#
+Summary:	OPKG Package Management System (designed for OpenMoko)
+Summary(pl.UTF-8):	System zarządzania pakietami OPKG (zaprojektowany dla OpenMoko)
+Name:		opkg
+Version:	0.2.0
+Release:	1
+License:	GPL v2+
+Group:		Libraries
+#Source0Download: https://code.google.com/p/opkg/downloads/list
+Source0:	https://opkg.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5:	e8a6fd34fb2529191fe09dc14c934cc3
+Patch0:		%{name}-libdir.patch
+URL:		https://code.google.com/p/opkg/
+BuildRequires:	curl-devel
+BuildRequires:	gpgme-devel >= 1.0.0
+BuildRequires:	pkgconfig >= 1:0.20
+%if %{with pathfinder}
+BuildRequires:	dbus-devel >= 1
+BuildRequires:	openssl-devel
+BuildRequires:	pathfinder-openssl-devel
+%endif
+Requires:	gpgme >= 1.0.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OPKG Package Management System (designed for OpenMoko).
+
+%description -l pl.UTF-8
+System zarządzania pakietami OPKG (zaprojektowany dla OpenMoko).
+
+%package devel
+Summary:	Header files for OPKG library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki OPKG
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for OPKG library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki OPKG.
+
+%package static
+Summary:	Static OPKG library
+Summary(pl.UTF-8):	Statyczna biblioteka OPKG
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static OPKG library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka OPKG.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+	--disable-shave \
+	%{!?with_static_libs:--disable-static} \
+	%{?with_pathfinder:--enable-pathfinder} \
+	--enable-sha256 \
+	--with-opkgetcdir=%{_sysconfdir} \
+	--with-opkglibdir=/var/lib
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/var/lib/opkg,%{_sysconfdir}/opkg}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/update-alternatives
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libopkg.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CONTRIBUTORS ChangeLog* NEWS README TODO
+%attr(755,root,root) %{_bindir}/opkg-cl
+%attr(755,root,root) %{_bindir}/opkg-key
+%attr(755,root,root) %{_libdir}/libopkg.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopkg.so.1
+%dir %{_sysconfdir}/opkg
+%dir %{_datadir}/opkg
+%dir %{_datadir}/opkg/intercept
+%attr(755,root,root) %{_datadir}/opkg/intercept/*
+%dir /var/lib/opkg
+%{_mandir}/man1/opkg-cl.1*
+%{_mandir}/man1/opkg-key.1*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libopkg.so
+%{_includedir}/libopkg
+%{_pkgconfigdir}/libopkg.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libopkg.a
+%endif
diff --git a/opkg-libdir.patch b/opkg-libdir.patch
new file mode 100644
index 0000000..2f182de
--- /dev/null
+++ b/opkg-libdir.patch
@@ -0,0 +1,10 @@
+--- opkg-0.2.0/libopkg.pc.in.orig	2013-08-15 12:47:21.000000000 +0200
++++ opkg-0.2.0/libopkg.pc.in	2014-12-24 08:48:31.245777407 +0100
+@@ -1,6 +1,6 @@
+ prefix=@prefix@
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
++libdir=@libdir@
+ includedir=${prefix}/include
+ 
+ Name: libopkg
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opkg.git/commitdiff/fdf0d8d9d1b1d9c4b7a88a43432782583233905f



More information about the pld-cvs-commit mailing list