File autovala.spec of Package autovala
#
# spec file for package autovala
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: autovala
Version: 1.1.0
Release: 0
Summary: Automatic CMake files generator for Vala projects
License: GPL-3.0+
Url: http://rastersoft.com/programas/autovala.html
Source: https://github.com/rastersoft/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM autovala-fix-cflags.patch sor.alexei@meowr.ru -- Fix CFLAGS.
Patch0: %{name}-fix-cflags.patch
BuildRequires: -post-build-checks
BuildRequires: cmake
BuildRequires: curl
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pandoc
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: update-desktop-files
BuildRequires: vala
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(bash-completion)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(vte-2.91)
BuildRequires: pkgconfig(x11)
Requires: vala
Recommends: %{name}-lang
Recommends: bash-completion
%description
Autovala is an application and a library designed to help in the
creation of projects with Vala and CMake.
%lang_package
%package devel
Summary: Development files for autovala
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
The autovala development package includes the header files,
libraries, development tools necessary for compiling and linking
applications which will use autovala.
%prep
%setup -q
%patch0 -p1
%build
%cmake \
-DICON_UPDATE=OFF
make -j1 V=1
%install
%cmake_install
mkdir -p %{buildroot}%{_docdir}/
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
mv -f %{buildroot}%{_datadir}/appdata/com.rastersoft.%{name}.{metainfo,appdata}.xml
%find_lang %{name}
%post
%desktop_database_post
%icon_theme_cache_post
/sbin/ldconfig
%postun
%desktop_database_postun
%icon_theme_cache_postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}/
%{_bindir}/autovala
%{_libdir}/libAutoVala.so.*
%{_libdir}/libAutovalaPlugin.so.*
%{_datadir}/%{name}/
%{_mandir}/man?/%{name}*.?%{?ext_man}
%dir %{_datadir}/appdata/
%{_datadir}/appdata/*%{name}.appdata.xml
%{_datadir}/bash-completion/completions/%{name}
%files lang -f %{name}.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_includedir}/AutoVala.h
%{_includedir}/AutovalaPlugin.h
%{_libdir}/libAutoVala.so
%{_libdir}/libAutovalaPlugin.so
%{_libdir}/pkgconfig/AutoVala.pc
%{_libdir}/pkgconfig/AutovalaPlugin.pc
%{_datadir}/gir-1.0/AutoVala-*.gir
%{_datadir}/gir-1.0/AutovalaPlugin-*.gir
%{_datadir}/vala/vapi/AutoVala.*
%{_datadir}/vala/vapi/AutovalaPlugin.*
%changelog