Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > fc84f2f9f5fb72922d82176e7e9810a7 > files > 2

libmypaint-1.6.1-8.mga9.src.rpm

#(eatdirt): crazy change upstream, api numbers removed in lib name and
#libtool release numbering reset to 0

%define         major           0
%define         libname         %mklibname mypaint %{major}

%define         geglmajor       0
%define         libname_gegl    %mklibname mypaint-gegl %{geglmajor}

%define         libdevelname    %mklibname -d mypaint

%define         gmajor          1.6
%define         girname         %mklibname mypaint-gir %{gmajor}
%define         girname_gegl    %mklibname mypaintgegl-gir %{gmajor}

%bcond_with gegl

Name:           libmypaint
Version:        1.6.1
Release:        %mkrel 8
Summary:        System libraries based on Mypaint
Group:          System/Libraries
License:        GPLv2+
URL:            https://github.com/mypaint/libmypaint
Source0:        https://github.com/mypaint/libmypaint/releases/download/v%{version}/%{name}-%{version}.tar.xz

BuildRequires:  gettext
BuildRequires:  perl(XML::Parser)
BuildRequires:  intltool
BuildRequires:  libgomp-devel
%if %{with gegl}
BuildRequires:  pkgconfig(babl-0.1)
BuildRequires:  pkgconfig(gegl-0.4)
%endif
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(json-c)
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  python3-breathe
BuildRequires:  python3-sphinx

%description
System libraries based on Mypaint.


%package -n %{name}-i18n
Summary:        Internationalization and locale data for libmypaint
Group:          System/Libraries
BuildArch:      noarch

%description -n %{name}-i18n
Internationalization and locale data for libmypaint.


%package -n %{libname}
Summary:        System libraries based on Mypaint
Group:          System/Libraries

%description -n %{libname}
This is an independent release of libmypaint, the library associated
with Mypaint, as a separate module.

%if %{with gegl}
%package -n %{libname_gegl}
Summary:        System libraries based on Mypaint
Group:          System/Libraries

%description -n %{libname_gegl}
This is an independent release of libmypaint, the library associated
with Mypaint, as a separate module.
%endif

%package -n %{girname}
Summary:        GObject Introspection interface description for MyPaint
Group:          System/Libraries
Requires:       %{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface description for MyPaint.

%if %{with gegl}
%package -n %{girname_gegl}
Summary:        GObject Introspection interface description for MyPaintGegl
Group:          System/Libraries
Requires:       %{libname_gegl} = %{version}-%{release}

%description -n %{girname_gegl}
GObject Introspection interface description for MyPaintGegl.
%endif

%package -n %{libdevelname}
Summary:        Development files for libmypaint
Group:          Development/Other
Provides:       %{name}-devel = %{version}-%{release}
Requires:       %{libname} = %{version}-%{release}
Requires:       %{girname} = %{version}-%{release}
%if %{with gegl}
Requires:       %{libname_gegl} = %{version}-%{release}
Requires:       %{girname_gegl} = %{version}-%{release}
%endif

%description -n %{libdevelname}
Development files for libmypaint.


%prep
%autosetup -p1

# Make sure the build uses python3
sed -i -e 's/python -c/python3 -c/g' configure

%build
%configure --enable-introspection=yes \
           %if %{without gegl}
           --disable-gegl \
           %endif
           --enable-openmp
%make_build


%install
%make_install

%find_lang %{name} --all-name
find %{buildroot}%{_libdir} -name '*.la' -delete

%files -n %{name}-i18n -f %{name}.lang


%files -n %{libname}
%doc README.md
%{_libdir}/libmypaint.so.%{major}{,.*}

%files -n %{girname}
%{_libdir}/girepository-1.0/MyPaint-%{gmajor}.typelib

%if %{with gegl}
%files -n %{libname_gegl}
%doc README.md
%{_libdir}/libmypaint-gegl.so.%{geglmajor}{,.*}

%files -n %{girname_gegl}
%{_libdir}/girepository-1.0/MyPaintGegl-%{gmajor}.typelib
%endif

%files -n %{libdevelname}
%{_includedir}/libmypaint/
%{_libdir}/libmypaint.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/MyPaint-%{gmajor}.gir
%if %{with gegl}
%{_includedir}/libmypaint-gegl/
%{_libdir}/libmypaint-gegl.so
%{_datadir}/gir-1.0/MyPaintGegl-%{gmajor}.gir
%endif


%changelog
* Thu Feb 23 2023 daviddavid <daviddavid> 1.6.1-8.mga9
+ Revision: 1945124
- babl is only needed if gegl support is enabled

* Wed Feb 22 2023 daviddavid <daviddavid> 1.6.1-7.mga9
+ Revision: 1944878
- update build dependency for pkgconfig(babl-0.1)

* Tue Feb 21 2023 daviddavid <daviddavid> 1.6.1-6.mga9
+ Revision: 1944615
- really disable unused gegl support
- add missing build dependency on glib-2.0
+ papoteur <papoteur>
- disable gegl to allow the build
  It fails with it: mypaint-gegl-glib.h:6:10: fatal error: glib-object.h: No such file or directory

* Wed Mar 30 2022 umeabot <umeabot> 1.6.1-5.mga9
+ Revision: 1834075
- Mageia 9 Mass Rebuild

* Sun Nov 29 2020 luigiwalser <luigiwalser> 1.6.1-4.mga8
+ Revision: 1650340
- rebuild for json-c

* Sun Jul 12 2020 wally <wally> 1.6.1-3.mga8
+ Revision: 1605672
- drop explicit obsoletes added in r1605557
- drop old and unneeded obsoletes and conflicts

* Sun Jul 12 2020 eatdirt <eatdirt> 1.6.1-2.mga8
+ Revision: 1605557
- Explicitly obsoletes previous gir libs

* Sat Jul 11 2020 eatdirt <eatdirt> 1.6.1-1.mga8
+ Revision: 1604789
- Upgrade to version 1.6.1

* Tue Mar 17 2020 eatdirt <eatdirt> 1.5.1-1.mga8
+ Revision: 1557577
- Upgrade to version 1.5.1

* Sun Feb 16 2020 umeabot <umeabot> 1.3.0-10.mga8
+ Revision: 1530417
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Wed Aug 28 2019 daviddavid <daviddavid> 1.3.0-9.mga8
+ Revision: 1434872
- add patch to fix build with gegl >= 0.4.14

* Sun Sep 23 2018 umeabot <umeabot> 1.3.0-8.mga7
+ Revision: 1299025
- Mageia 7 Mass Rebuild

* Thu Jul 26 2018 daviddavid <daviddavid> 1.3.0-7.mga7
+ Revision: 1245365
- rebuild for new json-c 0.13.1

* Sun May 20 2018 kekepower <kekepower> 1.3.0-6.mga7
+ Revision: 1230860
+ rebuild (emptylog)

* Sun May 20 2018 kekepower <kekepower> 1.3.0-5.mga7
+ Revision: 1230826
- Rebuild for new gegl

* Tue May 01 2018 tv <tv> 1.3.0-4.mga7
+ Revision: 1224321
- fix build with gegl-0.4

* Sun Mar 12 2017 wally <wally> 1.3.0-3.mga6
+ Revision: 1092125
- obsolete old lib after split out

* Sun Mar 12 2017 wally <wally> 1.3.0-2.mga6
+ Revision: 1092107
- split out libs with different api
- split out gi typelibs

* Sat Mar 11 2017 eatdirt <eatdirt> 1.3.0-1.mga6
+ Revision: 1092074
- imported package libmypaint


* Sat Mar 11 2017 Chris Ringeval <eatdirt@mageia.org> 1.3.0-1.mga6
- Importing libmypaint to anticipate dependencies of gimp-2.10