packages (DEVEL): nforenum/nforenum.spec - updated to 4.0.0-RC1 - no more r...

lisu lisu at pld-linux.org
Thu Aug 12 13:31:24 CEST 2010


Author: lisu                         Date: Thu Aug 12 11:31:24 2010 GMT
Module: packages                      Tag: DEVEL
---- Log message:
- updated to 4.0.0-RC1
- no more rev number in source package name
- binary name has been changed from renum to nforenum
- install man page

---- Files affected:
packages/nforenum:
   nforenum.spec (1.4 -> 1.4.2.1) 

---- Diffs:

================================================================
Index: packages/nforenum/nforenum.spec
diff -u packages/nforenum/nforenum.spec:1.4 packages/nforenum/nforenum.spec:1.4.2.1
--- packages/nforenum/nforenum.spec:1.4	Thu Jun 17 16:24:33 2010
+++ packages/nforenum/nforenum.spec	Thu Aug 12 13:31:19 2010
@@ -1,14 +1,14 @@
 # $Revision$, $Date$
-%define		rev	2309
+%define		_rc	RC1
 Summary:	Tool to create add-ons for TTDPatch and OpenTTD
 Summary(pl.UTF-8):	Narzędzie do tworzenia dodatków dla TTDPatch oraz OpenTTD
 Name:		nforenum
-Version:	3.4.6
-Release:	0.%{rev}.1
+Version:	4.0.0
+Release:	0.%{_rc}.1
 License:	GPL v2+
 Group:		Applications
-Source0:	http://binaries.openttd.org/extra/nforenum/r%{rev}/%{name}-r%{rev}-source.tar.bz2
-# Source0-md5:	cab21665a9a14339c590a8f9981787c3
+Source0:	http://binaries.openttd.org/extra/nforenum/%{version}-%{_rc}/%{name}-%{version}-%{_rc}-source.tar.gz
+# Source0-md5:	be1b49850c8cb13febb247611bbb8309
 Patch0:		%{name}-cflags.patch
 URL:		http://www.openttd.org/en/download-nforenum
 BuildRequires:	boost-devel
@@ -26,15 +26,9 @@
 oraz OpenTTD.
 
 %prep
-%setup -q -n %{name}-r%{rev}
+%setup -q -n %{name}-%{version}-%{_rc}-source
 %patch0 -p1
 
-VER=$(awk '/VER /{print $3}' version.def)
-if [ "$VER" != "%{version}" ]; then
-	: Current version is $VER, not %{version}
-	exit 1
-fi
-
 %build
 %{__make} \
 	SVNVERSION="echo %{rev}" \
@@ -46,17 +40,21 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+install nforenum $RPM_BUILD_ROOT%{_bindir}
+install docs/nforenum.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-install renum $RPM_BUILD_ROOT%{_bindir}
+gzip $RPM_BUILD_ROOT%{_mandir}/man1/nforenum.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGELOG.txt TODO.txt
-%attr(755,root,root) %{_bindir}/renum
+%doc changelog.txt docs/*.txt
+%attr(755,root,root) %{_bindir}/nforenum
+%{_mandir}/man1/nforenum.1*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -64,6 +62,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4.2.1  2010/08/12 11:31:19  lisu
+- updated to 4.0.0-RC1
+- no more rev number in source package name
+- binary name has been changed from renum to nforenum
+- install man page
+
 Revision 1.4  2010/06/17 14:24:33  sparky
 - fixed source0 path
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nforenum/nforenum.spec?r1=1.4&r2=1.4.2.1&f=u



More information about the pld-cvs-commit mailing list