- Update upstream URL.
- Convert to obs_scm source service. - Upgrade to git commit 873741a. - Drop patches that have been merged into upstream: o eppic-no-return.patch o eppic-use-extern-in-devel-declaration.patch OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=19
This commit is contained in:
parent
e99bfc9b5f
commit
4617f6d905
11
_service
Normal file
11
_service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/lucchouina/eppic.git</param>
|
||||||
|
<param name="subdir">libeppic</param>
|
||||||
|
<param name="filename">libeppic</param>
|
||||||
|
<param name="versionprefix">3.99.git</param>
|
||||||
|
</service>
|
||||||
|
<service mode="buildtime" name="tar" />
|
||||||
|
<service mode="buildtime" name="set_version" />
|
||||||
|
</services>
|
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c72003fbc7f7b74d02780bcd51818757e5bcd6d28438dad96f331e5939fccdda
|
||||||
|
size 349195
|
5
_service:obs_scm:libeppic.obsinfo
Normal file
5
_service:obs_scm:libeppic.obsinfo
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: libeppic
|
||||||
|
version: 3.99.git.1599232887.873741a
|
||||||
|
mtime: 1599232887
|
||||||
|
commit: 873741ae28dae3d0229d929fc588a728f040354f
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cddb7dc40138cadf3c716e54bf433ecdff37d87bf06b4b74f6415b738fe742bf
|
|
||||||
size 77034
|
|
@ -1,24 +0,0 @@
|
|||||||
---
|
|
||||||
libeppic/eppic_var.c | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
--- a/libeppic/eppic_var.c
|
|
||||||
+++ b/libeppic/eppic_var.c
|
|
||||||
@@ -828,7 +828,7 @@ var_t*v;
|
|
||||||
evaluation of sizeof or typeof.
|
|
||||||
*/
|
|
||||||
int eppic_getvlev() { return vlev; }
|
|
||||||
-eppic_vpush()
|
|
||||||
+void eppic_vpush()
|
|
||||||
{
|
|
||||||
if(vlev==S_MAXSDEEP) {
|
|
||||||
|
|
||||||
@@ -841,7 +841,7 @@ eppic_vpush()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-eppic_vpop()
|
|
||||||
+void eppic_vpop()
|
|
||||||
{
|
|
||||||
if(vlev) {
|
|
||||||
eppic_setsvlev(sidx[--vlev]);
|
|
@ -1,13 +0,0 @@
|
|||||||
Index: b/libeppic/eppic.h
|
|
||||||
===================================================================
|
|
||||||
--- a/libeppic/eppic.h
|
|
||||||
+++ b/libeppic/eppic.h
|
|
||||||
@@ -467,7 +467,7 @@ type_t *eppic_addstorage(type_t *t1, ty
|
|
||||||
type_t *eppic_getvoidstruct(int ctype);
|
|
||||||
|
|
||||||
extern int lineno, needvar, instruct, nomacs, eppic_legacy;
|
|
||||||
-node_t *lastv;
|
|
||||||
+extern node_t *lastv;
|
|
||||||
|
|
||||||
#define NULLNODE ((node_t*)0)
|
|
||||||
|
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 3 09:54:23 UTC 2021 - Petr Tesařík <ptesarik@suse.com>
|
||||||
|
|
||||||
|
- Update upstream URL.
|
||||||
|
- Convert to obs_scm source service.
|
||||||
|
- Upgrade to git commit 873741a.
|
||||||
|
- Drop patches that have been merged into upstream:
|
||||||
|
o eppic-no-return.patch
|
||||||
|
o eppic-use-extern-in-devel-declaration.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 2 08:29:23 UTC 2021 - Martin Liška <mliska@suse.cz>
|
Tue Feb 2 08:29:23 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
22
eppic.spec
22
eppic.spec
@ -16,20 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define git_date 20140619
|
|
||||||
%define git_commit 5391d3d
|
|
||||||
%define checkout %{git_date}git%{git_commit}
|
|
||||||
|
|
||||||
Name: eppic
|
Name: eppic
|
||||||
Version: 3.99.%{checkout}
|
Version: 3.99.git.1599232887.873741a
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Embeddable Pre-Processor and Interpreter for C
|
Summary: Embeddable Pre-Processor and Interpreter for C
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Source: %{name}-git%{git_commit}.tar.bz2
|
Source: lib%{name}-%{version}.tar
|
||||||
Patch1: %{name}-fix-install.patch
|
Patch1: %{name}-fix-install.patch
|
||||||
Patch2: %{name}-no-return.patch
|
|
||||||
Patch3: %{name}-use-extern-in-devel-declaration.patch
|
|
||||||
Patch4: %{name}-binutils-fix.patch
|
Patch4: %{name}-binutils-fix.patch
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
@ -58,26 +52,22 @@ embedded in any tools that is C friendly.
|
|||||||
This package provides the include files and libraries needed for development.
|
This package provides the include files and libraries needed for development.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{name}-git%{git_commit}
|
%setup -n lib%{name}-%{version}
|
||||||
%patch1 -p1
|
%patch1 -p2
|
||||||
%patch2 -p1
|
%patch4 -p2
|
||||||
%patch3 -p1
|
|
||||||
%patch4 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
cd libeppic
|
|
||||||
make CFLAGS="%{optflags} -fPIC" %{?_smp_mflags}
|
make CFLAGS="%{optflags} -fPIC" %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd libeppic
|
|
||||||
mkdir -p %{buildroot}%{_libdir}
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
mkdir -p %{buildroot}%{_includedir}
|
mkdir -p %{buildroot}%{_includedir}
|
||||||
make ROOT="%{buildroot}" LIBDIR=%{_libdir} install
|
make ROOT="%{buildroot}" LIBDIR=%{_libdir} install
|
||||||
|
|
||||||
%files -n libeppic-devel
|
%files -n libeppic-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc libeppic/README
|
%doc README
|
||||||
%{_includedir}/eppic.h
|
%{_includedir}/eppic.h
|
||||||
%{_includedir}/eppic_api.h
|
%{_includedir}/eppic_api.h
|
||||||
%attr(644,root,root) %{_libdir}/libeppic.a
|
%attr(644,root,root) %{_libdir}/libeppic.a
|
||||||
|
Loading…
Reference in New Issue
Block a user