Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MargueriteSu
vlang
vlang.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vlang.spec of Package vlang
# # spec file for package vlang # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: vlang Version: 2024.22 Release: 0 Summary: The V Programming Language License: MIT URL: https://github.com/vlang/v Source: v-weekly.%{version}.tar.gz Source1: vc.tar.gz Source2: vlang-rpmlintrc Source3: tinycc.tar.gz BuildRequires: fdupes %description The V Programming Language. %prep %setup -q -n v-weekly.%{version} tar -xf %{S:1} -C . tar -xf %{S:3} -C thirdparty %build cc ${CFLAGS} -std=gnu11 -w -I./thirdparty/stdatomic/nix -o v1 vc/v.c -lm -lpthread ${LDFLAGS} ./v1 -no-parallel -o v2 cmd/v ./v2 -prod -nocache -o v cmd/v pushd thirdparty/tinycc mkdir -p ../tcc ./configure --prefix=../tcc \ --bindir=../tcc \ --extra-cflags=-O3 \ --config-bcheck=yes \ --config-backtrace=yes \ --debug make make install popd for i in $(find . -type f -print); do if [[ $(basename $i) == .* ]]; then rm -rf $i; continue; fi sed -i "s|/usr/local/bin/v|/usr/bin/v|g" $i; if [[ "$(stat -c %s $i)" == "0" ]]; then rm -rf $i; fi done %check #./v run ./cmd/tools/detect_tcc.v #./v test-all %install mkdir -p %{buildroot}%{_datadir}/v/%{version}/ mkdir -p %{buildroot}%{_libdir}/v/%{version}/ mkdir -p %{buildroot}%{_bindir} install -m 0755 v %{buildroot}%{_libdir}/v/%{version}/ cp -r cmd %{buildroot}%{_libdir}/v/%{version}/ for i in $(find vlib -type d -name "tests" -print); do rm -rf $i; done cp -r vlib %{buildroot}%{_libdir}/v/%{version}/ rm -rf thirdparty/tinycc cp -r thirdparty %{buildroot}%{_libdir}/v/%{version}/ cp -r doc %{buildroot}%{_datadir}/v/%{version} cp -r examples %{buildroot}%{_datadir}/v/%{version} cp -r v.mod %{buildroot}%{_libdir}/v/%{version}/ ln -sf %{_libdir}/v/%{version}/v %{buildroot}%{_bindir}/v %{buildroot}%{_libdir}/v/%{version}/thirdparty/tcc/tcc -I%{buildroot}%{_libdir}/v/%{version}/thirdparty/tcc/include -I%{buildroot}%{_libdir}/v/%{version}/thirdparty/tcc/lib/tcc/include -I%{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc/include -I%{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc/include/gc -c -o %{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc/gc.o %{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc/gc.c %{buildroot}%{_libdir}/v/%{version}/thirdparty/tcc/tcc -ar %{buildroot}%{_libdir}/v/%{version}/thirdparty/tcc/lib/libgc.a %{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc/gc.o ls -l %{buildroot}%{_libdir}/v/%{version}/cmd/ %{buildroot}%{_libdir}/v/%{version}/v -cg -cflags "-I%{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc/include -I%{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc/include/gc" -ldflags "-L%{buildroot}%{_libdir}/v/%{version}/thirdparty/libgc -lgc" %{buildroot}%{_libdir}/v/%{version}/cmd/tools/vpm %fdupes -s %{buildroot}%{_datadir}/v/%{version}/ %files %dir %{_libdir}/v %dir %{_datadir}/v %license LICENSE %{_bindir}/v %{_libdir}/v/%{version} %{_datadir}/v/%{version} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor