| 1 | Name: jbigkit
|
|---|
| 2 | Version: 2.1
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: JBIG1 lossless image compression tools
|
|---|
| 5 |
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | License: GPLv2+
|
|---|
| 8 | URL: http://www.cl.cam.ac.uk/~mgk25/jbigkit/
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | %scm_source github http://github.com/bitwiseworks/jbigkit-os2 master
|
|---|
| 11 |
|
|---|
| 12 | Requires: jbigkit-libs = %{version}-%{release}
|
|---|
| 13 |
|
|---|
| 14 | %package libs
|
|---|
| 15 | Summary: JBIG1 lossless image compression library
|
|---|
| 16 | Group: Development/Libraries
|
|---|
| 17 |
|
|---|
| 18 | %package devel
|
|---|
| 19 | Summary: JBIG1 lossless image compression library -- development files
|
|---|
| 20 | Group: Development/Libraries
|
|---|
| 21 | Requires: jbigkit-libs = %{version}-%{release}
|
|---|
| 22 |
|
|---|
| 23 | %description libs
|
|---|
| 24 | JBIG-KIT provides a portable library of compression and decompression
|
|---|
| 25 | functions with a documented interface that you can include very easily
|
|---|
| 26 | into your image or document processing software. In addition, JBIG-KIT
|
|---|
| 27 | provides ready-to-use compression and decompression programs with a
|
|---|
| 28 | simple command line interface (similar to the converters found in netpbm).
|
|---|
| 29 |
|
|---|
| 30 | JBIG-KIT implements the specification:
|
|---|
| 31 | ISO/IEC 11544:1993 and ITU-T Recommendation T.82(1993):
|
|---|
| 32 | Information technology Coded representation of picture and audio
|
|---|
| 33 | information Progressive bi-level image compression
|
|---|
| 34 |
|
|---|
| 35 | which is commonly referred to as the JBIG1 standard
|
|---|
| 36 |
|
|---|
| 37 | %description devel
|
|---|
| 38 | The jbigkit-devel package contains files needed for development using
|
|---|
| 39 | the JBIG-KIT image compression library.
|
|---|
| 40 |
|
|---|
| 41 | %description
|
|---|
| 42 | The jbigkit package contains tools for converting between PBM and JBIG1
|
|---|
| 43 | formats.
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | %debug_package
|
|---|
| 47 |
|
|---|
| 48 | %prep
|
|---|
| 49 | %scm_setup
|
|---|
| 50 |
|
|---|
| 51 | %build
|
|---|
| 52 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 53 | export LIBS="-lcx"
|
|---|
| 54 | export VENDOR="%{vendor}"
|
|---|
| 55 | make %{?_smp_mflags}
|
|---|
| 56 |
|
|---|
| 57 | %install
|
|---|
| 58 | mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 59 | mkdir -p $RPM_BUILD_ROOT%{_includedir}
|
|---|
| 60 | mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|---|
| 61 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|---|
| 62 |
|
|---|
| 63 | install -p -m0755 libjbig/jbig.dll $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 64 | install -p -m0755 libjbig/jbig85.dll $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 65 |
|
|---|
| 66 | install -p -m0755 libjbig/libjbig.a $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 67 | install -p -m0755 libjbig/libjbig85.a $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 68 |
|
|---|
| 69 | install -p -m0644 libjbig/jbig.h $RPM_BUILD_ROOT%{_includedir}
|
|---|
| 70 | install -p -m0644 libjbig/jbig85.h $RPM_BUILD_ROOT%{_includedir}
|
|---|
| 71 | install -p -m0644 libjbig/jbig_ar.h $RPM_BUILD_ROOT%{_includedir}
|
|---|
| 72 |
|
|---|
| 73 | install -p -m0755 pbmtools/???to???.exe $RPM_BUILD_ROOT%{_bindir}
|
|---|
| 74 | install -p -m0755 pbmtools/???to???85.exe $RPM_BUILD_ROOT%{_bindir}
|
|---|
| 75 | install -p -m0644 pbmtools/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|---|
| 76 |
|
|---|
| 77 | %check
|
|---|
| 78 | # remember to set beginlibpath by hand for now, as dash doesn't do it so far
|
|---|
| 79 | # as soon as it's fixed the below line will work
|
|---|
| 80 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/libjbig
|
|---|
| 81 | make test
|
|---|
| 82 |
|
|---|
| 83 | #%post libs -p /sbin/ldconfig
|
|---|
| 84 |
|
|---|
| 85 | #%postun libs -p /sbin/ldconfig
|
|---|
| 86 |
|
|---|
| 87 | %files
|
|---|
| 88 | %{_bindir}/???to*.exe
|
|---|
| 89 | %{_mandir}/man1/*
|
|---|
| 90 | %doc COPYING
|
|---|
| 91 |
|
|---|
| 92 | %files libs
|
|---|
| 93 | %{_libdir}/jbig*.dll
|
|---|
| 94 | %doc COPYING ANNOUNCE TODO CHANGES
|
|---|
| 95 |
|
|---|
| 96 | %files devel
|
|---|
| 97 | %{_libdir}/libjbig*.a
|
|---|
| 98 | %{_includedir}/jbig*.h
|
|---|
| 99 |
|
|---|
| 100 | %changelog
|
|---|
| 101 | * Tue Nov 28 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.1-1
|
|---|
| 102 | - initial rpm build
|
|---|