- Update to version 0.8
Backwards incompatibility with variants:
* The FUSE overlay variants have been removed in favor of
explicit variants. If you use variants on version v0.7.11 or
earlier, you may need to update your Tupfiles. See
https://gittup.org/tup/ex_explicit_variants.html for more
details.
New features:
* 'import' keyword to set a Tupfile variable to an environment
variable.
* 'tup compiledb' can create a compile_commands.json for
third-party tools to see compilation commands.
* 'tup commandline' shows the commandline used to compile a
file.
* 'tup generate' can support building in a separate build
directory (if the project supports building with variants).
* 'tup generate' can take an output list to limit what the
script generates (ie: a partial build script).
* A single Lua state is now re-used during parsing and doesn't
need to be reinitialized for every Lua-based Tupfile.
* Internal mtime tracking is now at nanosecond resolution
(where supported by the OS) instead of 1-second intervals.
Dependency updates:
* Internal Lua version is now 5.4.6
* Internal SQLite version is now 3.45.2
* Internal PCRE version is now PCRE2 10.42
* External PCRE dependency is now libpcre2 instead of libpcre
(default unless built with CONFIG_TUP_USE_SYSTEM_PCRE=n in
which case the internal version is used)
Bug fixes:
* Fixed a bug that results in tup_entry_rm called on tupid X,
which still has refcount=1
* ^o rules that fail with a monitor autoupdate no longer cause
infinite loops
* Deleted files are now removed from the transient_list.
- Drop tup-add_archs.patch (no longer necessary)
- Drop tup.rpmlintrc
OBS-URL: https://build.opensuse.org/request/show/1163934
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/tup?expand=0&rev=18
84 lines
2.6 KiB
RPMSpec
84 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package tup
|
|
#
|
|
# Copyright (c) 2024 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: tup
|
|
Version: 0.8
|
|
Release: 0
|
|
Summary: File-based build system
|
|
License: GPL-2.0-only
|
|
URL: http://gittup.org/tup/
|
|
Source0: https://github.com/gittup/tup/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: awk
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: vim
|
|
BuildRequires: pkgconfig(fuse3)
|
|
BuildRequires: pkgconfig(libpcre2-posix)
|
|
Requires: vim
|
|
|
|
%description
|
|
Tup is a file-based build system.
|
|
It inputs a list of file changes and a directed acyclic graph (DAG),
|
|
then processes the DAG to execute the appropriate commands required
|
|
to update dependent files.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documents and examples for %{name}
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
sed "s/\`git describe\`/%{version}/" -i src/tup/link.sh
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
./build.sh
|
|
./build/tup init
|
|
./build/tup generate runme.sh
|
|
./runme.sh
|
|
|
|
%install
|
|
vimver=$(vim --version|grep ^VIM|awk '{gsub("\\.","",$5); print $5}')
|
|
gzip tup.1
|
|
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 \
|
|
%{buildroot}%{_datadir}/vim/vim$vimver/syntax \
|
|
%{buildroot}%{_datadir}/vim/vim$vimver/ftdetect
|
|
install -m755 tup -t %{buildroot}%{_bindir}
|
|
install -m644 tup.1.gz -t %{buildroot}%{_mandir}/man1
|
|
install -m644 contrib/syntax/tup.vim -t %{buildroot}%{_datadir}/vim/vim$vimver/syntax
|
|
echo 'au BufNewFile,BufRead Tupfile,*.tup setf tup' > %{buildroot}%{_datadir}/vim/vim$vimver/ftdetect/tup.vim
|
|
echo -e "%{_datadir}/vim/vim$vimver/syntax/tup.vim\n%{_datadir}/vim/vim$vimver/ftdetect\n" > vim.files
|
|
rm docs/html/*.sh docs/html/Tupfile
|
|
mv docs/html/pub/*.pdf docs/html/
|
|
mv docs/html/pub/*.css docs/html/
|
|
rm -rf docs/html/pub
|
|
|
|
%files -f vim.files
|
|
%doc CONTRIBUTING.md README.md
|
|
%license COPYING
|
|
%{_bindir}/tup
|
|
%{_mandir}/man1/tup.1.gz
|
|
|
|
%files doc
|
|
%doc docs/*
|
|
|
|
%changelog
|