forked from pool/kbuild
Accepting request 757590 from devel:tools:building
- Modernise spec file OBS-URL: https://build.opensuse.org/request/show/757590 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kbuild?expand=0&rev=38
This commit is contained in:
commit
8ddb674547
5
_service
5
_service
@ -1,5 +0,0 @@
|
|||||||
<services>
|
|
||||||
<service name="refresh_patches" mode="disabled">
|
|
||||||
<param name="changesgenerate">enable</param>
|
|
||||||
</service>
|
|
||||||
</services>
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 17 16:11:30 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Modernise spec file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Feb 10 20:19:51 UTC 2019 - Larry Finger <Larry.Finger@gmail.com>
|
Sun Feb 10 20:19:51 UTC 2019 - Larry Finger <Larry.Finger@gmail.com>
|
||||||
|
|
||||||
|
46
kbuild.spec
46
kbuild.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package kbuild
|
# spec file for package kbuild
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,21 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Url: http://svn.netlabs.org/kbuild
|
%define _svnrev 3110
|
||||||
|
|
||||||
Name: kbuild
|
Name: kbuild
|
||||||
BuildRequires: automake
|
Version: 0.1.9998svn%{_svnrev}
|
||||||
BuildRequires: bison
|
Release: 0
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: libacl-devel
|
|
||||||
BuildRequires: makeinfo
|
|
||||||
BuildRequires: readline-devel
|
|
||||||
Summary: Framework for writing simple makefiles for complex tasks
|
Summary: Framework for writing simple makefiles for complex tasks
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
%define _svnrev 3110
|
URL: https://svn.netlabs.org/kbuild
|
||||||
Version: 0.1.9998svn%{_svnrev}
|
|
||||||
Release: 0
|
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Patch0: kbuild-man.diff
|
Patch0: kbuild-man.diff
|
||||||
# PATCH-FIX-UPSTREAM speilicke@suse.com: Import local implementation if KMK
|
# PATCH-FIX-UPSTREAM speilicke@suse.com: Import local implementation if KMK
|
||||||
@ -46,7 +39,12 @@ Patch11: kbuild-gcc7.patch
|
|||||||
Patch12: use-alloca.patch
|
Patch12: use-alloca.patch
|
||||||
Patch13: glob-lstat.patch
|
Patch13: glob-lstat.patch
|
||||||
Patch14: glob-interface.patch
|
Patch14: glob-interface.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: automake
|
||||||
|
BuildRequires: bison
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: libacl-devel
|
||||||
|
BuildRequires: makeinfo
|
||||||
|
BuildRequires: readline-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The goals of the kBuild framework:
|
The goals of the kBuild framework:
|
||||||
@ -78,33 +76,29 @@ The goals of the kBuild framework:
|
|||||||
%patch14 -p1
|
%patch14 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="%{optflags}"
|
||||||
%__cat > SvnInfo.kmk << EOF
|
cat > SvnInfo.kmk << EOF
|
||||||
KBUILD_SVN_REV := %{_svnrev}
|
KBUILD_SVN_REV := %{_svnrev}
|
||||||
KBUILD_SVN_URL := http://svn.netlabs.org/repos/kbuild/trunk
|
KBUILD_SVN_URL := http://svn.netlabs.org/repos/kbuild/trunk
|
||||||
EOF
|
EOF
|
||||||
kBuild/env.sh --full make -f bootstrap.gmk SRCDIR=`pwd`
|
kBuild/env.sh --full make -f bootstrap.gmk SRCDIR=`pwd`
|
||||||
kBuild/env.sh kmk rebuild PATH_INS=`pwd`
|
kBuild/env.sh kmk rebuild PATH_INS=`pwd`
|
||||||
pod2man -c 'kBuild for SUSE Linux' -r kBuild-%version kmk.pod > kmk.1
|
pod2man -c 'kBuild for SUSE Linux' -r kBuild-%{version} kmk.pod > kmk.1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
kBuild/env.sh kmk NIX_INSTALL_DIR=/usr BUILD_TYPE=release PATH_INS=%{buildroot} LDFLAGS=-Wl,--as-needed install
|
kBuild/env.sh kmk NIX_INSTALL_DIR=%{_prefix} BUILD_TYPE=release PATH_INS=%{buildroot} LDFLAGS=-Wl,--as-needed install
|
||||||
%__install -m 644 -D kmk.1 %buildroot/%_mandir/man1/kmk.1
|
install -m 644 -D kmk.1 %{buildroot}/%{_mandir}/man1/kmk.1
|
||||||
#remove execute flag, if occurs
|
#remove execute flag, if occurs
|
||||||
%__chmod a-x %{buildroot}/%{_datadir}/kBuild/*/*kmk
|
chmod a-x %{buildroot}/%{_datadir}/kBuild/*/*kmk
|
||||||
%__rm -r %{buildroot}%{_datadir}/doc/kBuild-0.1.9998
|
rm -r %{buildroot}%{_datadir}/doc/kBuild-0.1.9998
|
||||||
|
|
||||||
%clean
|
|
||||||
%__rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%license kBuild/doc/COPYING-FDL-1.3
|
||||||
%doc ChangeLog
|
%doc ChangeLog
|
||||||
%doc kBuild/doc/COPYING-FDL-1.3
|
|
||||||
%doc kBuild/doc/QuickReference-kmk.*
|
%doc kBuild/doc/QuickReference-kmk.*
|
||||||
%{_mandir}/man1/kmk.1.gz
|
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
%{_mandir}/man1/kmk.1%{?ext_man}
|
||||||
%{_datadir}/kBuild
|
%{_datadir}/kBuild
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user