Accepting request 543120 from home:pluskalm:branches:multimedia:libs

- Clean up spec file a bit
- Drop useless service

OBS-URL: https://build.opensuse.org/request/show/543120
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/zimg?expand=0&rev=5
This commit is contained in:
Mia Herkt 2017-11-20 14:05:02 +00:00 committed by Git OBS Bridge
parent 8798fa666a
commit 94e4431d81
3 changed files with 21 additions and 25 deletions

View File

@ -1,4 +0,0 @@
<services>
<service name="download_files" mode="disabled">
</service>
</services>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 20 08:45:15 UTC 2017 - mpluskal@suse.com
- Clean up spec file a bit
- Drop useless service
-------------------------------------------------------------------
Fri Nov 10 18:27:47 UTC 2017 - 9@cirno.systems

View File

@ -1,5 +1,5 @@
#
# spec file for package libzimg
# spec file for package zimg
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
@ -15,16 +15,16 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 2
%define sover 2
Name: zimg
Summary: Scaling, colorspace conversion, and dithering library
Version: 2.6.2
Release: 0
Url: https://github.com/sekrit-twc/zimg
Source0: https://github.com/sekrit-twc/zimg/archive/release-%{version}.tar.gz
Summary: Scaling, colorspace conversion, and dithering library
License: WTFPL
Group: Development/Libraries/C and C++
URL: https://github.com/sekrit-twc/zimg
Source0: https://github.com/sekrit-twc/zimg/archive/release-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@ -53,39 +53,33 @@ The libzimg-devel package contains libraries and header files for
developing applications that use libzimg%{sover}.
%prep
%setup -n zimg-release-%{version}
%setup -q -n zimg-release-%{version}
%build
./autogen.sh
autoreconf -fiv
%configure \
--docdir=%{_docdir}/libzimg \
%ifarch x86_64 %{ix86}
--enable-x86simd \
%endif
--disable-static
make %{?_smp_mflags}
make %{?_smp_mflags} V=1
%install
%makeinstall
find %{buildroot} -iname '*.la' -delete
%make_install
rm -rf %{buildroot}%{_datadir}/doc/zimg
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libzimg%{sover} -p /sbin/ldconfig
%postun -n libzimg%{sover} -p /sbin/ldconfig
%files -n libzimg%{sover}
%defattr(-,root,root)
%{_libdir}/libzimg.so.2
%{_libdir}/libzimg.so.2.0.0
%dir %{_docdir}/libzimg
%doc %{_docdir}/libzimg/COPYING
%doc %{_docdir}/libzimg/README.md
%doc %{_docdir}/libzimg/ChangeLog
%doc COPYING ChangeLog README.md
%{_libdir}/libzimg.so.%{sover}*
%files devel
%defattr(-,root,root)
%{_includedir}/zimg.h
%{_includedir}/zimg++.hpp
%{_libdir}/libzimg.so
%{_libdir}/pkgconfig/zimg.pc
%{_docdir}/libzimg/example/
%changelog