Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
b3ea544f
Commit
b3ea544f
authored
May 06, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dist: add devel package (only host)
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
0c7577e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
1 deletion
+49
-1
Makefile
distribution/Makefile
+6
-1
mockturtle-devel.spec
distribution/mockturtle-devel.spec
+43
-0
No files found.
distribution/Makefile
View file @
b3ea544f
...
...
@@ -68,15 +68,17 @@ userspace-spec: mockturtle-tools.spec mockturtle-lib.spec mockturtle-lib-static.
@
cp
mockturtle-tools.spec
$(BUILD)
/SPECS
@
cp
mockturtle-lib.spec
$(BUILD)
/SPECS
@
cp
mockturtle-lib-static.spec
$(BUILD)
/SPECS
@
cp
mockturtle-devel.spec
$(BUILD)
/SPECS
userspace-tar
:
userspace-spec
spectool
-g
-C
$(BUILD)
/SOURCES
--define
"gittag
$(VERSION)
"
$(BUILD)
/SPECS/mockturtle-tools.spec
spectool
-g
-C
$(BUILD)
/SOURCES
--define
"gittag
$(VERSION)
"
$(BUILD)
/SPECS/mockturtle-lib.spec
spectool
-g
-C
$(BUILD)
/SOURCES
--define
"gittag
$(VERSION)
"
$(BUILD)
/SPECS/mockturtle-lib-static.spec
spectool
-g
-C
$(BUILD)
/SOURCES
--define
"gittag
$(VERSION)
"
$(BUILD)
/SPECS/mockturtle-devel.spec
RPMBUILD_DEFINE
:=
--define
"%_topdir
$(BUILD)
"
--define
"arch
$(
shell
uname -p
)
"
--define
"gittag
$(VERSION)
"
userspace-rpm
:
tools-rpm lib-static-rpm lib-rpm
userspace-rpm
:
devel-rpm
tools-rpm lib-static-rpm lib-rpm
tools-rpm
:
userspace-tar
rpmbuild
-vv
$(RPMBUILD_DEFINE)
-ba
$(BUILD)
/SPECS/mockturtle-tools.spec
...
...
@@ -87,4 +89,7 @@ lib-static-rpm: userspace-tar
lib-rpm
:
userspace-tar
rpmbuild
-vv
$(RPMBUILD_DEFINE)
-ba
$(BUILD)
/SPECS/mockturtle-lib.spec
devel-rpm
:
userspace-tar
rpmbuild
-vv
$(RPMBUILD_DEFINE)
--define
"debug_package %{nil}"
-bb
$(BUILD)
/SPECS/mockturtle-devel.spec
.PHONY
:
dkmstree dkms-add kernel-dkms-tar userspace-dir userspace-spec userspace-tar userspace-rpm tools-rpm lib-static-rpm lib-rpm
distribution/mockturtle-devel.spec
0 → 100644
View file @
b3ea544f
%{?!gittag: %{error: You did not specify a version}}
%{?!arch: %{error: You did not specify an architecture}}
%global project_name mock-turtle
Summary: Mock Turtle development header files and tools
Name: mockturtle-devel
Version: %{gittag}
License: GPL-3.0-or-later
Release: 1%{?dist}
Group: Development/Libraries
URL: https://ohwr.org/project/%{name}
BuildArch: %{arch}
Requires: mockturtle-lib mockturtle-lib-static
Source0: https://ohwr.org/project/%{project_name}/-/archive/%{gittag}/%{project_name}-%{gittag}.tar.bz2
%description
This package contains the Mock Turtle development header files and tools
%prep
%autosetup -n %{project_name}-%{gittag}
%build
make -C software/include
%install
make -C software/include INCLUDEDESTDIR=%{buildroot}/%{_includedir} install
%files
%license LICENSES/GPL-3.0-or-later.txt
%{_includedir}/mockturtle/mockturtle.h
%{_includedir}/mockturtle/libmockturtle.h
%{_includedir}/mockturtle/hw/mockturtle_addresses.h
%{_includedir}/mockturtle/hw/mockturtle_cpu_csr.h
%{_includedir}/mockturtle/hw/mockturtle_cpu_lr.h
%{_includedir}/mockturtle/hw/mockturtle_endpoint.h
%{_includedir}/mockturtle/hw/mockturtle_queue.h
%changelog
# Nothing for the time being
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment