[libpgf/epel7] Sync from master

Orion Poplawski orion at fedoraproject.org
Thu Feb 26 14:36:14 UTC 2015


commit 929ab5902faa5f340fa0b2df62fe1675c908e5b4
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Thu Feb 26 07:36:03 2015 -0700

    Sync from master

 .gitignore        |   6 +++
 libpgf-auto.patch |  44 +++++++++++++++++++++
 libpgf.spec       | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |   1 +
 4 files changed, 164 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..af00b1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/libpgf-6.11.24-src.zip
+/libpgf-6.11.42-src.zip
+/libpgf-6.12.24-src.tar.gz
+/libpgf-6.12.27-src.tar.gz
+/libpgf-6.13.45-src.tar.gz
+/libpgf-src-6.14.12.tar.gz
diff --git a/libpgf-auto.patch b/libpgf-auto.patch
new file mode 100644
index 0000000..c918a73
--- /dev/null
+++ b/libpgf-auto.patch
@@ -0,0 +1,44 @@
+diff -up libpgf/configure.ac.auto libpgf/configure.ac
+--- libpgf/configure.ac.auto	2014-03-21 07:51:59.000000000 -0600
++++ libpgf/configure.ac	2015-02-23 12:28:53.125766559 -0700
+@@ -1,4 +1,5 @@
+-AC_INIT(src/PGFimage.cpp)
++AC_INIT([libpgf], [6.14.12])
++AC_CONFIG_SRCDIR([src/PGFimage.cpp])
+ 
+ dnl The library interface version
+ dnl see documentation for versioning in the libtool manual
+@@ -24,9 +25,10 @@ PACKAGE_RELEASE=2
+ 
+ AC_SUBST(PACKAGE_RELEASE)
+ 
+-AM_INIT_AUTOMAKE(libpgf,6.14.12)
++AM_INIT_AUTOMAKE
+ AC_PROG_LIBTOOL
+-AC_CONFIG_HEADERS( config.h )
++AC_CONFIG_MACRO_DIR([m4])
++AC_CONFIG_HEADERS( [config.h] )
+ AC_PROG_CXX
+ 
+ dnl Check for doxygen support
+diff -up libpgf/Makefile.am.auto libpgf/Makefile.am
+--- libpgf/Makefile.am.auto	2013-10-25 05:24:18.000000000 -0600
++++ libpgf/Makefile.am	2015-02-23 12:26:04.338856680 -0700
+@@ -19,6 +19,8 @@ RPMEXTRACONFOPT="--disable-dependency-tr
+ 
+ RPMRELEASE=$(PACKAGE_RELEASE)
+ 
++ACLOCAL_AMFLAGS = -I m4
++
+ install-data-local:: $(PACKAGE).pc
+ 	$(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
+ 	$(INSTALL) -m 644 $(PACKAGE).pc $(DESTDIR)$(libdir)/pkgconfig/$(PACKAGE).pc
+diff -up libpgf/src/Makefile.am.auto libpgf/src/Makefile.am
+--- libpgf/src/Makefile.am.auto	2013-10-25 05:24:17.000000000 -0600
++++ libpgf/src/Makefile.am	2015-02-23 12:26:04.338856680 -0700
+@@ -1,4 +1,4 @@
+-INCLUDES	=  -I$(top_srcdir)/include # @PGFCODEC_CFLAGS@
++AM_CPPFLAGS	=  -I$(top_srcdir)/include # @PGFCODEC_CFLAGS@
+ 
+ lib_LTLIBRARIES = libpgf.la
+ libpgf_la_LDFLAGS = -version-info @INTERFACE_VERSION@
diff --git a/libpgf.spec b/libpgf.spec
new file mode 100644
index 0000000..0c4f5fa
--- /dev/null
+++ b/libpgf.spec
@@ -0,0 +1,113 @@
+Name:           libpgf
+Version:        6.14.12
+Release:        1%{?dist}
+Summary:        PGF (Progressive Graphics File) library
+
+Group:          System Environment/Libraries
+License:        LGPLv2+
+URL:            http://www.libpgf.org
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.gz
+# Modernize automake usage
+Patch0:         libpgf-auto.patch
+
+BuildRequires:  doxygen
+BuildRequires:  libtool
+
+%description
+libPGF contains an implementation of the Progressive Graphics File (PGF)
+which is a new image file format, that is based on a discrete, fast
+wavelet transform with progressive coding features. PGF can be used
+for lossless and lossy compression.
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1 -b .auto
+# Fix line endings
+sed -i -e 's/\r//' configure.ac README
+
+sed -i 's|$(DESTDIR)$(datadir)/doc/$(DOC_MODULE)|$(RPM_BUILD_DIR)/libpgf|g' doc/Makefile.am
+
+
+%build
+sh autogen.sh
+
+export CFLAGS="%{optflags} -DLIBPGF_DISABLE_OPENMP"
+export CXXFLAGS="%{optflags} -DLIBPGF_DISABLE_OPENMP"
+
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc COPYING README
+%{_libdir}/libpgf.so.6*
+
+%files devel
+%doc html
+%{_includedir}/%{name}
+%{_libdir}/libpgf.so
+%{_libdir}/pkgconfig/libpgf.pc
+%{_mandir}/man3/*
+
+
+%changelog
+* Mon Feb 23 2015 Orion Poplawski <orion at cora.nwra.com> - 6.14.12.1
+- Update to 6.14.12
+
+* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.13.45-0.3.svn123
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.13.45-0.2.svn123
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Mon Nov 11 2013 Alexey Kurov <nucleo at fedoraproject.org> - 6.13.45-0.1.svn123
+- libpgf-6.13.45 r123 snapshot
+
+* Fri Oct 25 2013 Alexey Kurov <nucleo at fedoraproject.org> - 6.12.27-0.2.svn119
+- disable OpenMP
+
+* Fri Oct 25 2013 Alexey Kurov <nucleo at fedoraproject.org> - 6.12.27-0.1.svn119
+- libpgf-6.12.27 r119 snapshot
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.12.24-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.12.24-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.12.24-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Tue Jun 26 2012 Alexey Kurov <nucleo at fedoraproject.org> - 6.12.24-2
+- libpgf-6.12.24
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.11.42-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Thu Oct 28 2010 Alexey Kurov <nucleo at fedoraproject.org> - 6.11.42-1
+- libpgf-6.11.42
+
+* Thu Sep 23 2010 Alexey Kurov <nucleo at fedoraproject.org> - 6.11.24-1
+- Initial RPM release
+- added svn r46-48 fixes (6.11.32)
+- install docs in -devel
diff --git a/sources b/sources
index e69de29..19575d0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a2b13832e23ad9026bd249d57b6c26da  libpgf-src-6.14.12.tar.gz


More information about the scm-commits mailing list