Package init
This commit is contained in:
parent
a4d2307149
commit
02e5f1de36
BIN
libimagequant-2.12.5.tar.gz
Normal file
BIN
libimagequant-2.12.5.tar.gz
Normal file
Binary file not shown.
50
libimagequant.spec
Normal file
50
libimagequant.spec
Normal file
@ -0,0 +1,50 @@
|
||||
Name: libimagequant
|
||||
Version: 2.12.5
|
||||
Release: 2
|
||||
Summary: Palette quantization library
|
||||
License: GPLv3+ and MIT
|
||||
URL: https://github.com/ImageOptim/libimagequant
|
||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0000: libimagequant_solibperm.patch
|
||||
|
||||
%description
|
||||
The portable C library can convert RGBA images into
|
||||
8-bit indexed color images with high quality.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libimagequant
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The libimagequant-deve package contains the libraries
|
||||
and header files for the application.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure --with-openmp
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/%{name}.a
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license COPYRIGHT
|
||||
%{_libdir}/%{name}.so.0
|
||||
%doc README.md CHANGELOG
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}.h
|
||||
%{_libdir}/%{name}.so
|
||||
%{_libdir}/pkgconfig/imagequant.pc
|
||||
|
||||
%changelog
|
||||
* Thu Nov 14 2019 wangye<wangye54@huawei.com> - 2.12.5-2
|
||||
- Package init
|
||||
|
||||
12
libimagequant_solibperm.patch
Normal file
12
libimagequant_solibperm.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -rupN libimagequant-2.12.5/Makefile libimagequant-2.12.5-new/Makefile
|
||||
--- libimagequant-2.12.5/Makefile 2019-07-27 14:50:23.000000000 +0200
|
||||
+++ libimagequant-2.12.5-new/Makefile 2019-07-29 16:46:54.585923523 +0200
|
||||
@@ -114,7 +114,7 @@ install: all $(PKGCONFIG)
|
||||
install -d $(DESTDIR)$(PKGCONFIGDIR)
|
||||
install -d $(DESTDIR)$(INCLUDEDIR)
|
||||
install -m 644 $(STATICLIB) $(DESTDIR)$(LIBDIR)/$(STATICLIB)
|
||||
- install -m 644 $(SHAREDLIBVER) $(DESTDIR)$(LIBDIR)/$(SHAREDLIBVER)
|
||||
+ install -m 755 $(SHAREDLIBVER) $(DESTDIR)$(LIBDIR)/$(SHAREDLIBVER)
|
||||
ln -sf $(SHAREDLIBVER) $(DESTDIR)$(LIBDIR)/$(SHAREDLIB)
|
||||
install -m 644 $(PKGCONFIG) $(DESTDIR)$(PKGCONFIGDIR)/$(PKGCONFIG)
|
||||
install -m 644 libimagequant.h $(DESTDIR)$(INCLUDEDIR)/libimagequant.h
|
||||
Loading…
x
Reference in New Issue
Block a user