Blame admeshgui.spec

8037f18
Name:           admeshgui
8037f18
%global         camelname ADMeshGUI
4574461
Version:        1.0.1
ebaf4c4
Release:        7%{?dist}
8037f18
Summary:        STL viewer and manipulation tool
8037f18
# Code is AGPLv3 logo/license is LGPLv3 or CC-BY-SA
8037f18
License:        AGPLv3 and (LGPLv3 or CC-BY-SA)
8037f18
URL:            https://github.com/vyvledav/%{camelname}
8037f18
Source0:        https://github.com/vyvledav/%{camelname}/archive/v%{version}.tar.gz
8037f18
ebaf4c4
# https://github.com/admesh/ADMeshGUI/commit/1732bc83cb2c949089d98cd9be0e922ac4af4a28
ebaf4c4
Patch0:         %{name}-qt571.patch
ebaf4c4
8037f18
BuildRequires:  desktop-file-utils
4574461
BuildRequires:  libappstream-glib
8037f18
BuildRequires:  pkgconfig(libadmesh) >= 0.98.2
8037f18
BuildRequires:  pkgconfig(Qt5Core) >= 5.4
8037f18
BuildRequires:  pkgconfig(Qt5Gui) >= 5.4
8037f18
BuildRequires:  pkgconfig(Qt5OpenGL) >= 5.4
8037f18
BuildRequires:  pkgconfig(Qt5Svg) >= 5.4
8037f18
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4
8037f18
BuildRequires:  pkgconfig(Qt5) >= 5.4
8037f18
BuildRequires:  stlsplit-devel
8037f18
8037f18
Requires:       hicolor-icon-theme
8037f18
8037f18
Provides:       %{camelname}%{_isa} = %{version}-%{release}
8037f18
Provides:       %{camelname} = %{version}-%{release}
8037f18
8037f18
%description
8037f18
Extension for ADMesh tool in the form of graphical user interface. ADMesh tool
8037f18
allows to manipulate and repair 3D models in the STL format. This graphical
8037f18
user interface allows the user to view the model in 3D viewer, to perform
8037f18
selected actions and to get visual feedback of those.
8037f18
8037f18
%prep
8037f18
%setup -qn %{camelname}-%{version}
ebaf4c4
%patch0 -p1
ebaf4c4
8037f18
8037f18
%build
Rex Dieter bbb2ab8
%{qmake_qt5} PREFIX=%{buildroot}/usr
8037f18
make %{?_smp_mflags}
8037f18
8037f18
%install
4574461
make install
8037f18
8037f18
%check
8037f18
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
569cc81
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
8037f18
8037f18
%post
8037f18
update-desktop-database &>/dev/null || :
8037f18
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
8037f18
8037f18
%postun
8037f18
update-desktop-database &> /dev/null || :
8037f18
if [ $1 -eq 0 ] ; then
8037f18
  touch --no-create %{_datadir}/icons/hicolor &>/dev/null
8037f18
  gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
8037f18
  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
8037f18
fi
8037f18
8037f18
%posttrans
8037f18
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || :
8037f18
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
8037f18
8037f18
%files
8037f18
%license LICENSE LOGO-LICENSE
8037f18
%doc README.md
8037f18
%{_bindir}/%{name}
4574461
%{_datadir}/appdata/admeshgui.appdata.xml
8037f18
%{_datadir}/applications/%{name}.desktop
4574461
%{_datadir}/icons/hicolor/*/apps/%{name}.*
4574461
%{_datadir}/icons/hicolor/symbolic/apps/%{name}-symbolic.svg
4574461
8037f18
8037f18
%changelog
ebaf4c4
* Mon Aug 07 2017 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-7
ebaf4c4
- Fix FTBFS
ebaf4c4
72224ac
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
72224ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
72224ac
9715e27
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
9715e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9715e27
fe237eb
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
fe237eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fe237eb
48de8a2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
48de8a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
48de8a2
Rex Dieter bbb2ab8
* Mon Feb 01 2016 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2
Rex Dieter bbb2ab8
- use %%qmake_qt5 macro to ensure proper build flags
Rex Dieter bbb2ab8
4574461
* Wed Sep 16 2015 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-1
4574461
- update
4574461
8037f18
* Fri May 22 2015 Miro Hrončok <mhroncok@redhat.com> - 1.0-1
8037f18
- Initial package