File ocs-url.spec of Package ocs-url
Name: ocs-url
Version: 3.1.0
Release: 1%{?dist}
Summary: OCS-URL
License: GPLv3+
Group: Applications/Internet
URL: https://git.opendesktop.org/akiraohgaki/ocs-url
Source0: %{name}-%{version}.tar.gz
BuildRequires: git
BuildRequires: make
BuildRequires: automake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: libqt5-qtbase-devel >= 5.2.0
BuildRequires: libqt5-qtsvg-devel >= 5.2.0
BuildRequires: libqt5-qtdeclarative-devel >= 5.2.0
BuildRequires: rpm-build
Requires: libQt5Svg5 >= 5.2.0
Requires: libqt5-qtquickcontrols >= 5.2.0
%description
An install helper program for items served via OpenCollaborationServices (ocs://).
%prep
%autosetup -n %{name}
./scripts/prepare
%build
cd %{_builddir}/ocs-url
%{_libqt5_bindir}/qmake PREFIX=%{_prefix} 'QMAKE_CXXFLAGS= -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DOPENSSL_LOAD_CONF' 'QMAKE_CFLAGS= -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DOPENSSL_LOAD_CONF' 'QMAKE_LFLAGS= -Wl,--as-needed -Wl,--no-undefined'
make %{?_smp_mflags}
#%build
#%qmake5 PREFIX=/usr
#%make
%install
%make_install INSTALL_ROOT=%{buildroot}
%files
%defattr(-,root,root)
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/scalable
%dir /usr/share/icons/hicolor/scalable/apps
%dir /usr/share/applications
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog
* Thu Jul 05 2018 Akira Ohgaki <akiraohgaki@gmail.com> - 3.1.0-1
- Drop old xdg:// and xdgs:// schemes
- Update library
* Tue Feb 06 2018 Akira Ohgaki <akiraohgaki@gmail.com> - 3.0.3-1
- Update library
- Fix spelling
* Fri Jun 23 2017 Akira Ohgaki <akiraohgaki@gmail.com> - 3.0.2-1
- Add zh_TW translations (by s8321414)
* Mon Jun 05 2017 Akira Ohgaki <akiraohgaki@gmail.com> - 3.0.1-1
- Update qtlib
- Fix for C++11
- Fix installation/download destination
- Fix translation messages (by otsoga)
* Sun Mar 05 2017 Akira Ohgaki <akiraohgaki@gmail.com> - 3.0.0-1
- Rename xdgurl to ocs-url
- Add ocs:// and ocss:// schemes
- xdg:// and xdgs:// schemes still available for backward compatibility
- New app icon
- New dialog window
- Labels and messages are translatable
- Qt 5.2 support
- Use the same configs of install-types with ocsstore
- Add en_US translation
- Add ja_JP translation
- Add tr_TR translation (by tarakbumba)