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

Last change on this file since 1036 was 1002, checked in by Silvan Scherrer, 9 years ago

spec: libtiff: Release version 4.0.7-3.

File size: 4.2 KB
Line 
1Summary: Library of functions for manipulating TIFF format image files
2Name: libtiff
3Version: 4.0.7
4Release: 3%{?dist}
5License: libtiff
6Group: System Environment/Libraries
7URL: http://www.simplesystems.org/libtiff/
8
9Vendor: bww bitwise works GmbH
10%scm_source svn http://svn.netlabs.org/repos/ports/libtiff/trunk 1989
11
12BuildRequires: zlib-devel libjpeg-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
88rm -f html/man/tiffgt.1.html
89
90# no sgi2tiff or tiffsv, either
91rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
92rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
93rm -f html/man/sgi2tiff.1.html
94rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
95rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
96rm -f html/man/tiffsv.1.html
97
98%clean
99rm -rf $RPM_BUILD_ROOT
100
101#post -p /sbin/ldconfig
102
103#postun -p /sbin/ldconfig
104
105%check
106#LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH make check
107
108%files
109%defattr(-,root,root,0755)
110%doc COPYRIGHT README RELEASE-DATE VERSION
111%{_libdir}/tiff*.dll
112%exclude %{_libdir}/tiff.dll
113
114%files devel
115%defattr(-,root,root,0755)
116%doc TODO ChangeLog html
117%{_includedir}/*
118%{_libdir}/tiff*_dll.a
119%{_libdir}/pkgconfig/libtiff-4.pc
120%{_mandir}/man3/*
121
122%files static
123%defattr(-,root,root,0755)
124%{_libdir}/*.a
125%exclude %{_libdir}/*_dll.a
126
127%files tools
128%defattr(-,root,root,0755)
129%{_bindir}/*.exe
130%{_mandir}/man1/*
131
132%changelog
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.