Compare commits
No commits in common. "2bf73118d0adae51e9b08cb5a0daf353b5fd4885" and "3dbe40db3e71dd3d7049457adead58cdd037eb2c" have entirely different histories.
2bf73118d0
...
3dbe40db3e
@ -1,41 +0,0 @@
|
|||||||
From d94c298552f7e9eb9ee063903ed8e14c9e42e132 Mon Sep 17 00:00:00 2001
|
|
||||||
From: wang--ge <wang__ge@126.com>
|
|
||||||
Date: Tue, 6 Jun 2023 14:12:44 +0800
|
|
||||||
Subject: [PATCH] add pie compile option
|
|
||||||
|
|
||||||
---
|
|
||||||
Makefile | 10 +++++-----
|
|
||||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index 80c8fe5..d16c755 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -3,19 +3,19 @@ INSTALLDEST=/usr/local/bin/sysget
|
|
||||||
CCP=g++
|
|
||||||
|
|
||||||
prog: main.o packagemanager.o utils.o translation.o
|
|
||||||
- $(CCP) $(FLAGS) -o sysget main.o packagemanager.o utils.o translation.o
|
|
||||||
+ $(CCP) $(FLAGS) -pie -o sysget main.o packagemanager.o utils.o translation.o
|
|
||||||
|
|
||||||
main.o: src/main.cpp src/main.hpp
|
|
||||||
- $(CCP) $(FLAGS) -c src/main.cpp src/main.hpp
|
|
||||||
+ $(CCP) $(FLAGS) -fPIE -c src/main.cpp src/main.hpp
|
|
||||||
|
|
||||||
packagemanager.o: src/packagemanager.hpp src/packagemanager.cpp
|
|
||||||
- $(CCP) $(FLAGS) -c src/packagemanager.hpp src/packagemanager.cpp
|
|
||||||
+ $(CCP) $(FLAGS) -fPIE -c src/packagemanager.hpp src/packagemanager.cpp
|
|
||||||
|
|
||||||
utils.o: src/utils.hpp src/utils.cpp
|
|
||||||
- $(CCP) $(FLAGS) -c src/utils.hpp src/utils.cpp
|
|
||||||
+ $(CCP) $(FLAGS) -fPIE -c src/utils.hpp src/utils.cpp
|
|
||||||
|
|
||||||
translation.o: src/translation.hpp src/translation.cpp
|
|
||||||
- $(CCP) $(FLAGS) -c src/translation.hpp src/translation.cpp
|
|
||||||
+ $(CCP) $(FLAGS) -fPIE -c src/translation.hpp src/translation.cpp
|
|
||||||
|
|
||||||
install:
|
|
||||||
cp sysget $(INSTALLDEST)
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
Binary file not shown.
@ -1,22 +0,0 @@
|
|||||||
From 6f992c18c8a28c26a2a991206ea440f373b13156 Mon Sep 17 00:00:00 2001
|
|
||||||
From: sunguoshuai <sunguoshuai@huawei.com>
|
|
||||||
Date: Thu, 9 Sep 2021 14:43:46 +0800
|
|
||||||
Subject: [PATCH] sysget should generate debuginfo
|
|
||||||
|
|
||||||
---
|
|
||||||
Makefile | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index 80c8fe5..c3aa86b 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-FLAGS=-std=c++11 -Wall -Wextra -Wpedantic
|
|
||||||
+FLAGS=-std=c++11 -Wall -Wextra -Wpedantic -g
|
|
||||||
INSTALLDEST=/usr/local/bin/sysget
|
|
||||||
CCP=g++
|
|
||||||
|
|
||||||
--
|
|
||||||
2.30.0
|
|
||||||
|
|
||||||
67
sysget.spec
67
sysget.spec
@ -1,67 +0,0 @@
|
|||||||
Name: sysget
|
|
||||||
Version: 2.3
|
|
||||||
Release: 5
|
|
||||||
Summary: One package manager to rule them all
|
|
||||||
License: GPLv3
|
|
||||||
URL: http://sysget.emilengler.com
|
|
||||||
Source0: https://github.com/emilengler/sysget/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
||||||
Patch1: sysget-should-generate-debuginfo.patch
|
|
||||||
Patch2: 0001-add-pie-compile-option.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc autoconf automake make gcc-c++
|
|
||||||
|
|
||||||
%description
|
|
||||||
sysget is a bridge that lets you use one syntax to every package manager on every unix-based operating system.
|
|
||||||
You probably all know the problem when you are on a new distro and don't know anything about the package manager. With sysget you just need to remember one syntax for every package manager.
|
|
||||||
The syntax is mostly same with apt so it should be easy to use.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{name}-%{version}/
|
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
|
||||||
%make_build
|
|
||||||
|
|
||||||
%install
|
|
||||||
install -d %{buildroot}/%{_bindir}
|
|
||||||
install -m0755 sysget %{buildroot}/%{_bindir}
|
|
||||||
|
|
||||||
install -d %{buildroot}/%{_mandir}/man8
|
|
||||||
install -m0644 contrib/man/sysget.8 %{buildroot}/%{_mandir}/man8
|
|
||||||
gzip %{buildroot}/%{_mandir}/man8/sysget.8
|
|
||||||
|
|
||||||
install -d %{buildroot}/%{_sysconfdir}/bash_completion.d/%{name}
|
|
||||||
install -m0644 contrib/sysget.bash-completion %{buildroot}/%{_sysconfdir}/bash_completion.d/%{name}
|
|
||||||
|
|
||||||
|
|
||||||
%pre
|
|
||||||
%preun
|
|
||||||
%post
|
|
||||||
%postun
|
|
||||||
|
|
||||||
%check
|
|
||||||
|
|
||||||
%files
|
|
||||||
%license LICENSE.txt
|
|
||||||
%doc README.md CONTRIBUTING.md
|
|
||||||
%{_bindir}/*
|
|
||||||
%{_mandir}/*
|
|
||||||
%{_sysconfdir}/*
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Tue Jun 06 2023 Ge Wang <wang__ge@126.com> - 2.3-5
|
|
||||||
- Add pie compile option
|
|
||||||
|
|
||||||
* Thu Sep 09 2021 sunguoshuai <sunguoshuai@huawei.com> - 2.3-4
|
|
||||||
- sysget should generate debuginfo
|
|
||||||
|
|
||||||
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 2.3-3
|
|
||||||
- Completing build dependencies to fix gcc-c++ compiler missing error
|
|
||||||
|
|
||||||
* Thu Sep 24 2020 ShiYuan Hu<421699196@qq.com> - 2.3-2
|
|
||||||
- refresh source0 url
|
|
||||||
|
|
||||||
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
|
|
||||||
- Package init
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
version_control:github
|
|
||||||
src_repo:emilengler/sysget
|
|
||||||
tar_prefix: "^v"
|
|
||||||
seperator: .
|
|
||||||
Loading…
x
Reference in New Issue
Block a user