A new user interface for you! Read more...

File diorite.spec of Package diorite

#
# spec file for package diorite
#
# Copyright (c) 2016 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/
#


%define major_version 0.2
Name:           diorite
Version:        %{major_version}.0
Release:        0
Summary:        Utility and widget library for Nuvola Player
License:        LGPL-3.0+ and LGPL-2.1+ and BSD-3-Clause
Url:            https://github.com/tiliado/diorite
Source:         https://github.com/tiliado/%{name}/archive/%{commit}/%{name}-%{version}.tar.gz
BuildRequires:  gtk3-devel
BuildRequires:  vala-devel

%description
Diorite Library is a utility and widget library for Nuvola Player project based
on GLib, GIO and GTK.

%package        devel
Summary:        Development package for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
This package contains development files for %{name}

%prep
%setup -q

%build
./waf configure --prefix=%{_prefix} \
              --libdir=%{_libdir}
./waf build --prefix=%{_prefix} \
          --libdir=%{_libdir}

%install
./waf install --prefix=%{_prefix} \
            --libdir=%{_libdir} \
            --destdir=%{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README.md
%{_bindir}/%{name}-testgen-%{major_version}
%{_libdir}/libdioriteglib-0.2.so
%{_libdir}/libdioritegtk-0.2.so
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/diorite*-0.2.*

%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/diorite*-0.2.pc
%{_includedir}/diorite-1.0/

%changelog