mirror of
https://abf.rosa.ru/djam/gedkeeper.git
synced 2025-02-24 02:22:47 +00:00
2.12.0 -> 2.19.1
This commit is contained in:
parent
d81dbb745a
commit
1fade4e17c
3 changed files with 50 additions and 52 deletions
3
.abf.yml
3
.abf.yml
|
@ -1,2 +1,3 @@
|
|||
sources:
|
||||
"GEDKeeper-2.12.0.tar.gz": 53a8fb1d558d754ed6e736d5ef3e8a37d5d99a58
|
||||
GEDKeeper-2.12.0.tar.gz: 53a8fb1d558d754ed6e736d5ef3e8a37d5d99a58
|
||||
v2.19.1.tar.gz: 8f3e04ca58c9cd829afb18d48ffc43842bdd03de
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
diff -ur GEDKeeper-2.12.0-new/deploy/gedkeeper.desktop GEDKeeper-2.12.0/deploy/gedkeeper.desktop
|
||||
--- GEDKeeper-2.12.0-new/deploy/gedkeeper.desktop 2017-06-17 18:21:12.000000000 +0300
|
||||
+++ GEDKeeper-2.12.0/deploy/gedkeeper.desktop 2018-01-09 12:48:22.941099600 +0300
|
||||
@@ -8,10 +8,10 @@
|
||||
Comment[it]=Editor di un database genealogico personali
|
||||
Comment[de]=Persönlicher genealogischer Datenbankeditor
|
||||
Comment[zh]=个人系谱数据库编辑器
|
||||
-Path=/usr/lib/gedkeeper/
|
||||
+Path=/usr/share/gedkeeper/
|
||||
Exec=mono GEDKeeper2.exe %U
|
||||
MimeType=application/x-gedkeeper
|
||||
-Icon=/usr/share/pixmaps/gedkeeper.png
|
||||
+Icon=gedkeeper.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Office
|
|
@ -1,53 +1,66 @@
|
|||
%define rname GEDKeeper
|
||||
%define summary GEDKeeper - program for work with personal genealogical database
|
||||
|
||||
Name: gedkeeper
|
||||
Version: 2.12.0
|
||||
Release: 1
|
||||
Summary: %{summary}
|
||||
License: GPLv3
|
||||
Group: Office
|
||||
Url: https://github.com/serg-norseman/gedkeeper
|
||||
Source0: https://github.com/serg-norseman/gedkeeper/archive/v%{version}.tar.gz?/%{rname}-%{version}.tar.gz
|
||||
Patch0: desktop.patch
|
||||
BuildArch: noarch
|
||||
%define real_name GEDKeeper
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: gedkeeper
|
||||
Version: 2.19.1
|
||||
Release: 1
|
||||
Summary: GEDKeeper - program for work with personal genealogical database
|
||||
License: GPLv3
|
||||
Group: Editors
|
||||
Url: https://github.com/Serg-Norseman/%{real_name}
|
||||
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildRequires: pkgconfig(mono)
|
||||
Requires: lua
|
||||
AutoReq: 0
|
||||
Requires: mono-core
|
||||
Requires: mono-data
|
||||
Requires: mono-winforms
|
||||
Requires: lua
|
||||
Requires: sqlite
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%files
|
||||
%doc *.md LICENSE
|
||||
%license LICENSE
|
||||
%doc *.md
|
||||
%{_bindir}/gk2_run.sh
|
||||
%{_datadir}/%{name}
|
||||
%{_datadir}/mime/application-x-%{name}.xml
|
||||
%{_libdir}/%{name}
|
||||
%{_datadir}/mime/*.xml
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
|
||||
%prep
|
||||
%setup -qn %{rname}-%{version}
|
||||
%patch0 -p1
|
||||
%autosetup -n %{real_name}-%{version}
|
||||
|
||||
find . -type f -iname "*.dll" -exec chmod -x {} \;
|
||||
|
||||
%{__rm} -fr projects/GKCommunicator
|
||||
|
||||
%build
|
||||
##xbuild ./projects/GEDKeeper2.linux.sln /p:Configuration=Debug /p:Platform="x64" /p:MonoCS=true
|
||||
xbuild ./projects/GEDKeeper2.linux.sln /p:Configuration=Debug /p:MonoCS=true
|
||||
|
||||
xbuild ./projects/GEDKeeper2.linux.sln \
|
||||
/p:Configuration=Release \
|
||||
/p:Platform="x86" \
|
||||
/p:MonoCS=true \
|
||||
/p:TargetFrameworkVersion=v4.5 \
|
||||
/v:quiet
|
||||
|
||||
%install
|
||||
install -Dm 0755 gk2_run.sh %{buildroot}%{_bindir}/gk2_run.sh
|
||||
install -d 0755 %{buildroot}%{_datadir}/%{name}
|
||||
install -Dm 0644 deploy/application-x-%{name}.xml %{buildroot}%{_datadir}/mime/application-x-%{name}.xml
|
||||
install -Dm 0644 deploy/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
install -Dm 0644 deploy/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
cp -r *.dll %{rname}2.exe \
|
||||
locales \
|
||||
plugins \
|
||||
samples \
|
||||
scripts %{buildroot}%{_datadir}/%{name}
|
||||
|
||||
## E: zero-length
|
||||
rm -rf %{buildroot}%{_datadir}/%{name}/scripts/readme.txt
|
||||
for F in locales plugins samples scripts;do
|
||||
find ${F} -type f -exec chmod -x '{}' \;
|
||||
done
|
||||
|
||||
%{__install} -Dm 0755 deploy/gk2_run.sh %{buildroot}%{_bindir}/gk2_run.sh
|
||||
%{__install} -d 0755 %{buildroot}%{_libdir}/%{name}
|
||||
%{__install} -Dm 0644 deploy/application-x-%{name}.xml %{buildroot}%{_datadir}/mime/application-x-%{name}.xml
|
||||
%{__install} -Dm 0644 deploy/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
%{__install} -Dm 0644 deploy/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
|
||||
for D in bin locales plugins samples scripts;do
|
||||
%{__cp} -R ${D} %{buildroot}%{_libdir}/%{name}
|
||||
done
|
||||
|
||||
for R in GWTreePlugin GKCommunicatorPlugin GKCore.IPC GKNetCore GKTray;do
|
||||
find %{buildroot} -name "${R}.*" -delete
|
||||
done
|
||||
|
||||
%changelog
|
||||
|
|
Loading…
Add table
Reference in a new issue