forked from pool/libedit
7eec6c0790
Copy from devel:libraries:c_c++/libedit based on submit request 27363 from user coolo OBS-URL: https://build.opensuse.org/request/show/27363 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=4
133 lines
3.5 KiB
RPMSpec
133 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package libedit (Version 3.0.snap20090923)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libedit
|
|
Version: 3.0.snap20090923
|
|
Release: 2
|
|
%define pkg_name libedit
|
|
%define pkg_version 20090923-3.0
|
|
#
|
|
License: BSD3c
|
|
Group: Development/Libraries/C and C++
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gcc-c++ ncurses-devel
|
|
#
|
|
Url: http://www.thrysoee.dk/editline/
|
|
# http://www.thrysoee.dk/editline/%{pkg_name}-%{pkg_version}.tar.gz
|
|
Source: http://www.thrysoee.dk/editline/%{pkg_name}-%{pkg_version}.tar.bz2
|
|
Source1: README.SuSE
|
|
# PATCH-FIX-UPSTREAM libedit-ncurses-pkg-config.patch vuntz@opensuse.org -- Use ncurses in pkg-config file, sent upstream by mail
|
|
Patch0: libedit-ncurses-pkg-config.patch
|
|
#
|
|
Summary: A command line editing and history library
|
|
|
|
%description
|
|
libedit is a command line editing and history library. It is designed
|
|
to be used by interactive programs that allow the user to type commands
|
|
at a terminal prompt.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jess Thrysoee
|
|
|
|
%define library_name libedit0
|
|
%define debug_package_requires %{library_name} = %{version}-%{release}
|
|
|
|
%package -n libedit0
|
|
License: BSD3c
|
|
Group: Development/Libraries/C and C++
|
|
Provides: %{pkg_name} = %{version}-%{release}
|
|
Obsoletes: %{pkg_name} < %{version}
|
|
#
|
|
Summary: A command line editing and history library
|
|
|
|
%description -n libedit0
|
|
libedit is a command line editing and history library. It is designed
|
|
to be used by interactive programs that allow the user to type commands
|
|
at a terminal prompt.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jess Thrysoee
|
|
|
|
%package -n libedit-devel
|
|
License: BSD3c
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{library_name} = %{version}
|
|
Provides: %{library_name}-devel = %{version}-%{release}
|
|
Requires: ncurses-devel
|
|
#
|
|
Summary: Development files for libedit
|
|
|
|
%description -n libedit-devel
|
|
libedit is a command line editing and history library. It is designed
|
|
to be used by interactive programs that allow the user to type commands
|
|
at a terminal prompt.
|
|
|
|
This package holds the development files for libedit.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jess Thrysoee
|
|
|
|
%prep
|
|
%setup -n %{pkg_name}-%{pkg_version}
|
|
%{__cp} %{S:1} .
|
|
%patch0 -p1
|
|
|
|
%build
|
|
autoreconf -f -i
|
|
%configure --disable-static --with-pic
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
rm %{buildroot}%{_libdir}/libedit.la
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%post -n %{library_name} -p /sbin/ldconfig
|
|
|
|
%postun -n %{library_name} -p /sbin/ldconfig
|
|
|
|
%files -n %{library_name}
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libedit.so.*
|
|
%{_mandir}/man5/editrc.5*
|
|
%doc README.SuSE THANKS ChangeLog COPYING examples/*c
|
|
|
|
%files -n libedit-devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libedit.so
|
|
%{_includedir}/histedit.h
|
|
%{_includedir}/editline/
|
|
%{_mandir}/man3/*.3*
|
|
%{_libdir}/pkgconfig/libedit.pc
|
|
|
|
%changelog
|