Mercurial > forge
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 |
rev | line source |
---|---|
2488 | 1 Name: octave_@NAME@ |
2 Version: @VERSION@ | |
3 Release: 1%{?distsuffix} | |
4 Summary: @TITLE@ | |
5 Group: Applications/Engineering | |
6 License: @LICENSE@ | |
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 | 9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
10 | |
11 ## Package installs in a directory tree specific to the installed | |
12 ## version of octave, so the following version dependency is necessary. | |
13 %define octave_ep %(rpm -q --qf '%%{epoch}' octave) | |
14 %define octave_ver %(rpm -q --qf '%%{version}' octave) | |
15 | |
16 Requires: octave = %{octave_ep}:%{octave_ver} | |
17 >>REQUIRES<< | |
2496 | 18 |
19 BuildRequires: octave >= 2.9.7 | |
20 BuildRequires: gcc-c++ gcc-gfortran libstdc++-devel | |
2488 | 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 | 23 >>BUILDREQUIRES<< |
24 | |
3895 | 25 >>BUILDARCH<< |
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 | 30 |
31 %description | |
32 @DESCRIPTION@ | |
33 | |
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 | 36 |
3895 | 37 >>BUILD<< |
2488 | 38 |
39 %install | |
3895 | 40 unset TERM |
2488 | 41 rm -rf %{buildroot} |
3895 | 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 | 46 |
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 | 52 |
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 | 55 |
56 %files | |
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 | 59 >>ARCHFILES<< |
2488 | 60 |
61 %changelog | |
62 # Changelog for packages rebuilt on stable releases (leave it first): | |
63 %{!?_with_unstable:* %(LC_ALL=C date +"%a %b %d %Y") %{packager} %{version}-%{release}} | |
64 %{!?_with_unstable: - rebuild of %{version}-%{rel}%{?distsuffix} for %{distversion}} | |
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 | 67 - Automatically created from octave-forge package |