diff --git a/libmatchbox-1.9-libpng.patch b/libmatchbox-1.9-libpng.patch new file mode 100644 index 0000000..99c8c6d --- /dev/null +++ b/libmatchbox-1.9-libpng.patch @@ -0,0 +1,23 @@ +diff -up libmatchbox-1.9/libmb/mbpixbuf.c.jx libmatchbox-1.9/libmb/mbpixbuf.c +--- libmatchbox-1.9/libmb/mbpixbuf.c.jx 2006-07-26 15:12:25.000000000 -0400 ++++ libmatchbox-1.9/libmb/mbpixbuf.c 2011-11-17 18:28:51.981001505 -0500 +@@ -247,7 +247,7 @@ _load_png_file( const char *file, + return NULL; + } + +- if ( setjmp( png_ptr->jmpbuf ) ) { ++ if ( setjmp( png_jmpbuf(png_ptr) ) ) { + png_destroy_read_struct( &png_ptr, &info_ptr, NULL); + fclose(fd); + return NULL; +@@ -269,8 +269,8 @@ _load_png_file( const char *file, + ( color_type == PNG_COLOR_TYPE_GRAY_ALPHA )) + png_set_gray_to_rgb(png_ptr); + +- if ( info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA +- || info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA ++ if ( png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA ++ || png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY_ALPHA + ) + *has_alpha = 1; + else diff --git a/libmatchbox-1.9.tar.bz2 b/libmatchbox-1.9.tar.bz2 new file mode 100644 index 0000000..a876e3f Binary files /dev/null and b/libmatchbox-1.9.tar.bz2 differ diff --git a/libmatchbox.spec b/libmatchbox.spec new file mode 100644 index 0000000..03c1d09 --- /dev/null +++ b/libmatchbox.spec @@ -0,0 +1,54 @@ +Name: libmatchbox +Summary: Libraries for the Matchbox Desktop +Version: 1.9 +Release: 24 +Url: https://www.yoctoproject.org/software-item/matchbox +License: LGPLv2+ +Source: http://downloads.yoctoproject.org/releases/matchbox/libmatchbox/%{version}/%{name}-%{version}.tar.bz2 +Patch0001: libmatchbox-1.9-libpng.patch +BuildRequires: pango-devel libpng-devel libjpeg-devel check-devel autoconf automake libtool +Buildroot: %{_tmppath}/libmatchbox-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Matchbox is a base environment for the X Window System.It consists of a number of interchangeable +and optional applications that can be tailored to a specific non desktop platform to enhance usability +in a 'constrained' environment. + +%package devel +Summary: Static libraries and header files from libmatchbox +Provides: matchbox-devel = %{version}-%{release} libmatchbox-devel = %{version}-%{release} +Provides: liblibmatchbox-devel = %{version}-%{release} libmb-devel = %{version}-%{release} +Requires: libmatchbox = %{version} pkgconfig + +%description devel +Static libraries and header files from libmatchbox + +%prep +%autosetup -n libmatchbox-%{version} -p1 + +%build +autoreconf -v --install +%configure --enable-png --enable-jpeg --enable-pango +%make_build + +%install +%make_install DESTDIR=%{buildroot} +%delete_la_and_a + +%post +/sbin/ldconfig +%postun +/sbin/ldconfig + +%files +%doc AUTHORS ChangeLog README COPYING +%_libdir/*.so.* + +%files devel +%{_libdir}/{pkgconfig/*.pc,*.so} +%dir %{_includedir}/libmb +%{_includedir}/libmb/*.h + +%changelog +* Tue Apr 21 2020 wangyue - 1.9-24 +- Package init diff --git a/libmatchbox.yaml b/libmatchbox.yaml new file mode 100644 index 0000000..90ac8ef --- /dev/null +++ b/libmatchbox.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: "http://git.yoctoproject.org/cgit/cgit.cgi/libmatchbox" +tag_prefix: "^" +seperator: "."