Author: lisu                         Date: Mon Jan  3 13:51:10 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 5.1.0 [Obsoletes nforenum.spec]
- removed obsoleted -cflags.patch and -destdir.patch
- add -version.patch which fixes build
- more files
- misc fixes
- release 1

---- Files affected:
packages/grfcodec:
   grfcodec.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/grfcodec/grfcodec.spec
diff -u packages/grfcodec/grfcodec.spec:1.6 packages/grfcodec/grfcodec.spec:1.7
--- packages/grfcodec/grfcodec.spec:1.6 Thu Jun 17 16:24:33 2010
+++ packages/grfcodec/grfcodec.spec     Mon Jan  3 14:51:05 2011
@@ -1,45 +1,45 @@
 # $Revision$, $Date$
-%define                rev     2306
 Summary:       Programs to modify Transport Tycoon Deluxe's GRF files
 Summary(pl.UTF-8):     Narzędzia do modyfikacji plików GRX gry Transport 
Tycoon Deluxe
 Name:          grfcodec
-Version:       0.9.10
-Release:       0.%{rev}.1
+Version:       5.1.0
+Release:       1
 License:       GPL v2+
 Group:         Applications
-Source0:       
http://binaries.openttd.org/extra/grfcodec/r%{rev}/%{name}-r%{rev}-source.tar.bz2
-# Source0-md5: 16de60c05fba2aa4a5c2b22d4e0eff42
-Patch0:                %{name}-cflags.patch
-Patch1:                %{name}-destdir.patch
+Source0:       
http://binaries.openttd.org/extra/grfcodec/%{version}/%{name}-%{version}-source.tar.gz
+# Source0-md5: 3b3205dd25f17b628429d46c61d9b54f
+Patch0:                %{name}-version.patch
 URL:           http://www.ttdpatch.net/grfcodec/
+BuildRequires: boost-devel
 BuildRequires: libstdc++-devel
 BuildRequires: perl-base
+BuildRequires: sed >= 4.0
 BuildRequires: upx
+Obsoletes:     nforenum
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A suite of programs to modify Transport Tycoon Deluxe's GRF files.
+A suite of programs to modify Transport Tycoon Deluxe's GRF and NFO
+files.
 
 %description -l pl.UTF-8
-Zestaw narzędzi do modyfikacji plików GRX gry Transport Tycoon Deluxe.
+Zestaw narzędzi do modyfikacji plików GRX oraz NFO gry Transport
+Tycoon Deluxe.
 
 %prep
-%setup -q -n %{name}-r%{rev}
+%setup -q -n %{name}-%{version}-source
 %patch0 -p1
-%patch1 -p1
 
-VER=$(awk '/VER /{print $3}' version.def)
-if [ "$VER" != "%{version}" ]; then
-       : Current version is $VER, not %{version}
-       exit 1
-fi
+# drop -O2 flag from FLAGS
+%{__sed} -i 's,-O2,,' Makefile
+
+# set prefix to proper one
+%{__sed} -i 's,%{_prefix}/local,%{_prefix},' Makefile.bundle
 
 %build
 %{__make} \
-       SVNVERSION="echo %{rev}" \
-       CC="%{__cc}" \
-       CXX="%{__cxx}" \
-       CFLAGAPP="%{rpmcxxflags}" \
+       CXX=%{__cxx} \
+       CXXFLAGS="%{rpmcxxflags}" \
        LDOPT="%{rpmldflags}" \
        V="1"
 
@@ -54,8 +54,13 @@
 
 %files
 %defattr(644,root,root,755)
-%doc Changelog todo.txt
-%attr(755,root,root) %{_bindir}/grf*
+%doc docs/*.txt changelog.txt
+%attr(755,root,root) %{_bindir}/grfcodec
+%attr(755,root,root) %{_bindir}/grfdiff
+%attr(755,root,root) %{_bindir}/grfid
+%attr(755,root,root) %{_bindir}/grfmerge
+%attr(755,root,root) %{_bindir}/nforenum
+%{_mandir}/man1/*.1*
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -63,6 +68,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2011/01/03 13:51:05  lisu
+- updated to 5.1.0 [Obsoletes nforenum.spec]
+- removed obsoleted -cflags.patch and -destdir.patch
+- add -version.patch which fixes build
+- more files
+- misc fixes
+- release 1
+
 Revision 1.6  2010/06/17 14:24:33  sparky
 - fixed source0 path
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/grfcodec/grfcodec.spec?r1=1.6&r2=1.7&f=u

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

Reply via email to