rpms/pnglite/devel pnglite-0.1.17-zlib.patch, NONE, 1.1 pnglite.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Lubomir Rintel
lkundrak at fedoraproject.org
Sun Jan 4 21:26:23 UTC 2009
- Previous message (by thread): rpms/akonadi/devel .cvsignore, 1.7, 1.8 akonadi.spec, 1.19, 1.20 sources, 1.7, 1.8
- Next message (by thread): rpms/sion/devel import.log, NONE, 1.1 sion.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lkundrak
Update of /cvs/pkgs/rpms/pnglite/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20149
Modified Files:
.cvsignore sources
Added Files:
pnglite-0.1.17-zlib.patch pnglite.spec
Log Message:
Initial import
pnglite-0.1.17-zlib.patch:
--- NEW FILE pnglite-0.1.17-zlib.patch ---
diff -up pnglite-0.1.17/pnglite.c.zlib pnglite-0.1.17/pnglite.c
--- pnglite-0.1.17/pnglite.c.zlib 2008-12-31 16:54:41.000000000 +0100
+++ pnglite-0.1.17/pnglite.c 2008-12-31 16:54:49.000000000 +0100
@@ -5,7 +5,7 @@
#define USE_ZLIB 1
#if USE_ZLIB
-#include "../zlib/zlib.h"
+#include <zlib.h>
#else
#include "zlite.h"
#endif
--- NEW FILE pnglite.spec ---
# Upstream doesn't use a SONAME and nobody knows how stable the interface is
# Please take extra care when updating this package -- bump the following
# and rebuild dependencies (shouldn't be many) if you suspect an ABI change:
%define abi_major 0
%define abi_minor 1
Name: pnglite
Version: 0.1.17
Release: %{abi_minor}%{?dist}
Summary: A lightweight C library for loading PNG images
Group: Development/Libraries
License: zlib
URL: http://www.karlings.com/~danne/pnglite/
Source0: http://downloads.sourceforge.net/pnglite/%{name}-%{version}.zip
Patch0: pnglite-0.1.17-zlib.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel
%description
pnglite is a C library for loading PNG images. It was created as a
substitute for libpng in situations when libpng is more than enough. It
currently requires zlib for inflate and crc checking and it can read the
most common types of PNG images. The library has a small and simple to use
interface.
%package devel
Summary: Files needed to build and link programs with pnglite
Group: Development/Libraries
Requires: pnglite = %{version}
%description devel
This contains a header file and a link to library for the linker
to link against pnglite.
%prep
%setup -q -c
%patch0 -p1 -b .zlib
sed 's/\r//' -i pnglite.h
%build
gcc %{optflags} -shared -fPIC -Wl,--soname,libpnglite.so.%{abi_major} \
-o libpnglite.so.%{abi_major}.%{abi_minor} pnglite.c
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}
install -d $RPM_BUILD_ROOT%{_includedir}
install -pm 0644 pnglite.h $RPM_BUILD_ROOT%{_includedir}
install libpnglite.so.%{abi_major}.%{abi_minor} $RPM_BUILD_ROOT%{_libdir}
ln -s libpnglite.so.%{abi_major}.%{abi_minor} $RPM_BUILD_ROOT%{_libdir}/libpnglite.so.%{abi_major}
ln -s libpnglite.so.%{abi_major}.%{abi_minor} $RPM_BUILD_ROOT%{_libdir}/libpnglite.so
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
# No documentation. License text is in the header file in -devel though.
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/*.h
%changelog
* Wed Dec 31 2008 Lubomir Rintel <lkundrak at v3.sk> - 0.1.17-1
- Initial packaging
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pnglite/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 4 Jan 2009 20:47:54 -0000 1.1
+++ .cvsignore 4 Jan 2009 21:25:52 -0000 1.2
@@ -0,0 +1 @@
+pnglite-0.1.17.zip
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pnglite/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 4 Jan 2009 20:47:54 -0000 1.1
+++ sources 4 Jan 2009 21:25:52 -0000 1.2
@@ -0,0 +1 @@
+37b1cecc92c53b05dd4c8dcb00fc4196 pnglite-0.1.17.zip
- Previous message (by thread): rpms/akonadi/devel .cvsignore, 1.7, 1.8 akonadi.spec, 1.19, 1.20 sources, 1.7, 1.8
- Next message (by thread): rpms/sion/devel import.log, NONE, 1.1 sion.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list