Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:vlefebvre:branches:home:vlefebvre
second-brain
second-brain.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File second-brain.spec of Package second-brain
# # spec file for package second-brain # # Copyright (c) 2023 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/ # %define bin_name second_brain %if 0%{?suse_version} == 1699 %define distribution tumbleweed %endif %if 0%{?suse_version} >= 1500 && 0%{?suse_version} < 1699 %define distribution leap %endif Name: second-brain Version: 0.0.1 Release: 0 Summary: Desktop app to manage tasks License: MIT Group: Development/Tools/Other URL: https://github.com/keentux/second_brain Source: second-brain-prebuild-0.0.1.tar.xz Source1: pub-cache.tar.gz #Source: https://github.com/keentux/second_brain/releases/download/%{version}/%{name}-%{version}-linux.tar.gz BuildRoot: %{_tmppath}/%{name}-prebuild-%{version} BuildRequires: flutter-obs BuildRequires: git %description Desktop app to manage task to improve productivity. %prep %setup -q -n %{name}-prebuild-%{version} tar -xzf %{SOURCE1} export PUB_CACHE=${PWD}/pub-cache sed -i "s|upgrade_flutter 7<|# upgrade_flutter 7< |g" /usr/share/flutter/bin/internal/shared.sh git config --global --add safe.directory /usr/share/flutter ls -la /usr/bin/flutter ls -la /usr/bin/dart #dart --version cat /usr/share/flutter/bin/cache/flutter_tools.stamp FLUTTER_ROOT="/usr/share/flutter" revision="$(cd "$FLUTTER_ROOT"; git rev-parse HEAD)" echo $revision flutter --version flutter pub get --offline %build #export PUB_CACHE=~/.pub-cache echo "pub_cache: $PUB_CACHE" flutter build linux --offline %install install -d -m 0755 %{buildroot}%{_libdir}/%{name} install -d -m 0755 %{buildroot}%{_bindir}/ cp -r ./%{distribution}/data %{buildroot}%{_libdir}/%{name}/ cp -r ./%{distribution}/lib %{buildroot}%{_libdir}/%{name}/ install -m 0755 ./%{distribution}/%{bin_name} %{buildroot}%{_libdir}/%{name}/ ln -s %{_libdir}/%{name}/%{bin_name} %{buildroot}%{_bindir}/%{name} %files %defattr(-,root,root) %{_libdir}/%{name} %{_bindir}/%{name} %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