source: spec/trunk/SPECS/libpng.spec@ 1567

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

spec: libpng: Release version 1.6.31-1.

File size: 3.8 KB
Line 
1Summary: A library of functions for manipulating PNG image format files
2Name: libpng
3Version: 1.6.31
4Release: 1%{?dist}
5License: zlib
6Group: System Environment/Libraries
7URL: http://www.libpng.org/pub/png/
8
9Vendor: bww bitwise works GmbH
10%scm_source svn http://svn.netlabs.org/repos/ports/libpng/trunk 2227
11
12BuildRequires: zlib-devel, pkgconfig
13BuildRequires: libtool, autoconf >= 2.65
14BuildRequires: automake
15
16%description
17The libpng package contains a library of functions for creating and
18manipulating PNG (Portable Network Graphics) image format files. PNG
19is a bit-mapped graphics format similar to the GIF format. PNG was
20created to replace the GIF format, since GIF uses a patented data
21compression algorithm.
22
23Libpng should be installed if you need to manipulate PNG format image
24files.
25
26%package devel
27Summary: Development tools for programs to manipulate PNG image format files
28Group: Development/Libraries
29Requires: %{name} = %{version}-%{release}
30Requires: zlib-devel pkgconfig
31
32%description devel
33The libpng-devel package contains header files and documentation necessary
34for developing programs using the PNG (Portable Network Graphics) library.
35
36If you want to develop programs which will manipulate PNG image format
37files, you should install libpng-devel. You'll also need to install
38the libpng package.
39
40%package static
41Summary: Static PNG image format file library
42Group: Development/Libraries
43Requires: %{name}-devel = %{version}-%{release}
44
45%description static
46The libpng-static package contains the statically linkable version of libpng.
47Linking to static libraries is discouraged for most applications, but it is
48necessary for some boot packages.
49
50%package tools
51Summary: Tools for PNG image format file library
52Group: Development/Libraries
53Requires: %{name} = %{version}-%{release}
54
55%description tools
56The libpng-tools package contains tools used by the authors of libpng.
57
58%debug_package
59
60%prep
61%scm_setup
62
63autoreconf -fvi
64
65%build
66export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
67export VENDOR="%{vendor}"
68
69%configure
70make %{?_smp_mflags}
71
72%install
73make DESTDIR=$RPM_BUILD_ROOT install
74
75# We don't ship .la files
76rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
77
78%check
79#to run make check use "--with check"
80%if %{?_with_check:1}%{!?_with_check:0}
81make check
82%endif
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87#post -p /sbin/ldconfig
88
89#postun -p /sbin/ldconfig
90
91%files
92%{!?_licensedir:%global license %%doc}
93%license LICENSE
94%{_libdir}/png*.dll
95%{_mandir}/man5/*
96
97%files devel
98%doc libpng-manual.txt example.c TODO CHANGES
99%{_bindir}/*.exe
100%exclude %{_bindir}/pngfix.exe
101%{_bindir}/*-config
102%{_includedir}/*
103%{_libdir}/png*_dll.a
104%{_libdir}/libpng_dll.a
105%{_libdir}/pkgconfig/libpng*.pc
106%{_mandir}/man3/*
107
108%files static
109%{_libdir}/png*.a
110%exclude %{_libdir}/png*_dll.a
111%{_libdir}/libpng.a
112
113%files tools
114%{_bindir}/pngfix.exe
115
116%changelog
117* Wed Aug 09 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.31-1
118- updated libpng to 1.6.31
119
120* Mon Feb 06 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.28-1
121- updated libpng to 1.6.28
122- use new scm_source and scm_setup macro
123- add bldlevel info to the dll
124
125* Thu Apr 7 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-3
126- added apng support
127 used patch from https://sourceforge.net/projects/libpng-apng/files
128- removed -Zbin-files, as not needed
129
130* Fri Feb 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-2
131- remove %{?_isa} macro
132
133* Fri Feb 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-1
134- updated libpng to 1.6.21
135- adjusted debug package creation to latest rpm macros
136
137* Tue Sep 15 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.18-1
138- updated libpng to 1.6.18
139
140* Mon Feb 16 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.16-1
141- updated libpng to 1.6.16
142- add symlink for libpng
143
144* Tue Feb 10 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.14-1
145- updated libpng to 1.6.14
146- added .dbg files
147
148* Thu Apr 17 2014 yd
149- first public build.
Note: See TracBrowser for help on using the repository browser.