Ignore:
Timestamp:
Mar 14, 2021, 2:43:34 PM (4 years ago)
Author:
tellie
Message:

spec: luckybackup: Release version 0.5.0-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/luckybackup.spec

    r1695 r1756  
    1 #
    2 # spec file for package luckybackup
    3 #
    4 # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
    5 #
    6 # All modifications and additions to the file contributed by third parties
    7 # remain the property of their copyright owners, unless otherwise agreed
    8 # upon. The license for this file, and modifications and additions to the
    9 # file, is the same license as for the pristine package itself (unless the
    10 # license for the pristine package is not an Open Source License, in which
    11 # case the license is the MIT License). An "Open Source License" is a
    12 # license that conforms to the Open Source Definition (Version 1.9)
    13 # published by the Open Source Initiative.
     1%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
     2Name:           luckybackup
     3Version:        0.5.0
     4Release:        1%{?dist}
     5Summary:        A powerful, fast and reliable backup and sync tool
    146
    15 # Please submit bugfixes or comments via https://bugs.opensuse.org/
    16 #
    17 Name:           luckybackup
    18 Version:        0.5.0
    19 Release:        1
    20 Summary:        A powerful, fast and reliable backup & sync tool
    21 License:        GPL-3.0-or-later
    22 Group:          Productivity/Archiving/Backup
    23 URL:            http://luckybackup.sourceforge.net/
    24 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
    25 BuildRequires:  pkgconfig
    26 BuildRequires:  pkgconfig(Qt5Core)
    27 BuildRequires:  pkgconfig(Qt5Gui)
    28 BuildRequires:  pkgconfig(Qt5Network)
    29 BuildRequires:  pkgconfig(Qt5Widgets)
    30 #Requires:       polkit
    31 Requires:       rsync
    32 %if 0%{?suse_version}
    33 BuildRequires:  update-desktop-files
     7License:        GPLv3+
     8URL:            http://luckybackup.sourceforge.net/index.html
     9%if !0%{?os2_version}
     10Source0:        http://downloads.sourceforge.net/project/%{name}/%{version}/source/%{name}-%{version}.tar.gz
     11%else
     12Source1:        %{name}.policy
     13%scm_source github http://github.com/TeLLie/luckybackup-os2 master-os2
     14%endif
     15
     16%if !0%{?os2_version}
     17BuildRequires:  qt-devel
     18Buildrequires:  desktop-file-utils
     19%else
     20BuildRequires: qt5-devel
     21%endif
     22Buildrequires:  gcc-c++
     23BuildRequires: make
     24%if !0%{?os2_version}
     25Requires:       polkit
    3426%endif
    3527
    3628%description
    37 luckyBackup is an application that backs-up and/or synchronizes any directories
    38 with the power of rsync.
     29luckyBackup is an application that backs-up and/or synchronizes any
     30directories with the power of rsync.
    3931
    40 It is simple to use, fast (transfers over only changes made and not all data),
    41 safe (keeps your data safe by checking all declared directories before
    42 proceeding in any data manipulation), reliable and fully customizable.
     32It is simple to use, fast (transfers over only changes made and not all data), 
     33safe (keeps your data safe by checking all declared directories before 
     34proceeding in any data manipulation ), reliable and fully customizable.
    4335
    4436%prep
     37%if !0%{?os2_version}
    4538%setup -q
    46 # Fix permissions (fixes rpmlint errors "spurious-executable-perm" and "executable-docs")
    47 chmod 644 manual/index.html
     39sed -i 's,/usr/share/doc/luckybackup,%{_pkgdocdir},' luckybackup.pro
     40sed -i 's,/usr/share/doc/luckybackup/license/gpl.html,%{_pkgdocdir}/license/gpl.html,' src/global.h
     41sed -i 's,/usr/share/doc/luckybackup/manual/index.html,%{_pkgdocdir}/manual/index.html,' src/global.h
     42sed -i 's,su-to-root -X -c,/usr/bin/pkexec,' menu/%{name}-gnome-su.desktop
     43sed -i '/Fedora users/d' manual/index.html
     44%else
     45%scm_setup
     46chmod a-x manual/index.html
     47%endif
    4848
    4949%build
    50 #export QMAKE_SH=$SHELL
    51 # do a fast qt build, as runmapsym and wmapsym is not needed here
    52 #export FAST_BUILD=1
     50%if !0%{?os2_version}
     51%{qmake_qt4}
     52%make_build CFLAGS="$RPM_OPT_FLAGS"
     53%else
    5354LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    54 
    55 #qmake-qt5 QMAKE_CXXFLAGS+="%{optflags}" -config release luckybackup.pro
    56 qmake-qt5
     55qmake-qt5 PREFIX=/@unixroot/usr
    5756make %{?_smp_mflags}
     57%endif
    5858
    5959%install
    60 make INSTALL_ROOT=%{buildroot} install
     60#INSTALL_ROOT=%{buildroot} \
     61#  make install DESTDIR=%{buildroot}
     62%make_install INSTALL_ROOT=%{buildroot}
     63install -m 0755 -d %{buildroot}%{_datadir}/polkit-1/actions/
     64install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/
    6165
    6266# Remove unneeded files
     
    6569rm -rf %{buildroot}%{_datadir}/menu/
    6670
    67 %if 0%{?suse_version}
    68 %suse_update_desktop_file -r %{name} Qt Utility Archiving
    69 %suse_update_desktop_file -r %{name}-su Qt Utility Archiving
     71%check
     72%if !0%{?os2_version}
     73desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-kde-su.desktop
     74desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gnome-su.desktop
     75desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
    7076%endif
    7177
    7278%files
    73 %doc license/ manual/ readme/*
    74 #%dir %{_datadir}/polkit-1
    75 #%dir %{_datadir}/polkit-1/actions
    76 %{_bindir}/luckybackup.exe
    77 #%exclude %{_bindir}/luckybackup-pkexec
    78 #%{_datadir}/applications/luckybackup*.desktop
    79 %{_bindir}/
    80 %{_datadir}/pixmaps/luckybackup.*
    81 #%{_datadir}/polkit-1/actions/net.luckybackup.su.policy
    82 %{_mandir}/man8/luckybackup*8*
     79%doc readme/README readme/changelog
     80%license license/gpl.txt
     81%if !0%{?os2_version}
     82%{_bindir}/%{name}
     83%{_datadir}/applications/%{name}*
     84%{_datadir}/applications/%{name}*
     85%{_datadir}/%{name}
     86%{_datadir}/menu
     87%{_datadir}/pixmaps/%{name}*
     88%{_docdir}/%{name}
     89%else
     90%{_bindir}/%{name}.exe
     91%{_bindir}/translations/*.qm
     92%{_datadir}/polkit-1/actions/%{name}.policy
     93%{_datadir}/man/man8/*.8.*
     94%endif
    8395
    8496%changelog
     97* Sun Mar 14 2021 Elbert Pol <elbert.pol@gmail.com> - 0.5.0-1
     98- Updated to latest version
     99- Add os2 definitions to spec file
     100- Update to latest Fedora spec
Note: See TracChangeset for help on using the changeset viewer.