Automatic import for version 2.12.0-1

This commit is contained in:
Rosa 2018-01-09 13:15:36 +03:00
commit e1e254d190
3 changed files with 71 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
"GEDKeeper-2.12.0.tar.gz": 53a8fb1d558d754ed6e736d5ef3e8a37d5d99a58

16
desktop.patch Normal file
View file

@ -0,0 +1,16 @@
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

53
gedkeeper.spec Normal file
View file

@ -0,0 +1,53 @@
%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
BuildRequires: pkgconfig(mono)
Requires: lua
%description
%{summary}.
%files
%doc *.md LICENSE
%{_bindir}/gk2_run.sh
%{_datadir}/%{name}
%{_datadir}/mime/application-x-%{name}.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%prep
%setup -qn %{rname}-%{version}
%patch0 -p1
%build
xbuild ./projects/GEDKeeper2.linux.sln /p:Configuration=Debug /p:Platform="x64" /p:MonoCS=true
##xbuild ./projects/GEDKeeper2.linux.sln /p:Configuration=Debug /p:Platform="x32" /p:MonoCS=true
%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
%changelog