Ignore:
Timestamp:
Apr 7, 2020, 8:01:09 PM (5 years ago)
Author:
tellie
Message:

spec: fribidi: Release version 0.19.5-1

File:
1 edited

Legend:

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

    r1417 r1695  
    1 #%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
    2 Name:           luckybackup
    3 Version:        0.4.9
    4 Release:        2%{?dist}
    5 Summary:        A powerful, fast and reliable backup and sync tool
     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.
    614
    7 Group:          Applications/System
    8 License:        GPLv3+
    9 URL:            http://luckybackup.sourceforge.net/index.html
    10 #Source0:       http://downloads.sourceforge.net/project/%{name}/%{version}/source/%{name}-%{version}.tar.gz
    11 %scm_source github http://github.com/TeLLie/%{name}-os2 master
    12 Source1:        %{name}.policy
    13 
    14 BuildRequires:  libqt4-devel
    15 #Buildrequires: desktop-file-utils
    16 Buildrequires:  gcc
    17 #BuildRequires: c++
    18 #Requires:      polkit
     15# Please submit bugfixes or comments via https://bugs.opensuse.org/
     16#
     17Name:           luckybackup
     18Version:        0.5.0
     19Release:        1
     20Summary:        A powerful, fast and reliable backup & sync tool
     21License:        GPL-3.0-or-later
     22Group:          Productivity/Archiving/Backup
     23URL:            http://luckybackup.sourceforge.net/
     24Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
     25BuildRequires:  pkgconfig
     26BuildRequires:  pkgconfig(Qt5Core)
     27BuildRequires:  pkgconfig(Qt5Gui)
     28BuildRequires:  pkgconfig(Qt5Network)
     29BuildRequires:  pkgconfig(Qt5Widgets)
     30#Requires:       polkit
     31Requires:       rsync
     32%if 0%{?suse_version}
     33BuildRequires:  update-desktop-files
     34%endif
    1935
    2036%description
    21 luckyBackup is an application that backs-up and/or synchronizes any
    22 directories with the power of rsync.
     37luckyBackup is an application that backs-up and/or synchronizes any directories
     38with the power of rsync.
    2339
    24 It is simple to use, fast (transfers over only changes made and not all data), 
    25 safe (keeps your data safe by checking all declared directories before 
    26 proceeding in any data manipulation ), reliable and fully customizable.
     40It is simple to use, fast (transfers over only changes made and not all data),
     41safe (keeps your data safe by checking all declared directories before
     42proceeding in any data manipulation), reliable and fully customizable.
    2743
    2844%prep
    29 %scm_setup
    30 #%setup -q
    31 #sed -i 's,/usr/share/doc/luckybackup,%{_pkgdocdir},' luckybackup.pro
    32 #sed -i 's,/usr/share/doc/luckybackup/license/gpl.html,%{_pkgdocdir}/license/gpl.html,' src/global.h
    33 #sed -i 's,/usr/share/doc/luckybackup/manual/index.html,%{_pkgdocdir}/manual/index.html,' src/global.h
    34 #sed -i 's,su-to-root -X -c,/usr/bin/pkexec,' menu/%{name}-gnome-su.desktop
    35 #sed -i '/Fedora users/d' manual/index.html
    36 #chmod a-x manual/index.html
     45%setup -q
     46# Fix permissions (fixes rpmlint errors "spurious-executable-perm" and "executable-docs")
     47chmod 644 manual/index.html
    3748
    3849%build
    39 qmake
    40 #%make_build CFLAGS="$RPM_OPT_FLAGS"
    41 export QMAKE_SH=$SHELL
     50#export QMAKE_SH=$SHELL
    4251# do a fast qt build, as runmapsym and wmapsym is not needed here
    43 export FAST_BUILD=1
     52#export FAST_BUILD=1
    4453LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    45 #TARGET_INSTALL_PATH="%{_bindir}/*"
     54
     55#qmake-qt5 QMAKE_CXXFLAGS+="%{optflags}" -config release luckybackup.pro
     56qmake-qt5
    4657make %{?_smp_mflags}
    47 echo 686-OS/2-OS/2 > luckybackup.sym
    4858
    4959%install
    50 INSTALL_ROOT=%{buildroot} \
    51   make install DESTDIR=%{buildroot}
    52 install -m 0755 -d %{buildroot}%{_datadir}/polkit-1/actions/
    53 install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/
     60make INSTALL_ROOT=%{buildroot} install
    5461
    55 %check
    56 #desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-kde-su.desktop
    57 #desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gnome-su.desktop
    58 #desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
     62# Remove unneeded files
     63rm -rf %{buildroot}%{_bindir}/translations/*.ts
     64rm -rf %{buildroot}%{_datadir}/doc/luckybackup/
     65rm -rf %{buildroot}%{_datadir}/menu/
    5966
    60 # Remove unused files
    61 rm -rf  D:/rpmbuild/BUILDROOT/luckybackup-0.4.9-1.i386/@unixroot/usr/bin.sym
    62 rm -rf %{_bindir}/%{name}*.ts
     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
     70%endif
    6371
    6472%files
    65 %doc readme/README readme/changelog
    66 %license license/gpl.txt
    67 %{_bindir}/%{name}.exe
    68 %{_bindir}/translations/*.*
    69 %{_bindir}/%{name}.sym
    70 #%{_datadir}/applications/%{name}-%{version}
    71 %{_datadir}/polkit-1/actions/%{name}.policy
    72 #%{_datadir}/%{name}
    73 %{_datadir}/man/man8/*.8.*
    74 #%{_datadir}/menu
    75 #%{_datadir}/pixmaps/%{name}*
    76 #%{_docdir}/%{name}/*
     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*
    7783
    7884%changelog
    79 * Wed May 23 2018 Elbert Pol <elbert.pol@gmail.com> - 0.4.9-2
    80 - Remove the polkit dependencie
    81 * Sun May 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.4.9-1
    82 - Initial build for OS2
Note: See TracChangeset for help on using the changeset viewer.