%define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %endif %define license_files COPYING Name: granite Summary: elementary Development Library Version: 0.5 Release: 4%{?dist} License: LGPLv3+ URL: https://github.com/elementary/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: vala BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gobject-introspection-1.0) # granite provides and needs some generic icons Requires: hicolor-icon-theme %description An extension to GTK+ that provides several useful widgets and classes to ease application development. %package devel Summary: Granite Toolkit development headers Requires: %{name}%{?_isa} = %{version}-%{release} %description devel An extension to GTK+ that provides several useful widgets and classes to ease application development. This package contains the development headers. %prep %autosetup %build mkdir build && pushd build %cmake .. %make_build popd %install pushd build %make_install popd %find_lang granite %check desktop-file-validate \ "%{buildroot}/%{_datadir}/applications/granite-demo.desktop" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f granite.lang %doc AUTHORS README.md %if 0%{?doc_license} %license %{license_files} %else %doc %{license_files} %endif %{_libdir}/libgranite.so.4 %{_libdir}/libgranite.so.4.0 %{_libdir}/girepository-1.0/Granite-1.0.typelib %{_datadir}/icons/hicolor/*/actions/appointment.svg %{_datadir}/icons/hicolor/*/actions/open-menu.svg %{_datadir}/icons/hicolor/scalable/actions/open-menu-symbolic.svg %files devel %{_bindir}/granite-demo %{_libdir}/libgranite.so %{_libdir}/pkgconfig/granite.pc %{_includedir}/granite/ %{_datadir}/applications/granite-demo.desktop %{_datadir}/gir-1.0/Granite-1.0.gir %{_datadir}/vala/vapi/granite.deps %{_datadir}/vala/vapi/granite.vapi %changelog * Fri Apr 20 2018 Tomasz Tomasik - 0.5-4 - SPEC file cleanups - Use license macro - Rebuilt for EL7 * Wed Feb 07 2018 Fedora Release Engineering - 0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 06 2018 Fabio Valentini - 0.5-2 - Remove icon cache scriptlets, replaced by file triggers. * Fri Nov 03 2017 Fabio Valentini - 0.5-1 - Update to version 0.5. * Wed Aug 02 2017 Fedora Release Engineering - 0.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun May 07 2017 Fabio Valentini - 0.4.1-1 - Update to version 0.4.1. * Fri Feb 10 2017 Fedora Release Engineering - 0.4.0.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 24 2017 Fabio Valentini - 0.4.0.1-8 - Make BR on /usr/bin/pkg-config explicit. * Sun Nov 27 2016 Fabio Valentini - 0.4.0.1-7 - Check granite-demo.desktop file explicitly. - Correct license (s/LGPLv3/LGPLv3+). * Sun Nov 27 2016 Fabio Valentini - 0.4.0.1-6 - Add missing Requires to -devel. * Thu Nov 24 2016 Fabio Valentini - 0.4.0.1-5 - Spec file cosmetics. * Thu Sep 29 2016 Fabio Valentini - 0.4.0.1-4 - Mass rebuild. * Wed Sep 28 2016 Fabio Valentini - 0.4.0.1-3 - Spec file cleanups. * Mon Sep 19 2016 Fabio Valentini - 0.4.0.1-2 - Spec file cosmetics. * Tue Aug 09 2016 Fabio Valentini - 0.4.0.1-1 - Update to version 0.4.0.1. * Sat Jun 18 2016 Fabio Valentini - 0.4-1 - Update to version 0.4.