Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:Staging:C
libmypaint
libmypaint.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libmypaint.spec of Package libmypaint
# # spec file for package libmypaint # # Copyright (c) 2022 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define geglshlib %{name}-gegl0 %define sonum 0 %define girver 1.6 %define shlib %{name}%{sonum} %bcond_with introspection Name: libmypaint Version: 1.6.1 Release: 0 Summary: A brushstroke creation library License: ISC Group: Productivity/Graphics/Bitmap Editors URL: http://mypaint.org/ Source: https://github.com/mypaint/libmypaint/releases/download/v%{version}/libmypaint-%{version}.tar.xz BuildRequires: intltool BuildRequires: pkgconfig BuildRequires: pkgconfig(gegl-0.4) BuildRequires: pkgconfig(gobject-2.0) %if %{with introspection} BuildRequires: pkgconfig(gobject-introspection-1.0) %endif BuildRequires: pkgconfig(json-c) %description libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects. %package -n %{shlib} Summary: A brushstroke creation library Group: System/Libraries Provides: libmypaint = %{version} Recommends: %{name}-lang = %{version} %description -n %{shlib} libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects including GIMP 2.9+. This package provides the shared libraries for %{name}. %package devel Summary: Header files for %{name}, a brushstroke creation library Group: Development/Libraries/C and C++ Requires: %{shlib} = %{version} %if %{with introspection} Requires: typelib-1_0-MyPaint-%{girver} = %{version} %endif Provides: mypaint-devel = %{version} Obsoletes: mypaint-devel < %{version} %description devel libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects. This package provides the header needed for developing applications using %{name}. %package -n typelib-1_0-MyPaint-%{girver} Summary: A brushstroke creation library -- Introspection bindings Group: System/Libraries %description -n typelib-1_0-MyPaint-%{girver} libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects. This package provides the GObject Introspection bindings for the library. %package gegl-devel Summary: Header files for %{name}, a brushstroke creation library Group: Development/Libraries/C and C++ Requires: %{geglshlib} = %{version} Requires: %{shlib} = %{version} %if %{with introspection} Requires: typelib-1_0-MyPaintGegl-%{girver} = %{version} %endif %description gegl-devel libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects. This package provides the header files needed for developing applications using the gegl bindings for %{name}. %package -n %{geglshlib} Summary: GEGL bindings for %{name}, a brushstroke creation library Group: System/Libraries %description -n %{geglshlib} libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects. This package provides the shared libraries for %{name}'s GEGL bindings. %package -n typelib-1_0-MyPaintGegl-%{girver} Summary: A brushstroke creation library with gegl support -- Introspection bindings Group: System/Libraries %description -n typelib-1_0-MyPaintGegl-%{girver} libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects. This package provides the GObject Introspection bindings for the library with gegl support. %lang_package %prep %autosetup -p1 # FIX A SPURIOUS PERM chmod -x README.md %build %configure \ --enable-gegl \ --enable-openmp \ %if %{without introspection} --disable-introspection \ %endif %{nil} %make_build %install %make_install %find_lang %{name} %{?no_lang_C} find %{buildroot} -type f -name "*.la" -delete -print %post -n %{shlib} -p /sbin/ldconfig %postun -n %{shlib} -p /sbin/ldconfig %post -n %{geglshlib} -p /sbin/ldconfig %postun -n %{geglshlib} -p /sbin/ldconfig %files -n %{shlib} %{_libdir}/%{name}.so.* %files lang -f %{name}.lang %files devel %license COPYING %doc README.md %{_libdir}/%{name}.so %{_libdir}/pkgconfig/libmypaint.pc %{_includedir}/%{name}/ %if %{with introspection} %{_datadir}/gir-1.0/MyPaint-%{girver}.gir %endif %files -n %{geglshlib} %{_libdir}/%{name}-gegl.so.* %files gegl-devel %{_libdir}/%{name}-gegl.so %{_libdir}/pkgconfig/libmypaint-gegl.pc %{_includedir}/%{name}-gegl/ %if %{with introspection} %{_datadir}/gir-1.0/MyPaintGegl-%{girver}.gir %endif %if %{with introspection} %files -n typelib-1_0-MyPaint-%{girver} %{_libdir}/girepository-1.0/MyPaint-%{girver}.typelib %files -n typelib-1_0-MyPaintGegl-%{girver} %{_libdir}/girepository-1.0/MyPaintGegl-%{girver}.typelib %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor