Jan Engelhardt 2015-03-01 10:39:36 +00:00 committed by Git OBS Bridge
parent 5d6ccd68d8
commit 1afab13b06
2 changed files with 9 additions and 30 deletions

View File

@ -27,13 +27,11 @@ Url: http://openbsc.osmocom.org/trac/
#Git-Clone: git://git.osmocom.org/libosmo-netif #Git-Clone: git://git.osmocom.org/libosmo-netif
#Git-Web: http://git.osmocom.org/libosmo-netif/ #Git-Web: http://git.osmocom.org/libosmo-netif/
#Snapshot: 0.0.4 #Snapshot: 0.0.4
#Update osmo-version.diff too!
Source: %name-%version.tar.xz Source: %name-%version.tar.xz
Patch1: osmo-version.diff Patch1: osmo-cppflags.diff
Patch2: osmo-cppflags.diff Patch2: osmo-ldadd.diff
Patch3: osmo-ldadd.diff Patch3: osmo-allincludes.diff
Patch4: osmo-allincludes.diff Patch4: osmo-talloc.diff
Patch5: osmo-talloc.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
@ -66,17 +64,17 @@ Requires: libosmonetif2 = %version
%prep %prep
%setup -qn %name %setup -qn %name
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1 %patch -P 1 -P 2 -P 3 -P 4 -p1
%build %build
echo "%version" >.tarball-version
autoreconf -fiv autoreconf -fiv
%configure --enable-shared --disable-static %configure --enable-shared --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
b="%buildroot" %make_install
make %{?_smp_mflags} install DESTDIR="$b" find "%buildroot/%_libdir" -type f -name "*.la" -delete
find "$b/%_libdir" -type f -name "*.la" -delete
%check %check
make %{?_smp_mflags} check make %{?_smp_mflags} check
@ -90,6 +88,7 @@ make %{?_smp_mflags} check
%files -n libosmonetif-devel %files -n libosmonetif-devel
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING
%dir %_includedir/osmocom %dir %_includedir/osmocom
%_includedir/osmocom/netif/ %_includedir/osmocom/netif/
%_libdir/libosmonetif.so %_libdir/libosmonetif.so

View File

@ -1,20 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sun, 17 Feb 2013 21:53:34 +0100
Subject: [PATCH] build: set version
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 28dde0c..93bc119 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
AC_INIT([libosmo-netif],
- m4_esyscmd([./git-version-gen .tarball-version]),
+ [0.0.4],
[openbsc-devel@lists.openbsc.org])
AM_INIT_AUTOMAKE([dist-bzip2])