commit c5307a8c02ef2b70907890bd75d80861aa431802
Author: Jakub Bogusz <[email protected]>
Date:   Thu Jul 31 21:12:13 2014 +0200

    - new

 pgf-console.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 pgf-lfs.patch    | 26 +++++++++++++++++++++++
 2 files changed, 89 insertions(+)
---
diff --git a/pgf-console.spec b/pgf-console.spec
new file mode 100644
index 0000000..2d5f0e2
--- /dev/null
+++ b/pgf-console.spec
@@ -0,0 +1,63 @@
+Summary:       PGF (Progressive Graphics File) console application
+Summary(pl.UTF-8):     Aplikacja terminalowa do obsługi plików PGF 
(Progressive Graphics File)
+Name:          pgf-console
+Version:       6.14.12
+Release:       1
+License:       GPL v2+
+Group:         Applications/Graphics
+Source0:       
http://downloads.sourceforge.net/libpgf/%{name}-src-%{version}.tar.gz
+# Source0-md5: 7c6a42ac0555d1125ba3af5161c5a777
+Patch0:                pgf-lfs.patch
+URL:           http://www.libpgf.org/
+# FreeImage and FreeImagePlus
+BuildRequires: FreeImage-devel >= 3.16.0-1
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: libpgf-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: rpmbuild(macros) >= 1.566
+BuildRequires: sed >= 4.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pgf is a console application for working with PGF (Progressive
+Graphics File) images.
+
+%description -l pl.UTF-8
+pgf to aplikacja terminalowa do pracy z plikami obrazów PGF
+(Progressive Graphics File).
+
+%prep
+%setup -q -n pgf
+%undos configure.ac
+%patch0 -p1
+
+# disable doxygen docs, useless for program package
+%{__sed} -i -e '/^SUBDIRS/s/ doc//' Makefile.am
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# nonsense
+%{__rm} -r $RPM_BUILD_ROOT%{_bindir}/pkgconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog FAQ README
+%attr(755,root,root) %{_bindir}/pgf
diff --git a/pgf-lfs.patch b/pgf-lfs.patch
new file mode 100644
index 0000000..4bce5c9
--- /dev/null
+++ b/pgf-lfs.patch
@@ -0,0 +1,26 @@
+--- pgf/configure.ac.orig      2014-07-31 18:42:18.587940134 +0200
++++ pgf/configure.ac   2014-07-31 18:43:28.147937202 +0200
+@@ -28,6 +28,7 @@ AM_INIT_AUTOMAKE(pgf,6.14.12)
+ AC_PROG_LIBTOOL
+ AM_CONFIG_HEADER( config.h )
+ AC_PROG_CXX
++AC_SYS_LARGEFILE
+ 
+ AC_CHECK_PROG(DOTFOUND,dot, "YES", "NO")
+ 
+--- pgf/src/PGF.cpp.orig       2014-03-21 13:15:17.000000000 +0100
++++ pgf/src/PGF.cpp    2014-07-31 18:43:56.964602673 +0200
+@@ -81,10 +81,10 @@ static string errorMsg[] = {
+ };
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-static __int64 FileSize(char *filename) {
+-      struct __stat64 data;
++static off_t FileSize(const char *filename) {
++      struct stat data;
+ 
+-      if (_stat64(filename, &data) != -1) {
++      if (stat(filename, &data) != -1) {
+               return data.st_size;
+       } else {
+               return 0;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pgf-console.git/commitdiff/c5307a8c02ef2b70907890bd75d80861aa431802

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to