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

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

spec: libpng: Release version 1.6.28-1.

File size: 3.6 KB
Line 
1Summary: A library of functions for manipulating PNG image format files
2Name: libpng
3Version: 1.6.28
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 1984
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%clean
79rm -rf $RPM_BUILD_ROOT
80
81#post -p /sbin/ldconfig
82
83#postun -p /sbin/ldconfig
84
85%files
86%{!?_licensedir:%global license %%doc}
87%license LICENSE
88%{_libdir}/png*.dll
89%{_mandir}/man5/*
90
91%files devel
92%doc libpng-manual.txt example.c TODO CHANGES
93%{_bindir}/*.exe
94%exclude %{_bindir}/pngfix.exe
95%{_bindir}/*-config
96%{_includedir}/*
97%{_libdir}/png*_dll.a
98%{_libdir}/libpng_dll.a
99%{_libdir}/pkgconfig/libpng*.pc
100%{_mandir}/man3/*
101
102%files static
103%{_libdir}/png*.a
104%exclude %{_libdir}/png*_dll.a
105%{_libdir}/libpng.a
106
107%files tools
108%{_bindir}/pngfix.exe
109
110%changelog
111* Mon Feb 06 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.28-1
112- updated libpng to 1.6.28
113- use new scm_source and scm_setup macro
114- add bldlevel info to the dll
115
116* Thu Apr 7 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-3
117- added apng support
118 used patch from https://sourceforge.net/projects/libpng-apng/files
119- removed -Zbin-files, as not needed
120
121* Fri Feb 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-2
122- remove %{?_isa} macro
123
124* Fri Feb 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-1
125- updated libpng to 1.6.21
126- adjusted debug package creation to latest rpm macros
127
128* Tue Sep 15 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.18-1
129- updated libpng to 1.6.18
130
131* Mon Feb 16 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.16-1
132- updated libpng to 1.6.16
133- add symlink for libpng
134
135* Tue Feb 10 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.14-1
136- updated libpng to 1.6.14
137- added .dbg files
138
139* Thu Apr 17 2014 yd
140- first public build.
Note: See TracBrowser for help on using the repository browser.