source: spec/trunk/SPECS/libtiff.spec@ 1330

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

spec: libtiff: Release version 4.0.9-1.

File size: 4.3 KB
Line 
1Summary: Library of functions for manipulating TIFF format image files
2Name: libtiff
3Version: 4.0.9
4Release: 1%{?dist}
5License: libtiff
6Group: System Environment/Libraries
7URL: http://www.simplesystems.org/libtiff/
8
9Vendor: bww bitwise works GmbH
10%scm_source github https://github.com/bitwiseworks/libtiff-os2 %{version}-os2
11
12BuildRequires: zlib-devel libjpeg-devel jbigkit-devel
13BuildRequires: libtool automake autoconf pkgconfig
14
15%description
16The libtiff package contains a library of functions for manipulating
17TIFF (Tagged Image File Format) image format files. TIFF is a widely
18used file format for bitmapped images. TIFF files usually end in the
19.tif extension and they are often quite large.
20
21The libtiff package should be installed if you need to manipulate TIFF
22format image files.
23
24%package devel
25Summary: Development tools for programs which will use the libtiff library
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28Requires: pkgconfig
29Obsoletes: %{name}-legacy-devel
30
31%description devel
32This package contains the header files and documentation necessary for
33developing programs which will manipulate TIFF format image files
34using the libtiff library.
35
36If you need to develop programs which will manipulate TIFF format
37image files, you should install this package. You'll also need to
38install the libtiff package.
39
40%package static
41Summary: Static TIFF image format file library
42Group: Development/Libraries
43Requires: %{name}-devel = %{version}-%{release}
44Obsoletes: %{name}-legacy-static
45
46%description static
47The libtiff-static package contains the statically linkable version of libtiff.
48Linking to static libraries is discouraged for most applications, but it is
49necessary for some boot packages.
50
51%package tools
52Summary: Command-line utility programs for manipulating TIFF files
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55Obsoletes: %{name}-legacy-tools
56
57%description tools
58This package contains command-line programs for manipulating TIFF format
59image files using the libtiff library.
60
61%legacy_runtime_packages
62
63%debug_package
64
65%prep
66%scm_setup
67
68# Use build system's libtool.m4, not the one in the package.
69autogen.sh
70
71%build
72export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
73export CFLAGS="%{optflags} -fno-strict-aliasing"
74export VENDOR="%{vendor}"
75%configure
76make %{?_smp_mflags}
77
78%install
79make DESTDIR=$RPM_BUILD_ROOT install
80
81# remove what we didn't want installed
82rm $RPM_BUILD_ROOT%{_libdir}/*.la
83rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
84
85# no libGL dependency, please
86rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
87rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
88
89# no sgi2tiff or tiffsv, either
90rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
91rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
92rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
93rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98#post -p /sbin/ldconfig
99
100#postun -p /sbin/ldconfig
101
102%check
103# remember to set beginlibpath by hand for now, as dash doesn't do it so far
104# as soon as it's fixed the below line will work
105export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/libtiff/.libs
106make check
107
108%files
109%doc COPYRIGHT README RELEASE-DATE VERSION
110%{_libdir}/tiff*.dll
111%exclude %{_libdir}/tiff.dll
112
113%files devel
114%doc TODO ChangeLog html
115%{_includedir}/*
116%{_libdir}/tiff*_dll.a
117%{_libdir}/pkgconfig/libtiff*.pc
118%{_mandir}/man3/*
119
120%files static
121%{_libdir}/*.a
122%exclude %{_libdir}/*_dll.a
123
124%files tools
125%{_bindir}/*.exe
126%{_mandir}/man1/*
127
128%changelog
129* Fri Dec 01 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.9-1
130- enable jbig encoding
131- updated source to 4.0.9 version
132
133* Wed Feb 15 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.7-3
134- obsolete devel, static and tools legacy rpm
135
136* Tue Feb 14 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.7-2
137- rebuild with changed legacy_runtime_packages macro
138
139* Wed Feb 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.7-1
140- updated source to 4.0.7 version
141- join legazy package to the main with our new macro
142- use the new scm_source and scm_setup macros
143- add bldlevel info to the dll
144
145* Wed Jan 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.6-1
146- updated source to 4.0.6 version
147- adjusted debug package creation to latest rpm macros
148
149* Thu Apr 17 2014 yd
150- first public build.
Note: See TracBrowser for help on using the repository browser.