Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:bberberov
gittyup
_service:set_version:gittyup.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:gittyup.spec of Package gittyup
# # spec file for package gittyup # # Copyright (c) 2024 Boian Berberov # 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/ # %define up_name Gittyup %define topsrcdir %{up_name}-%{version} # @define topsrcdir %{up_name}-%{name}_v%{version} Name: gittyup Version: 1.4.0 Release: 0 Summary: Understand your Git history! License: MIT URL: https://murmele.github.io/Gittyup/ Source0: %{topsrcdir}.tar.gz # BUG: Cannot use upstream git archive because the repo contains submodules # Have to use the tar_scm _service configuration # See https://github.com/dear-github/dear-github/issues/214 # Also, build issue with libgit2 from archive # Source0: https://github.com/Murmele/%{up_name}/archive/refs/tags/%{name}_v%{version}.tar.gz # Source10: https://github.com/stinb/libgit2/archive/7861f401ea25e1ceaf7323c1585de4d633e0ec39.tar.gz # Source11: https://github.com/orbitalquark/scintillua/archive/refs/tags/scintillua_4.4.5-2.tar.gz # Source12: https://github.com/ScintillaOrg/lexilla/archive/refs/tags/rel-4-4-6.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ # NOTE: git-core is not a hard dependency # BuildRequires: git-core BuildRequires: lua54-devel BuildRequires: pkgconfig(gnome-keyring-1) BuildRequires: pkgconfig(hunspell) BuildRequires: pkgconfig(libcmark) # BUG: cannot unbundle libgit2 at this time; compile errors # BuildRequires: pkgconfig(libgit2) BuildRequires: pkgconfig(libsecret-1) BuildRequires: pkgconfig(libssh2) BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5PrintSupport) BuildRequires: cmake(Qt5Test) BuildRequires: cmake(Qt5Widgets) Requires: openssl3 Requires(post): desktop-file-utils Requires(postun): desktop-file-utils Suggests: libqt5-qttranslations %description Gittyup is a graphical Git client designed to help you understand and manage your source code history. Gittyup is a fork of GitAhead. %prep %setup -q -n %{topsrcdir} # # Setup bundled libgit2 # @__rpmuncompress -x @{SOURCE10} # @__mv libgit2-*/* dep/libgit2/ # @__rm -rf libgit2-* # # # Setup bundled scintillua # @__rpmuncompress -x @{SOURCE11} # @__mv scintillua-*/* dep/scintilla/scintillua/ # @__rm -rf scintillua-* # # # Setup bundled lexilla # @__rpmuncompress -x @{SOURCE12} # @__mv lexilla-*/* dep/scintilla/lexilla/ # @__rm -rf lexilla-* # Set directory names to the package name %__sed -i \ -e '/set(L10N_INSTALL_DIR/s:LOCALEDIR}/${GITTYUP_NAME}:DATAROOTDIR}/${GITTYUP_EXECUTABLE_NAME}/translations:' \ -e '/set(QT_TRANSLATIONS_DIR/s:"/usr/share/qt/translations":${CMAKE_INSTALL_DATAROOTDIR}/qt5/translations:' \ -e '/set(RESOURCES_DIR/s:${GITTYUP_NAME}:${GITTYUP_EXECUTABLE_NAME}:' \ CMakeLists.txt # Remove RPATH %__sed -i -e'/set_target_properties(gittyup PROPERTIES INSTALL_RPATH "$ORIGIN")/d' src/app/CMakeLists.txt # Install auxilary binaries in libexecdir %__sed -i -e '/DESTINATION/s:${CMAKE_INSTALL_BINDIR}:${CMAKE_INSTALL_LIBEXECDIR}/%{name}:' \ src/index/CMakeLists.txt \ src/update/CMakeLists.txt %build %cmake \ -DFLATPAK=OFF \ -DDEBUG_FLATPAK=OFF \ \ -DENABLE_UPDATE_OVER_GUI=OFF \ \ -DUSE_SYSTEM_OPENSSL=ON \ -DUSE_SYSTEM_LIBSSH2=ON \ -DUSE_SYSTEM_GIT=ON \ -DUSE_SYSTEM_QT=ON \ -DUSE_SYSTEM_LUA=ON \ -DUSE_SYSTEM_HUNSPELL=ON \ -DUSE_SYSTEM_CMARK=ON \ -DENABLE_TESTS=OFF # BUG: cannot unbundle libgit2 at this time; compile errors # -DUSE_SYSTEM_LIBGIT2=ON %cmake_build %install %cmake_install # Remove all bundled headers %__rm -rf %{buildroot}%{_includedir} # Remove all bundled libraries %__rm -rf %{buildroot}%{_libdir} # We'll install the license ourselves %__rm -rf %{buildroot}%{_datadir}/licenses %post %desktop_database_post %postun %desktop_database_postun %files %license LICENSE.md %doc README.md %{_bindir}/%{name} %{_libexecdir}/%{name}/ %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/ %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