File vcard-studio.spec of Package vcard-studio

#
# spec file for package vcard-studio
#
# 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 svn_rev 185
%define app_name vCardStudio

Name:           vcard-studio
Version:        1.5.0
Release:        0
Summary:        A contact management application with support for vCard file format (.vcf).
License:        NLPL
Group:          Productivity/Office/Organizers
URL:            https://app.zdechov.net/vcard-studio/
Source0:        %{version}-%{svn_rev}.zip
BuildRequires:  cmake
BuildRequires:  unzip
BuildRequires:  lazarus >= 2.0.12
BuildRequires:  update-desktop-files
BuildRequires:  hicolor-icon-theme

%description
A contact management application with support for vCard file format.

A tool for work with contacts stored in vCard format (.vcf)

Features:

- Add, Edit, Clone or Remove contacts and contact properties
- Shows contact fields in multiple tabs General, Home, Work, Social, Chat and Others
- Contact photo displayed and can be changed (supported image types JPEG, PNG, GIF and BMP)
- Quick filter by table column in contacts list
- Combine multiple contact files together
- Split contacts to separate files
- Find any value in contacts
- Find duplicate contacts to merge
- Copy, Cut and Paste contacts from/to clipboard
- Multilingual interface (English, Czech)

%prep
%autosetup -n %{version}

%build
lazbuild --build-mode=Release vCardStudio.lpi

%install
install -dm 755 %{buildroot}%{_bindir}
install -Dpm 755 vCardStudio %{buildroot}/%{_bindir}/%{app_name}
install -dm 755 %{buildroot}/%{_datadir}/%{app_name}/Languages
install -m 644 Languages/*.pot %{buildroot}/%{_datadir}/%{app_name}/Languages
install -m 644 Languages/*.cs.po %{buildroot}/%{_datadir}/%{app_name}/Languages
install -dm 755 %{buildroot}/%{_datadir}/%{app_name}/Images
install -m 755 Images/Profile.png %{buildroot}/%{_datadir}/%{app_name}/Images

%suse_update_desktop_file -i vCardStudio

%files
%{_bindir}/%{app_name}
%{_datadir}/applications/vCardStudio.desktop
%{_datadir}/%{app_name}/

%changelog
openSUSE Build Service is sponsored by