Browse Source

Added RPM spec file

master
Kenneth Bruen 3 years ago
parent
commit
639354097c
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 15
      Makefile
  2. 32
      y3s2-gui-project.spec

15
Makefile

@ -4,11 +4,24 @@ OBJ := obj
CXX := g++
LD := g++
DESTDIR?=/
PREFIX=/usr
INSTALL?=install
SOURCES := $(wildcard $(SRC)/*.cpp)
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:
rm -f program
rm -rf obj

32
y3s2-gui-project.spec

@ -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…
Cancel
Save