SampleSpecs/library: различия между версиями

Материал из ALT Linux Wiki
(Import from freesource.info)
(нет различий)

Версия от 16:04, 28 июля 2008

Freesource-logo.png Blue Glass Arrow.svg MediaWiki logo.png
Эта страница была перемещена с freesource.info.
Эта страница наверняка требует чистки и улучшения — смело правьте разметку и ссылки.
Просьба по окончанию убрать этот шаблон со страницы.


%def_disable static

Name: libsample
Version: 0.1
Release: alt1

Summary: Sample library specfile
License: LGPL
Group: System/Libraries
Url: http://freesource.info/wiki/AltLinux/Sisyphus/devel/SampleSpecs/library/

Source0: %name-%version.tar.bz2

%description
This specfile is provided as sample specfile for packages with libraries.
 It contains most of usual tags and constructions used in such specfiles.

%package devel
Summary: Headers for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
Headers for building software that uses %name

%if_enabled static
%package devel-static
Summary: Static libraries for %name
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
Static libs for building statically linked software that uses %name
%endif

%prep
%setup

%build
%configure %{subst_enable static}
%make_build

%install
%makeinstall

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%doc AUTHORS README NEWS

%files devel
%_libdir/*.so
%_includedir/*.h

%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib%name.a
%endif

%changelog
* Sun Sep 32 3001 Sample Packager <sample@altlinux.org> 0.1-alt1
- initial build