Группа :: Разработка/C
Пакет: f2c
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%set_verify_elf_method unresolved=relaxed
Name: f2c
Version: 20090102
Release: alt2
Summary: F2c converts Fortran 77 source code to C/C++ source code
License: %bsdstyle
Group: Development/C
Url: http://www.netlib.org/f2c/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
BuildRequires(pre): unzip rpm-build-licenses
Source: http://www.netlib.org/f2c/libf2c.zip
Source1: http://www.netlib.org/f2c/changes
Source2: http://www.netlib.org/f2c/f2c.1
Source3: http://www.netlib.org/f2c/f2c.h
Source4: http://www.netlib.org/f2c/f2c.pdf
Source6: makefile
%description
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
%package -n lib%name
Summary: Shared library of f2c
Group: Development/C
%description -n lib%name
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains shared library of f2c.
%package -n lib%name-devel
Summary: Headers of f2c
Group: Development/C
BuildArch: noarch
Requires: lib%name = %version-%release
%description -n lib%name-devel
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains headers of f2c.
%package -n lib%name-devel-static
Summary: Static library of f2c
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains static library of f2c.
%package -n lib%name-devel-doc
Summary: Documentation for f2c
Group: Development/Documentation
BuildArch: noarch
%description -n lib%name-devel-doc
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains development documentation for f2c.
%prep
unzip %SOURCE0
install -p -m644 %SOURCE6 ./
%build
sed -i '19s|(LIBDIR)|%buildroot%_libdir|' makefile
%make_build hadd
%make_build MALLOC=malloc.o
%make_build libf2c.so
%install
mkdir -p %buildroot%_libdir
%make_install DESTDIR=%buildroot install
mkdir -p %buildroot%_docdir/%name
mkdir -p %buildroot%_includedir
mkdir -p %buildroot%_bindir
install -p -m644 libf2c.so %buildroot%_libdir/
install -p -m644 %SOURCE1 ./
install -p -m644 %SOURCE3 %buildroot%_includedir/
install -p -m644 %SOURCE2 %buildroot%_docdir/%name/
install -p -m644 %SOURCE4 %buildroot%_docdir/%name/
bzip2 changes
%files -n lib%name
%doc README Notice changes.bz2
%_libdir/*.so
%files -n lib%name-devel
%_includedir/*
%files -n lib%name-devel-static
%_libdir/*.a
%files -n lib%name-devel-doc
%_docdir/%name
%changelog
…
Полный changelog можно просмотреть здесь
Name: f2c
Version: 20090102
Release: alt2
Summary: F2c converts Fortran 77 source code to C/C++ source code
License: %bsdstyle
Group: Development/C
Url: http://www.netlib.org/f2c/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
BuildRequires(pre): unzip rpm-build-licenses
Source: http://www.netlib.org/f2c/libf2c.zip
Source1: http://www.netlib.org/f2c/changes
Source2: http://www.netlib.org/f2c/f2c.1
Source3: http://www.netlib.org/f2c/f2c.h
Source4: http://www.netlib.org/f2c/f2c.pdf
Source6: makefile
%description
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
%package -n lib%name
Summary: Shared library of f2c
Group: Development/C
%description -n lib%name
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains shared library of f2c.
%package -n lib%name-devel
Summary: Headers of f2c
Group: Development/C
BuildArch: noarch
Requires: lib%name = %version-%release
%description -n lib%name-devel
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains headers of f2c.
%package -n lib%name-devel-static
Summary: Static library of f2c
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains static library of f2c.
%package -n lib%name-devel-doc
Summary: Documentation for f2c
Group: Development/Documentation
BuildArch: noarch
%description -n lib%name-devel-doc
F2c converts Fortran 77 source code in files with names ending in `.f' or `.F' to
C (or C++) source files in the current directory, with `.c' substituted for the
final `.f' or `.F'. If no Fortran files are named, f2c reads Fortran from
standard input and writes C on standard output. File names that end with `.p' or
`.P' are taken to be prototype files, as produced by option `-P', and are read
first.
This package contains development documentation for f2c.
%prep
unzip %SOURCE0
install -p -m644 %SOURCE6 ./
%build
sed -i '19s|(LIBDIR)|%buildroot%_libdir|' makefile
%make_build hadd
%make_build MALLOC=malloc.o
%make_build libf2c.so
%install
mkdir -p %buildroot%_libdir
%make_install DESTDIR=%buildroot install
mkdir -p %buildroot%_docdir/%name
mkdir -p %buildroot%_includedir
mkdir -p %buildroot%_bindir
install -p -m644 libf2c.so %buildroot%_libdir/
install -p -m644 %SOURCE1 ./
install -p -m644 %SOURCE3 %buildroot%_includedir/
install -p -m644 %SOURCE2 %buildroot%_docdir/%name/
install -p -m644 %SOURCE4 %buildroot%_docdir/%name/
bzip2 changes
%files -n lib%name
%doc README Notice changes.bz2
%_libdir/*.so
%files -n lib%name-devel
%_includedir/*
%files -n lib%name-devel-static
%_libdir/*.a
%files -n lib%name-devel-doc
%_docdir/%name
%changelog
…
Полный changelog можно просмотреть здесь