Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37534582
en ru br
Репозитории ALT
S:1.1.25-alt3
5.1: 1.1.12-alt4
www.altlinux.org/Changes

Группа :: Development/Tools
Пакет: sowing

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define somver 1
%define sover %somver.1.25
%def_with doc
%define descr \
The tools that are part of the program development and maintenance environment.\
They are really a collection of mostly simple tools that help leverage many of \
the excellent Unix tools for programmers.

Name: sowing
Version: %sover
Release: alt3

Summary: The program development and maintenance environment
License: Free
Group: Development/Tools

Url: http://wgropp.cs.illinois.edu/projects/software/sowing/
Source: sowing.tar.gz
Patch: sowing-1.1.18-fix_brackets_for_perl5.26.patch

Requires: %name-common = %version-%release

BuildPreReq: gcc-c++
%{?_with_doc:BuildPreReq: ghostscript-utils}

%description
%descr

%package common
Summary: Architecture independend files of Sowing
Group: Development/Tools
BuildArch: noarch

%description common
%descr

This package contains architecture independend files of Sowing.

%package -n lib%name
Summary: Shared libraries of Sowing
Group: System/Libraries

%description -n lib%name
%descr

This package contains shared libraries of Sowing.

%package -n lib%name-devel
Summary: Development files of Sowing
Group: Development/C++
Requires: lib%name = %version-%release

%description -n lib%name-devel
%descr

This package contains development files of Sowing.

%prep
%setup
%patch -p2

%build
%add_optflags %optflags_shared
%autoreconf
%configure \
--enable-strict \
--enable-memorycheck \
--with-wwwdir=$PWD/www/www1

# potentially SMP incompatible build

make

%install
%makeinstall \
man1dir=%buildroot%_man1dir \
datadir=%buildroot%_datadir/%name

install -d %buildroot%_libdir
install -d %buildroot%_includedir
install -m644 lib/*.a %buildroot%_libdir
cp -fR include/* %buildroot%_includedir/

# shared libraries


pushd %buildroot%_libdir
mkdir tmp
pushd tmp
for i in sowing tfilter; do
ar x ../lib$i.a
g++ -shared * \
-Wl,-soname,lib$i.so.%somver -o ../lib$i.so.%sover
ln -s lib$i.so.%sover ../lib$i.so.%somver
ln -s lib$i.so.%somver ../lib$i.so
rm -f *
done
popd
rmdir tmp
popd

sed -i '1s|/sh|/bash|' %buildroot%_bindir/pstoxbm

rm -fv %buildroot%_libdir/*.a

%files
%_bindir/*

%files common
%_man1dir/*
%_datadir/%name

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin