jbig2dec/jbig2dec.spec

81 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: jbig2dec
Version: 0.17
Release: 1mamba
Summary: A decoder implementation of the JBIG2 image compression format.
Group: Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://jbig2dec.com/
Source: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/jbig2dec-%{version}.tar.gz
License: Affero GNU Public License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpng-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
jbig2dec is a decoder implementation of the JBIG2 image compression format.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/jbig2dec
%{_mandir}/man1/jbig2dec.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libjbig2dec.so.*
%doc COPYING LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/jbig2.h
%{_libdir}/libjbig2dec.a
%{_libdir}/libjbig2dec.la
%{_libdir}/libjbig2dec.so
%{_libdir}/pkgconfig/jbig2dec.pc
%doc CHANGES README
%changelog
* Tue Nov 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17-1mamba
- package created using the webbuild interface