libgdiplus/libgdiplus.spec
2023-07-07 16:01:04 +08:00

61 lines
1.5 KiB
RPMSpec

%undefine _hardened_build
Name: libgdiplus
Version: 6.1
Release: 1
Summary: An Open Source implementation of the GDI+ API
License: MIT and MPL-1.1 and GPL-3.0+
URL: http://www.mono-project.com/Main_Page
Source0: http://download.mono-project.com/sources/%{name}/%{name}-%{version}.tar.gz
BuildRequires: gcc freetype-devel glib2-devel libjpeg-devel libtiff-devel gcc-c++ make
BuildRequires: libpng-devel fontconfig-devel cairo-devel giflib-devel libexif-devel zlib-devel
%description
An Open Source implementation of the GDI+ API, it is part of the Mono Project.
%package devel
Summary: Development files for libgdiplus
Requires: %{name} = %{version}-%{release}
%description devel
Development files for libgdiplus
%prep
%setup -q
CFLAGS="$RPM_OPT_FLAGS -Wl,-z,lazy"
CXXFLAGS="$RPM_OPT_FLAGS -Wl,-z,lazy"
export CFLAGS
export CXXFLAGS
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc NEWS README.md TODO AUTHORS ChangeLog
%{_libdir}/lib*.so.*
%files devel
%{_libdir}/pkgconfig/*
%{_libdir}/lib*.so
%changelog
* Fri Jul 7 2023 liyanan <thistleslyn@163.com> - 6.1-1
- Update to version 6.1
* Thu Jan 21 2021 Ge Wang <wangge20@huawei.com> - 5.6-4
- Modify license information.
* Thu Jul 9 2020 leiju <leiju4@huawei.com> - 5.6-3
- Package init