mirror of
https://codeberg.org/kbruen/y3s2-gui-project.git
synced 2025-02-22 17:19:37 +02:00
Added RPM spec file
This commit is contained in:
parent
9e0eb19907
commit
639354097c
2 changed files with 47 additions and 2 deletions
15
Makefile
15
Makefile
|
@ -4,11 +4,24 @@ OBJ := obj
|
||||||
CXX := g++
|
CXX := g++
|
||||||
LD := g++
|
LD := g++
|
||||||
|
|
||||||
|
DESTDIR?=/
|
||||||
|
PREFIX=/usr
|
||||||
|
INSTALL?=install
|
||||||
|
|
||||||
SOURCES := $(wildcard $(SRC)/*.cpp)
|
SOURCES := $(wildcard $(SRC)/*.cpp)
|
||||||
OBJECTS := $(patsubst $(SRC)/%.cpp, $(OBJ)/%.o, $(SOURCES))
|
OBJECTS := $(patsubst $(SRC)/%.cpp, $(OBJ)/%.o, $(SOURCES))
|
||||||
|
|
||||||
all: program
|
.PHONY: all
|
||||||
|
all: build
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build: program
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install:
|
||||||
|
${INSTALL} -Dm755 program ${DESTDIR}${PREFIX}/bin/y3s2-gui-project
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f program
|
rm -f program
|
||||||
rm -rf obj
|
rm -rf obj
|
||||||
|
|
32
y3s2-gui-project.spec
Normal file
32
y3s2-gui-project.spec
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
Name: y3s2-gui-project
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Maze project in OpenGL for Graphics and User Interfaces lecture in year 3, semester 2
|
||||||
|
|
||||||
|
License: UNLICENSED
|
||||||
|
URL: https://codeberg.org/kbruen/%{name}
|
||||||
|
Source0: https://codeberg.org/kbruen/%{name}/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: mesa-libGLU-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
Maze project in OpenGL for Graphics and User Interfaces lecture in year 3, semester 2
|
||||||
|
|
||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build
|
||||||
|
make build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
Loading…
Add table
Reference in a new issue