source: spec/trunk/SPECS/jbigkit.spec@ 1504

Last change on this file since 1504 was 1266, checked in by Silvan Scherrer, 8 years ago

spec: jbigkit: Release version 2.1-1.

File size: 3.0 KB
Line 
1Name: jbigkit
2Version: 2.1
3Release: 1%{?dist}
4Summary: JBIG1 lossless image compression tools
5
6Group: Development/Libraries
7License: GPLv2+
8URL: http://www.cl.cam.ac.uk/~mgk25/jbigkit/
9Vendor: bww bitwise works GmbH
10%scm_source github http://github.com/bitwiseworks/jbigkit-os2 master
11
12Requires: jbigkit-libs = %{version}-%{release}
13
14%package libs
15Summary: JBIG1 lossless image compression library
16Group: Development/Libraries
17
18%package devel
19Summary: JBIG1 lossless image compression library -- development files
20Group: Development/Libraries
21Requires: jbigkit-libs = %{version}-%{release}
22
23%description libs
24JBIG-KIT provides a portable library of compression and decompression
25functions with a documented interface that you can include very easily
26into your image or document processing software. In addition, JBIG-KIT
27provides ready-to-use compression and decompression programs with a
28simple command line interface (similar to the converters found in netpbm).
29
30JBIG-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
35which is commonly referred to as the JBIG1 standard
36
37%description devel
38The jbigkit-devel package contains files needed for development using
39the JBIG-KIT image compression library.
40
41%description
42The jbigkit package contains tools for converting between PBM and JBIG1
43formats.
44
45
46%debug_package
47
48%prep
49%scm_setup
50
51%build
52export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
53export LIBS="-lcx"
54export VENDOR="%{vendor}"
55make %{?_smp_mflags}
56
57%install
58mkdir -p $RPM_BUILD_ROOT%{_libdir}
59mkdir -p $RPM_BUILD_ROOT%{_includedir}
60mkdir -p $RPM_BUILD_ROOT%{_bindir}
61mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
62
63install -p -m0755 libjbig/jbig.dll $RPM_BUILD_ROOT/%{_libdir}
64install -p -m0755 libjbig/jbig85.dll $RPM_BUILD_ROOT/%{_libdir}
65
66install -p -m0755 libjbig/libjbig.a $RPM_BUILD_ROOT/%{_libdir}
67install -p -m0755 libjbig/libjbig85.a $RPM_BUILD_ROOT/%{_libdir}
68
69install -p -m0644 libjbig/jbig.h $RPM_BUILD_ROOT%{_includedir}
70install -p -m0644 libjbig/jbig85.h $RPM_BUILD_ROOT%{_includedir}
71install -p -m0644 libjbig/jbig_ar.h $RPM_BUILD_ROOT%{_includedir}
72
73install -p -m0755 pbmtools/???to???.exe $RPM_BUILD_ROOT%{_bindir}
74install -p -m0755 pbmtools/???to???85.exe $RPM_BUILD_ROOT%{_bindir}
75install -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
80export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/libjbig
81make 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
Note: See TracBrowser for help on using the repository browser.