~ersen/specfiles

specfiles/bfsed/bfsed.spec -rw-r--r-- 807 bytes
3cdb5529Oğuz Ersen vim-apprentice: rebuild for the latest git commit a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%global commit 0193dd08801dd285fd25cb20c2aa034e91889490
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           bfsed
Version:        0
Release:        1.20210918git%{shortcommit}%{?dist}
Summary:        A brainfuck compiler, written in sed

License:        NONE
URL:            https://github.com/stedolan/bf.sed
Source0:        %{url}/archive/%{commit}.tar.gz

BuildArch:      noarch

%description
An optimising compiler for brainfuck produces x86 Linux ELF binaries written
entirely in sed.

%prep
%autosetup -n bf.sed-%{commit}

%build

%install
install -Dpm 0755 bf.sed %{buildroot}%{_bindir}/%{name}

%files
%{_bindir}/%{name}
%doc README 99bottles.b factor.b helloworld.b

%changelog
* Sat Sep 18 2021 Oğuz Ersen <oguz@ersen.moe> - 0-1.20210918git0193dd0
- Initial version of the package