annotate admin/rpm_template.in @ 12669:1c92b4b26ced octave-forge

releasePKG.m: exclude .hg* files of export as of bug #45669
author jpicarbajal
date Fri, 31 Jul 2015 19:49:28 +0000
parents 889cd9a53749
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
1 Name: octave_@NAME@
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
2 Version: @VERSION@
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
3 Release: 1%{?distsuffix}
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
4 Summary: @TITLE@
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
5 Group: Applications/Engineering
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
6 License: @LICENSE@
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
7 URL: http://octave.sourceforge.net
3277
56bd5ebd0b3d The SRPMs shouldn't set the global package directory to allow dependencies to be resolved
adb014
parents: 2777
diff changeset
8 Source0: http://downloads.sourceforge.net/octave/@PACKAGE@
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
10
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
11 ## Package installs in a directory tree specific to the installed
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
12 ## version of octave, so the following version dependency is necessary.
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
13 %define octave_ep %(rpm -q --qf '%%{epoch}' octave)
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
14 %define octave_ver %(rpm -q --qf '%%{version}' octave)
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
15
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
16 Requires: octave = %{octave_ep}:%{octave_ver}
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
17 >>REQUIRES<<
2496
cbe670cc5b34 Further automatic rpm build fixes
adb014
parents: 2493
diff changeset
18
cbe670cc5b34 Further automatic rpm build fixes
adb014
parents: 2493
diff changeset
19 BuildRequires: octave >= 2.9.7
cbe670cc5b34 Further automatic rpm build fixes
adb014
parents: 2493
diff changeset
20 BuildRequires: gcc-c++ gcc-gfortran libstdc++-devel
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
21 BuildRequires: libstdc++-devel
2493
f3ebc1c81679 working automatic RPM. Still lacking treatment of external dependencies
adb014
parents: 2488
diff changeset
22 BuildRequires: %(rpm -q --qf '%%{name}' %(rpm -q -f `which mkoctfile`))
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
23 >>BUILDREQUIRES<<
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
24
3895
889cd9a53749 Update SRPM build to allow for noarch packages
adb014
parents: 3875
diff changeset
25 >>BUILDARCH<<
889cd9a53749 Update SRPM build to allow for noarch packages
adb014
parents: 3875
diff changeset
26
2493
f3ebc1c81679 working automatic RPM. Still lacking treatment of external dependencies
adb014
parents: 2488
diff changeset
27 %define octave octave-%{octave_ver}
3644
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
28 %define octave_distpkg %{?_vendor:%_vendor}%{?!_vendor:distributions}
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
29 %define pkg %(echo %{name} | sed -e "s/octave_//")
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
30
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
31 %description
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
32 @DESCRIPTION@
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
33
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
34 %prep
3644
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
35 %setup -q -n %{pkg}-%{version}
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
36
3895
889cd9a53749 Update SRPM build to allow for noarch packages
adb014
parents: 3875
diff changeset
37 >>BUILD<<
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
38
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
39 %install
3895
889cd9a53749 Update SRPM build to allow for noarch packages
adb014
parents: 3875
diff changeset
40 unset TERM
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
41 rm -rf %{buildroot}
3895
889cd9a53749 Update SRPM build to allow for noarch packages
adb014
parents: 3875
diff changeset
42 >>INSTALL<<
3644
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
43
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
44 %clean
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
45 rm -rf %{buildroot}
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
46
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
47 %post
3644
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
48 %{_datadir}/octave/packages/%{pkg}-%{version}/packinfo/dist_admin install
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
49
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
50 %preun
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
51 %{_datadir}/octave/packages/%{pkg}-%{version}/packinfo/dist_admin uninstall
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
52
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
53 %postun
3644
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
54 %{octave} -q -H --no-site-file --eval "pkg('rebuild');"
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
55
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
56 %files
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
57 %defattr(-,root,root)
3644
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
58 %{_datadir}/octave/packages/*
3895
889cd9a53749 Update SRPM build to allow for noarch packages
adb014
parents: 3875
diff changeset
59 >>ARCHFILES<<
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
60
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
61 %changelog
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
62 # Changelog for packages rebuilt on stable releases (leave it first):
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
63 %{!?_with_unstable:* %(LC_ALL=C date +"%a %b %d %Y") %{packager} %{version}-%{release}}
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
64 %{!?_with_unstable: - rebuild of %{version}-%{rel}%{?distsuffix} for %{distversion}}
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
65
3644
867552dd5aa7 Use 'configure;make all;make install' code in packages to simplify RPMs
adb014
parents: 3622
diff changeset
66 * @DATE@ @MAINTAINER@ %{version}-%{rel}%{?distsuffix}
2488
3cfa7cbb15f7 some fixes to rpm build from Quentin
adb014
parents:
diff changeset
67 - Automatically created from octave-forge package